I am having a problem with my project using Python 3 and Pytesseract. I want to recognize text from image but my code not work. I'm so sorry because my English not good. But I really need yours help!
Here is my code:
import pytesseract
from PIL import Image
print (pytesseract.image_to_string(Image.open('cc.jpg')))
And here is my problems:
C:\Python\python.exe C:/Users/Tam/Desktop/Test/test2.py
Traceback (most recent call last):
File "C:/Users/Tam/Desktop/Test/test2.py", line 3, in <module>
print (pytesseract.image_to_string(Image.open('cc.jpg')))
File "C:\Python\lib\site-packages\pytesseract\pytesseract.py", line 122, in image_to_string
config=config)
File "C:\Python\lib\site-packages\pytesseract\pytesseract.py", line 46, in run_tesseract
proc = subprocess.Popen(command, stderr=subprocess.PIPE)
File "C:\Python\lib\subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:\Python\lib\subprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Process finished with exit code 1
I don't understand what's wrong!