I am trying to extract text from an image using Tesseract. Here is my code. I installed using pip install pytesseract
and I also checked pytesseract.py under site-package. But when I run the following code, I got the following error message 'WindowsError: [Error 2] The system cannot find the file specified'.
Any ideas? Thanks
from PIL import Image
import pytesseract
#pytesseract.pytesseract.tesseract.cmd = 'C:/Program Files (x86)/Tesseract-OCR/tesseract.exe'
im = Image.open('C:/Users/daizhang/Desktop/issue.PNG')
text = pytesseract.image_to_string (im)
print (text)