Facebook
From Morose Kangaroo, 3 Years ago, written in Python.
This paste is a reply to Untitled from oracle - view diff
Embed
Download Paste or View Raw
Hits: 235
  1. from PIL import Image
  2. import pytesseract
  3.  
  4. image = Image.open("NADA.png")
  5. path_pytes = r"/usr/bin/tesseract"
  6. pytesseract.pytesseract.tesseract_cmd = path_pytes
  7. text = pytesseract.image_to_string(image)
  8. print(text)