this link:
https://www.b4x.com/android/forum/threads/ocr-offline-tesseract.57727/#content
starts an interesting thread about using tesseract offline with b4a. what you end up with - or at least what i ended up with - is not nearly as polished or as good as textfairy, but there is hope.
that thread hasn't been updated, but there are new links which might be of use to anyone who got tesseract going, but whose results were less than satisfactory.
i refer to the so called javacpp-presets and the tessdata. i think the updates make a difference. some of my tests were pretty gratifying.
here is the new link for the javaccp-presets. (the latest version is at 1.3, but its format is different
from what is expected. 1.2 is the latest in .zip format):
https://repo1.maven.org/maven2/org/bytedeco/javacpp-presets/1.2/javacpp-presets-1.2-bin.zip
new link for tessdata (pick your languages. regrettably, the files are even bigger than they were):
https://github.com/tesseract-ocr/tessdata
i just overwrote the old files with the new ones. the sample app in the original thread is pretty much all you need.
https://www.b4x.com/android/forum/threads/ocr-offline-tesseract.57727/#content
starts an interesting thread about using tesseract offline with b4a. what you end up with - or at least what i ended up with - is not nearly as polished or as good as textfairy, but there is hope.
that thread hasn't been updated, but there are new links which might be of use to anyone who got tesseract going, but whose results were less than satisfactory.
i refer to the so called javacpp-presets and the tessdata. i think the updates make a difference. some of my tests were pretty gratifying.
here is the new link for the javaccp-presets. (the latest version is at 1.3, but its format is different
from what is expected. 1.2 is the latest in .zip format):
https://repo1.maven.org/maven2/org/bytedeco/javacpp-presets/1.2/javacpp-presets-1.2-bin.zip
new link for tessdata (pick your languages. regrettably, the files are even bigger than they were):
https://github.com/tesseract-ocr/tessdata
i just overwrote the old files with the new ones. the sample app in the original thread is pretty much all you need.