filiptronicek

OCR with Tesseract

Jan 15th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. from pytesseract import image_to_string
  2. from PIL import Image
  3. import time
  4.  
  5. im = Image.open('ocr/4.jpg') #URL: http://upload.hys.cz/new/server/php/files/8lf9llpcc8s6qjiqu2it0llcqd/4.jpg
  6. print(im)
  7.  
  8. print(image_to_string(im, lang="eng"))
  9. time.sleep(50)
Advertisement
Add Comment
Please, Sign In to add comment