Skip to content
pictotxt is a python program which takes an image and outputs text in the form of the input image
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
fonts/DroidSansMono
src
tests
.gitignore
.travis.yml
README.md
requirements.txt

README.md

pictotxt

Build Status

About

pictotxt is a a python script which takes an image and outputs text in the form of the input image

pictotxt

How to use

Requirements:

  • Python Image Library (PIL)
  • Numpy
git clone git@github.com: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

Input:

step1

The imported image is split up into 'character sized' images.

step2

Split of the font to get individual images of each character

step3

For each mini-image from the imported image, compare it with all the characters and find the best match with the following function

step4

Result:

You can’t perform that action at this time.