-1

I have got the Libraries for Number Recognition i.e tesseract
But i dont know how to use the DLLs with JAVA.

ThiefMaster
  • 298,938
  • 77
  • 579
  • 623
Azuu
  • 846
  • 2
  • 16
  • 31
  • 1
    You need a library with java interface, try to look here: http://stackoverflow.com/questions/1813881/java-ocr-implementation – dbf May 07 '12 at 08:32
  • 1
    Please provide more details about what you want to achieve and what you have tried so far. If you present a _specific_ problem, you're more likely to get help. – Eli Acherkan May 07 '12 at 08:34
  • I m trying remove characters and number from image. And i m at starting phase of my project.. – Azuu May 07 '12 at 12:11

2 Answers2

3

There is a Java JNA wrapper for Tesseract DLL that you can use: Tess4J

Be sure to call TessBaseAPI::SetVariable("tessedit_char_whitelist", "0123456789"); if you want to recognize only digits.

nguyenq
  • 7,964
  • 1
  • 15
  • 15
0

You either need to use or run the external process from Java. Have a look at Issue 302: how to run tesseract-ocr in java application at Linux platform. Specifically check tesjeract.

Tomasz Nurkiewicz
  • 324,247
  • 67
  • 682
  • 662