Extract text from image in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Extract text from image in python

How can i extract text from image in python?

7th Dec 2020, 5:51 PM
Parham Shafiei Sabet
Parham Shafiei Sabet - avatar
1 Answer
+ 1
import cv2 import pytesseract # This will read images img = cv2.imread("image.png") # This will run tesseract OCR on images text = pytesseract.image_to_string(img) # This will print the recognized text print(text)
6th Feb 2023, 7:43 PM
IAmJunior B
IAmJunior B - avatar