rmtheis / android-ocr

Experimental optical character recognition app
Apache License 2.0
2.22k stars 894 forks source link

Exception is launched when osd file is already present on the assets of the OCR Test app #12

Closed nikoct86 closed 10 years ago

nikoct86 commented 11 years ago

At row 253 and 256 of OcrInitAsyncTask.java, CaptureActivity.OSD_FILENAME_BASE should be changed to CaptureActivity.OSD_FILENAME. In the previous way untarring of OSD data file launches an exception becouse you cannot untar a file named "osd.traineddata.zip", you can for a file called "osd.traineddata.tar.zip" instead. Bye!

rmtheis commented 10 years ago

The project doesn't include the OSD data in the assets folder, but you can add it to your assets folder as a zip and use installZipFromAssets() to install it.

Feel free to send a pull request to make this code change if you want to.