Skip to content

luliyucoordinate/PictureToCharacter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PictureToCharacter

licensePyPI

Make picture transformed into a character painting

You should use the command to install some requirements for run

pip install -r requirements.txt

How to use

please put the picture which you want to transformed in the dirPictureToCharacter\picture.png

python PictureToCharacter.py picture.png

you can use --width and --height to adjust the picture size.Example

python PictureToCharacter.py picture.png --width 20 --height 20

Also,you can get the .txt of the character painting use -oor--output

python PictureToCharacter.py picture.png --width 20 --height 20 --output picture.txt

then,you can use picture.txt.Look like this

str_c = '''the content of picture.txt'''
print(str_c)

About

The picture is transformed into a character painting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages