Re: [tesseract-ocr] Fails to recognize seemingly simple text

2019-05-03 Thread Arjun Bk
Hi Lorenzo, The link you shared was very helpful and your valuable suggestions helped me a lot. Now the image detection seems to work for at least 90% of my cases. Just for information, I started with a top-hat transform followed by the Sobel operator and then applied the Otsu thresholding. Th

Re: [tesseract-ocr] Fails to recognize seemingly simple text

2019-05-02 Thread Lorenzo Bolzani
Hi, use psm 6 (or 7). Also try to crop to have a single line, if possible. Black text on white bg is better. You should be able to isolate text in this way: https://www.pyimagesearch.com/2017/07/17/credit-card-ocr-with-opencv-and-python/ Lorenzo Il giorno gio 2 mag 2019 alle ore 16:15 Arjun Bk