Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

how do i make img to string in python using pytesserac and PIP image

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