Skip to content

ulcuber/python-ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python image-to-text converter

  • Uses PIL
  • Adaptive image ratio and width
  • Converts image to grayscale, every grayscale pixel to symbol
  • Converts image to grayscale, every 4 pixels to symbol (black and white only)
  • Uses image RGB to print RGB escape codes \033[38;2;

Run

. bin/activate
python src/image-to-ascii.py --help

python video-to-text player

  • Uses OpenCV
  • Adaptive video ratio and width

Run

. bin/activate
python src/video-to-ascii.py --help

Debug

export OPENCV_VIDEOIO_DEBUG=1
export OPENCV_LOG_LEVEL=debug

Install

make venv
. ./bin/activate
make install

Releases

No releases published

Packages

No packages published