Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-27 Thread Hervé
decimal point is not a problem, I can devide by 100 or 10 and it works :) could you share my the whole code ? thanks Le lundi 27 juin 2022 à 20:44:42 UTC+2, zdenop a écrit : > not sure what are you doing, but try something like this: > > def autoinvert(binarized_img, tresh=0.5): > """Invert

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-27 Thread Zdenko Podobny
not sure what are you doing, but try something like this: def autoinvert(binarized_img, tresh=0.5): """Invert binarized image if amount of black pixels is higher than tresh. """ height, width = binarized_img.shape non_zero = cv2.countNonZero(binarized_img) white_rate = non_zero

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-26 Thread Zdenko Podobny
Check your tesseract version (tesseract -v). Here is mine: tesseract 5.1.0-70-g0df5 leptonica-1.83.0 (Jun 24 2022, 17:48:50) [MSC v.1929 LIB Release x64] libgif 5.2.1 : libjpeg 6b (libjpeg-turbo 2.0.91) : libpng 1.6.37 : libtiff 4.4.0 : zlib 1.2.12 : libwebp 1.2.2 : libopenjp2 2.5.0 Found AVX2

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-25 Thread Hervé
Sorry I am really noob When I do : tesseract pH_treshr.png - I have : Empty page!! Empty page!! How do you achieve to have this image ? and why can't I tesseract it like you ? I am on buster with tesseract 5.1 is there a way to discuss ? discord ? thanks for your patience and help Le samedi

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-25 Thread Zdenko Podobny
Sorry - I mean Rescaling: Tesseract works best on images which have a DPI of at least 300 dpi, so it may be beneficial to resize images. For more information see the FAQ. "Willus Dotkom" made interesting test for Optimal image resolution with suggestion for optimal Height of capital letter in pixe

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-25 Thread Hervé
I am on tesseract 5 Inverting images While tesseract version 3.05 (and older) handle inverted image (dark background and light text) without problem, for 4.x version use dark text on light background. isn'it the same than : (thresh, im_bw) = cv2.threshold(gray, 128, 255, cv2.THRESH_BINARY

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-25 Thread Zdenko Podobny
Why you did not try more relevant hits like inverting and resizing? Zdenko so 25. 6. 2022 o 10:56 Hervé napísal(a): > I tried gray image, black and white, and I use > > custom_psm = r'--psm 7' > > didn't try others parameters > Le samedi 25 juin 2022 à 10:32:14 UTC+2, zdenop a écrit : > >> >>

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-25 Thread Hervé
I tried gray image, black and white, and I use custom_psm = r'--psm 7' didn't try others parameters Le samedi 25 juin 2022 à 10:32:14 UTC+2, zdenop a écrit : > > > so 25. 6. 2022 o 8:15 Hervé napísal(a): > >> Hi >> I just tried some, without real success >> >> Please be specific: what did you

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-25 Thread Zdenko Podobny
so 25. 6. 2022 o 8:15 Hervé napísal(a): > Hi > I just tried some, without real success > > Please be specific: what did you try and what was the result? > could I learn digits from pictures ? maybe this font is not well recognized > Any training is useless if the failure is at the image prepr

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-24 Thread Hervé
Hi I just tried some, without real success could I learn digits from pictures ? maybe this font is not well recognized thanks Le vendredi 24 juin 2022 à 17:12:44 UTC+2, zdenop a écrit : > Did try to implement suggestion from documentation? > https://github.com/tesseract-ocr/tessdoc/blob/main/Im

Re: [tesseract-ocr] Tesseract OCR LCD digits doesn't work

2022-06-24 Thread Zdenko Podobny
Did try to implement suggestion from documentation? https://github.com/tesseract-ocr/tessdoc/blob/main/ImproveQuality.md Zdenko pi 24. 6. 2022 o 16:59 Hervé napísal(a): > Hi, I need some help to make tesseract-OCR recognize digits : can't > achieve to make this work with > > > https://img.sup