JNA/JNI is always a pain - its when native libraries are used for either performance or legacy reasons. And it makes Java programs much more complicated, fragile and difficult to maintain. But, after kicking Tessa4j around a bit - I wanted to see how well it worked.. so I spent a few extra cycles, kicking it and finally I got results (that's the good news) .. The bad news is it does some phenominally crappy ocr.
With this image which is a SCREEN SHOT mind you .. about as perfect a picture of text there is. No fuzzyness, no dusty street sign, this is as black and white as you could possibly get.
With the above screen shot I got this as recognized text.
/(ekSI/ 1-)nounI a book a omenunlmn nrprmled walk regarded ntevms om cormm ramenhan Ils physicalform,'2 um um explores paln and gnersynonym hook me wmlen wofk pinned walk, document'2 um um explores paln and gner2 the main bodyafa book H mm: pematwmngas dlsmlcl «mm mm maleual such 25 notes,appeudmes, and .uusuaum,'Ihe plclums are clear and relate well m the ten'synonym wmds, warding, willing, MmemI send a text messagela'l mmgm n was fzmasuc am he umk Ihe [mthle m «m me'
It did a nice job of building it all and auto-magically testing the project with test data supplied.
Here is one of the test images.
Very interesting article on stackoverflow regarding details of OpenCV pre-processing
https://stackoverflow.com/questions/23506105/extracting-text-opencv
Last time I tested I had some
Last time I tested I had some good results with last build : net.sourceforge.tess4j\3.4.0
Hmmm perhaps there is still
Hmmm perhaps there is still hope ..
I saw this - https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage
needs more playing with I suppose
How Hi-Res was the screen shot?
I had similar results initially when I was doing screen captures form my LiveCam HD USB Camera through "Take a Picture" functionality of OpenCV. I got much better results when I fed it images from my Samsung Galaxy S7 with super high resolution. It may be "Good Enough" or better than initially believed. I am not ready to give up on it totally. If you can pass on how you were testing I may try to take it a bit further...