Skip to content

Instantly share code, notes, and snippets.

@krmbzds
Last active August 29, 2015 14:05
Show Gist options
  • Save krmbzds/c6e014455085da3e8346 to your computer and use it in GitHub Desktop.
Save krmbzds/c6e014455085da3e8346 to your computer and use it in GitHub Desktop.
from SimpleCV import Image
import pytesseract
img = Image("http://i.imgur.com/LU4q5IK.jpg")
img = img.invert().binarize().scale(5)
pytesseract.image_to_string(img)
# Out[5]: '58 +69'
eval(pytesseract.image_to_string(img))
# Out[6]: '127'
@krmbzds
Copy link
Author

krmbzds commented Aug 9, 2014

Context: Facebook Post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment