I use 3 filtering : convert to gray scales - inverted image and last one cv2.threshold(self.img1,127,255, cv2.THRESH_BINARY) Does it help ? I can send you the python cv2 code
Le ven. 23 févr. 2024 à 22:56, Will Fetherolf <will.fether...@gmail.com> a écrit : > Do you know what threshold was used to convert the color to black on white? > I'm doing these operations through a home-grown automated test system, and > I can convert the image to black and white on the fly. > > On Friday, February 23, 2024 at 5:04:27 AM UTC-6 renec...@gmail.com wrote: > >> I transform your image as a real Black and white image and it works well. >> -l eng --psm 6 ' >> >> Le ven. 23 févr. 2024 à 06:49, Will Fetherolf <will.fe...@gmail.com> a >> écrit : >> >>> All, >>> >>> I need some help extracting the text from this image. I'm using the >>> command line version of Tesseract from UBMannheim. I think it's 5.2 >>> installed. I've tried every PSM, and nothing seems to pull it out. If I >>> crop off the minus sign, it works perfectly. >>> >>> Any tips at all would be appreciated. >>> >>> TIA! >>> Will >>> >>> -- >>> 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/58b76c0b-2d6f-4574-a9e8-24d1a7dcc3d9n%40googlegroups.com >>> <https://groups.google.com/d/msgid/tesseract-ocr/58b76c0b-2d6f-4574-a9e8-24d1a7dcc3d9n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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-ocr+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/10608a37-af71-404c-9f3d-4526ab115a19n%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/10608a37-af71-404c-9f3d-4526ab115a19n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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-ocr+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAPJAo_oGc2ea3FFegWK4dfEc7yoM5R5ByYSkrtyHgD6MUo-kzg%40mail.gmail.com.