A python program which takes an image and outputs text in the form of the input image.
pictotxt is a python script which converts an image to text
How to use
- Python Image Library (PIL)
git clone firstname.lastname@example.org:lazydancer/pictotxt.git cd pictotxt pip install -r requirements python src/pictotxt.py examples/octocat.png
The result will be printed on your console/terminal
How it works
The imported image is split up into ‘character sized’ images.
Split of the font to get individual images of each character
For each mini-image from the imported image, compare it with all the characters and find the best match with the following function