[tesseract-ocr] Fails to recognize seemingly simple text

2019-05-02 Thread Arjun Bk
Hi, Attached here are two images that I cannot recognize using tesseract-ocr. I am calling a standalone .exe file (tesseract v4.0.0.20181030) in my python script to generate the pytesseract function. So far, I have not tried training my program. If anybody hints on that, I will try to learn it

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

Re: [tesseract-ocr] Fine tuning existing model

2019-05-02 Thread Tairen Chen
Hi, Lorenzo and Shree Thanks for your sharing. I am trying to repeat what you have done here. I followed your posts and change the Makefile, but when I run $ make training, I got the following errors: mkdir -p data/checkpoints lstmtraining \ --contin

Re: [tesseract-ocr] Fine tuning existing model

2019-05-02 Thread Lorenzo Bolzani
Hi Tairen, the error is quite clear: Must provide a --traineddata see training wiki You say that it works if you run it as a single line so I suppose there is something wrong in the make file, probably a typo. Maybe there is a space or a tab after a "\" ? Maybe there are some extra characters fr

Re: [tesseract-ocr] Fine tuning existing model

2019-05-02 Thread Tairen Chen
Thank you very much for your quick answer, Lorenzo! You are right, it is an extra space at the beginning where the "TESSDATA" is defined not at the "lstmtraining" line. I still have few questions want to ask you for help. 1. I define the "--max_iterations 2" but the training

[tesseract-ocr] Tesseract to get text of urdu image

2019-05-02 Thread M Fahid
Hy to all. Hope all will be fine. i am doing project on Image Poplarity priction in which i have to get text of different kinds of images . i am facing problem to get text of specific image having URDU text .file is attached .any one having solution to this -- You received this message b