SubhamTyagi / android-ocr

Tesseract based OCR for android
Apache License 2.0
401 stars 67 forks source link

TrainedData Download Process #29

Closed pinalpandav closed 3 years ago

pinalpandav commented 3 years ago

How can I pass the path of assets folder instead of downloading the traineddata file.

SubhamTyagi commented 3 years ago

What's assets folder Did it mean pre-downloaded trained data files folder?

pinalpandav commented 3 years ago

Yes, pre-downloaded trained data files.

SubhamTyagi commented 3 years ago

copy your pre downloaded files to /storage/emulated/0/Android/data/io.github.subhamtyagi.ocr/files/best if you are using best data model

SubhamTyagi commented 3 years ago

How can I pass the path of assets folder instead of downloading the traineddata file.

Due to restrictions from new Android (10 and newer) passing the data path from arbitrary location is not possible ( although it is possible but not a good option)

pinalpandav commented 3 years ago

Okay Thanks.