Skip to content

An attempt to implement optical character recognition in sed.

Notifications You must be signed in to change notification settings

Circiter/ocr-in-sed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ocr-in-sed

Optical character recognition (OCR) in sed. Reimplementation of Kopczynski's OCR C one-liner.

Example:

cat examples/9.txt | ./ocr.sed
# Expected output: 9.

Try other examples/*.txt files or "draw" your own (simple "ascii-art" matrices of x'es and whitespaces).

The algorithm finds a topological invariant known as the Euler number and uses it to tell the numbers apart. Currently, it is able to recognize 8, 9, 10, and 11. So many numbers...

See references below and the source code (ocr.sed) for implementation details and related information.

References:

About

An attempt to implement optical character recognition in sed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages