1. A Beautiful Girl drawed by me
2. Famous Yaoming's Face
3. My Avatar
- Asciify an image into
txt&html - Asciify a video
- Improve ascii video quality (by thresholding???)
- Asciify webcam feed
Python >= 3.6opencv-python >= 4.0.0(It will automatically be installed when you installpyascii)
Install pyascii:
pip install pyasciipyascii avatar.pngYou can use -s or --scaling_ratio to specify the scaling ratio of the output with respect to the input image. The default value is 0.5.
pyascii avatar.png -s 0.1You can use -o or --output_format to specify the format of the output file.
0represents for.txtformat
1represents for.htmlformat
2represents for both.txtformat &.htmlformat
The default value is 1.
pyascii avatar.png -o 0You can use -lh or --line_height to specify the height of each line of ascii characters in the output file. The default value is 0.65.
Note: It only works for
htmlformat output.
pyascii avatar.png -lh 0.65You can use -fs or --font_size to specify the font size of ascii characters in the output file. The default value is 5.
Note: It only works for
htmlformat output.
pyascii avatar.png -fs 8pyascii demo.mp4You can use -s or --scaling_ratio to specify the scaling ratio of the output with respect to the input. The default value is 0.5.
pyascii demo.mp4 -s 0.1pyascii webcamYou can use -s or --scaling_ratio to specify the scaling ratio of the output with respect to the input. The default value is 0.5.
pyascii webcam -s 0.1