Answers for "image.text python"

9

image to text python

from PIL import Image
import pytesseract

image = 'PATH/TO/IMAGE'
text = pytesseract.image_to_string(Image.open(image), lang="eng")
print(text)

# Code From here: https://www.youtube.com/watch?v=kxHp5ng6Rgw
Posted by: Guest on February-02-2021
2

get text from image python

img = cv2.imread('image.png')

text = pytesseract.image_to_string(img)
print(text)
Posted by: Guest on April-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language