Ruju
Ruju

Reputation: 971

tesseract not reading text and number which has background image using java

I tried to read image using tess4j(1.1) for tesseract but unable to read those numbers/chars which has background image,so I applied thresholding on image and image change to black and white but also the problem remains same.

So I want to know that,

is it possible by using tess4j(tesserarct) to read characters/numbers which has background color or image in background. If it is possible then try to provide some clues for it.

OR

is it possible to get result by making some changes in traineddata for character recognition

For such scenarios,is javacv the only option available and not tesseract?

I am also finding opportunity with neural network but it seems to require more time for it.

Is any solution for it?

Using tess4j example is

File imageFile = new File("myimage.jpg");

Tesseract instance = Tesseract.getInstance();

String result = instance.doOCR(imageFile);

System.out.println(result);

Upvotes: 2

Views: 2625

Answers (2)

Ruju
Ruju

Reputation: 971

Tesseract is not the best way for image processing.

There are other better options available like Neural Network,Template matching and other.

In any case,it is needed to clean the image background so have the option of javacv for image background cleaning.

And also until now tesseract not able to identify numbers.So I think that Neural Network is the good option for image text reading and using that I am able to get around 60%+ accuracy result.

Upvotes: 1

Omas Illomitzer
Omas Illomitzer

Reputation: 51

Try the Jumio Netswipe SDK to read credit cards http://jumio.com/products/netswipe/overview/

Upvotes: 0

Related Questions