1

I am using the Tess-Two tesseract library. In most example code, the external tessdata is loaded by accessing the SD card, something like: Environment.getExternalStorageDirectory().toString() + "/TesseractSample/";. Is it possible to access this translation file from inside the resources folder instead?

Rgfvfk Iff
  • 1,549
  • 2
  • 23
  • 47
  • You want to make it part of your pkg file? – sashoalm Mar 17 '17 at 13:58
  • I want to release an apk and was wondering if I could fit all the necessary files inside. – Rgfvfk Iff Mar 17 '17 at 14:07
  • The apk is just a zip file, you can add files even after compile. See https://stackoverflow.com/questions/27633323/how-to-add-resource-file-to-android-apk-after-compilation-and-build-of-apk – sashoalm Mar 17 '17 at 14:14

1 Answers1

2

No, not directly. You can package the training data in your app and copy it from the app's assets or raw folders onto the device external storage.

rmtheis
  • 5,992
  • 12
  • 61
  • 78