2
$\begingroup$

I have this problem where I need to get information out of PDF document sent from a scanner. The program needs to be learnable in some way to recognize what different figures mean. Most of this should happen without human interference so it could just give a result after scanning the file. Do anyone know if it's possible to do with a machine learning program or any alternative way?

$\endgroup$
  • $\begingroup$ Take a look at tesseract OCR. It doesn't do what you want, but in combination with other AI techniques it may get you there faster than trying to create everything from scratch. $\endgroup$ – han_nah_han_ Jan 19 at 5:08
2
$\begingroup$

Yes, that's possible. I am working on a project in which I have to detect text in images. I did a quick search and found these two algorithms:

1. EAST: (Efficient and Accurate Scene Text Detector)
I am not sure if it is based on Machine Learning. Here are some links link1 link2 explaining how to use it with an example and using tesseract to extract the detected text.

2. CTPN: (Connectionist Text Proposal Network)
This algorithm is based on Machine Learning. Here is its link in github. In the description, you will find a link to a pre-trained model that you can use. Or simply, you can prepare your own data and train your own model.

For me, I tried both of them, and the CTPN model gave better results especially when the image contains large text.

$\endgroup$
  • $\begingroup$ Thank you very much for the answer but looked a bit on the website and can see that the programs have a hard time to find the symbols that I also have to find. The text has to find can be small and also sideways sometimes. Example of text: ibb.co/jfjhW8J $\endgroup$ – Nicolaj Juul Jan 17 at 9:09
  • $\begingroup$ I applied the ctpn algorithm on your image, and this is the result. I think it is not so precise since it didn't detect all the text in the image. Well, may be if you train it with your own data (which would take a lot of time), the results would be more precise. If you find any better method please post it here so all the community would benefit from it. Thank you! $\endgroup$ – singrium Jan 17 at 9:24
  • $\begingroup$ I probably need to train my own program than to do it for me. Do you still think the best platform for a project like this would be CTPN? And do you know a machine learning program where you can evaluate the results afterward to tell it what it did right and wrong? $\endgroup$ – Nicolaj Juul Jan 17 at 9:40
  • $\begingroup$ In my situation, CTPN was more precise, but in general I am not sure.. It strongly depends on the characteristics of the text you want to detect. To my knowledge, there is no like 'machine learning program to evaluate the results' you can evaluate your model by checking the accuracy, validation accuracy and the loss while doing the training. and after you finish the training, you can test your model by giving it some images and see if it detects all the text zones or not. $\endgroup$ – singrium Jan 17 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.