I'm looking for some open optical character recognition (OCR) raw libraries that I can use to create a Java application that compares them. Anywhere I search I find just applications to OCR.

  • Are you OK with having to train the OCR with your data? If not, what languages do you want to OCR? For instance Japanese kanjis, or Arabic numbers. Also, what is your budget? – Nicolas Raoul May 29 '17 at 14:10

You can use

I have used tesseract (first option) and found that it is quite accurate (not 100% in my case). I directly used trained data for recognition. You can start with following code.

    Tesseract tess = new Tesseract();

    tess.setDatapath(tessDataPath); //Path to tessdata directory

    String text = tess.doOCR(new File(path)); // Path to input image


Hope this helps.

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.