Thanks a lot ! I found what I was looking for ! : txt = pytesseract.image_to_string(image, config="-c tessedit_char_whitelist=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-")
Le vendredi 6 mars 2020 15:03:04 UTC+1, shree a écrit : > > Search for whitelist / blacklist in forum for ways to restrict the > characters. > > On Fri, Mar 6, 2020, 18:19 Guillaume de Rybel <[email protected] > <javascript:>> wrote: > >> Hi, my work is to recognize license plates, and sometimes, tesseract >> recognize some special characters. I need to 'ban' those characters : '/' , >> '|' , ',' . >> May I have some help ? >> >> Sorry if my english is bad, >> Thank you, >> >> Guillaume >> >> -- >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tesseract-ocr/c02ecca9-2157-49db-8149-0745a3bfab19%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tesseract-ocr/c02ecca9-2157-49db-8149-0745a3bfab19%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/1ebcb31e-5fee-43e1-98df-8b1ced8b3448%40googlegroups.com.

