Search notes:

Python library: pytesseract

#!/usr/bin/env python3

import pytesseract
import cv2

img_path = '…'

image = cv2.imread(img_path)

text = pytesseract.image_to_string(image, config = ("-l eng --oem 1 --psm 6") )
print(text)

See also

tesseract
The Python library OpenCV (cv2)

Index