We are trying automate the entire loan application and processing. So, this involved a lot of character recognition stuff as our target group have their financial documents as hard copies. Helping them autofill their information would make their task easier as well as avoid human errors while typing. So, after reading a few articles, I first designed a OCR using google’s OCR library tesseract. The classifier produced…
is this for US banks ? I'm assuming not. > It provided us the coordinates of all the texts and all we had to do was look for texts similar to an Account number and IFSC from a cheque book. Using some regex it was easy to find closely matching strings Could you explain what you mean by this ? We are trying to read shopping receipts, but I have ZERO background in image processing... so have been trying to figure out wh…
Using Tesseract OCR with Python
41–50 of 50 posts
Re: Using Tesseract OCR with Python
#42Teaseract is ok printed material that's neatly organized, but other than that it seems the only other programmatic ocr is google cloud vision. It's a hundred times better, but unfortunately I need to OCR documents I can't contractual show the mighty G
In the "better than Tesseract" category is also Microsoft Azure OCR (not as good as Google) and the OCR.space OCR API (also not as good as Google, but 100* times cheaper/free, and supports PDF). The best - and most expensive - solution is still Abbyy OCR. They provide an SDK than can be used locally. A new local OCR solution is Anyline.io, but I have not used them yet.
How did you get Copyfish to play nice with Zhongwen/Perapera? I've tried it with Chrome and Firefox and nothing seems to get them to pick up on the OCR text.
Re: Using Tesseract OCR with Python
#43Is there a way to combine the character-level OCR with knowledge of the English dictionary? Something like `pregrarrmung` should be able to map to 'programming' especially with n-gram context of pregrarrmung experience.
Yep, it's called adding a language model. Check out this paper (2011) for a good summary of the pros and cons: https://research.google.com/pubs/pub36984.html
Re: Using Tesseract OCR with Python
#44In short: It's a python code where you press one button and it will take a screen shot, crop the image, decode it, and type in at over 900+ rpm.
https://anthonys.io/ocr-engine-playground/
To see how it is in action without the OCR functions:
Re: Using Tesseract OCR with Python
#45(Hopefully) Related question: What is the state of the art in OCR on photographs? Is there something like the inception model for OCR?
Re: Using Tesseract OCR with Python
#46I used tesseract/pytesseract, almost perfect pre processing using blur, otsu etc, But for get good results, you need big images, 300 dpi+ are needed, The big images make it is too slow, Maybe i should have try segmentation the caracters before using the ocr, I endeup making my ocr from scratch, using averages etc, and it is almost instant, and i am happy with it.
Re: Using Tesseract OCR with Python
#47for preprocessing you can just use pillow for thresholding,rgb gray conversions etc. While opencv gives much more option its a heavy library to use for this kind of functionality.
Re: Using Tesseract OCR with Python
#48We are trying automate the entire loan application and processing. So, this involved a lot of character recognition stuff as our target group have their financial documents as hard copies. Helping them autofill their information would make their task easier as well as avoid human errors while typing. So, after reading a few articles, I first designed a OCR using google’s OCR library tesseract. The classifier produced…
One possible alternative solution is to chop the image into smaller images (with something like ImageMagick) based on each value's likely location in the document, then OCR those. You get a confidence interval with tesseract, so you can iterate over possible templates (or shrink/expand crops) until you get an [edit: aggregate] interval you're comfortable with.
Re: Using Tesseract OCR with Python
#49Earlier quoted context omitted.
We are majorly facing challenge with cheques and bank statements with noisy background. e.g. those of HDFC bank.
Out of interest, with cheques are you facing problems with sort code etc too, if so, I was just wondering, don't they use magnetic ink for those.
Re: Using Tesseract OCR with Python
#50Earlier quoted context omitted.
One possible alternative solution is to chop the image into smaller images (with something like ImageMagick) based on each value's likely location in the document, then OCR those. You get a confidence interval with tesseract, so you can iterate over possible templates (or shrink/expand crops) until you get an [edit: aggregate] interval you're comfortable with.
Thanks for the suggestion. Will try and share the results here