1
このコードでこのエラーが発生しました public MyTessOCR(コンテキストコンテキスト){ this.context = context;致命的なシグナル11(SIGSEGV)、コード1、tidのフォールトaddr 0x0 31489テス2つ
//initialize Tesseract API
String language = "eng";
datapath = this.context.getFilesDir()+ "/tesseract/";
mTess = new TessBaseAPI();
checkFile(new File(datapath + "tessdata/"));
mTess.setDebug(true);
mTess.init(datapath, language); // crash here
Log.d("OK","OK");
}
Iveはまだeng.traineddataを変更しようとしましたか?
私は新しいプロジェクトを作成しても、まったく同じコードを実行すると、それは機能します。それがうまくいかないプロジェクトは少し古い(2歳)です。 おそらく更新がありますか?
、それはまさにここで失敗:
boolean success = nativeInitOem(datapath, language, ocrEngineMode); //ocrEngineMode = 3
関連する? https://github.com/rmtheis/tess-two/issues/197 –