I'm trying to make img to text python program but i have. But my pytesseract doesnt work
I tried 'pip install pytesseract' and 'pip3 install pytesseract' it installs without error but when i try to run my code it gives error you can see it in my code and i tried install using .exe
from PIL import Image
from pytesseract import *
im = Image.open("sample1.jpg")
text = pytesseract.image_to_string(im, lang = 'eng')
print(text)
i wanna get output: The quick brown fox jumped over the 5 lazy dogs!
Comments
Post a Comment