cordova-plugin-tesseract icon indicating copy to clipboard operation
cordova-plugin-tesseract copied to clipboard

Download Language

Open zindelluib opened this issue 8 years ago • 4 comments

What does "Download the language" means? Do you need internet connection in this sir? Do you have any working Ionic App sir using this plugin?

zindelluib avatar Nov 13 '16 09:11 zindelluib

Hi @zindelluib ! Yes, it was built to download the tessdata file (file data for the language you want to read). If you will always use a specific language, you can fork or clone this project, then add the tessdata you want and easily make a change to always use this tessdata.

gustavomazzoni avatar Nov 14 '16 16:11 gustavomazzoni

What about the english language sir? Is download still needed? Do you have a working Ionic App sir using this plugin? Do we need to have internet always to use this plugin? Thanks for your help sir @gustavomazzoni

zindelluib avatar Nov 16 '16 04:11 zindelluib

If i understand there only 2 languages support? eng.traineddata por.traineddata

var language = "eng";
TesseractPlugin.loadLanguage(language, function(response) {
  deferred.resolve(response);
}, function(reason) {
  deferred.reject('Error on loading OCR file for your language. ' + reason);
});

one-geek avatar Nov 17 '16 18:11 one-geek

@guerson https://github.com/tesseract-ocr/tessdata/tree/3.04.00

nicksanchezc137 avatar Nov 07 '18 07:11 nicksanchezc137