Copy of ocr.py for use with adaptivethresh
Added a meme