Generate photos to read correctly by tesseract-ocr

38 views
Skip to first unread message

Aboolfazl Ehsani

unread,
Apr 10, 2022, 7:25:10 AM4/10/22
to tesseract-ocr
I read the attached image with the following code, but some words are not recognizable. Please help me how to identify all the texts and numbers inside the image.

import cv2
import pytesseract

image = cv2.imread('Untitled.jpg')
custom_config = r'-l eng --dpi 300 --oem 3 --psm 6'
print(pytesseract.image_to_string(image, config=custom_config))
Untitled.jpg

Zdenko Podobny

unread,
Apr 10, 2022, 8:40:34 AM4/10/22
to tesser...@googlegroups.com

ne 10. 4. 2022 o 13:25 Aboolfazl Ehsani <ehsan...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/d2706e2b-5e89-40a2-aa00-b99628c00928n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages