New course! Every coder should learn Generative AI!
Try a free lesson1 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)