Created
May 30, 2018 04:08
-
-
Save edwhu/b66da5d213c3e5420e6c01646e2dcffa to your computer and use it in GitHub Desktop.
ocr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyocr | |
import pyocr.builders | |
from PIL import Image | |
tools = pyocr.get_available_tools()[0] | |
text = tools.image_to_string(Image.open(image), | |
builder=pyocr.builders.DigitBuilder()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment