0

I'm tring to get the digit from this LCD display: LCD Display

I used pytesseract whit this code:

img = cv2.imread('1.png')
img = get_grayscale(img)
img =  cv2.bitwise_not(img)

custom_config = r'--psm 7 --oem 3 -c tessedit_char_whitelist=0123456789'

print(pytesseract.image_to_string(img,lang='eng',config=custom_config)

But i didn't get a good result.

I also tried passing the cropped image: Cropped LCD Display I get better result but not good enough.

I tried also to insall other OCR (lie calamari-ocr, easyocr) module but i always get some different error while tring to install that.

What i can try?

0 Answers0