1
이 코드에이 오류가 있습니다. public MyTessOCR (컨텍스트 컨텍스트) { this.context = context;치명적 신호 11 (SIGSEGV), 코드 1, 오류 addr 0x0 in tid 31489 Tess-two
//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");
}
필자는 아직 eng.traineddata를 변경하려고 시도 했습니까 ??
이상한 점은 새 프로젝트를 만들고 정확히 동일한 코드를 실행할 때 작동한다는 것입니다. 그것이 작동하지 않는 프로젝트는 약간 나이가 들어갑니다 (2 세). 어쩌면 할 일이 있습니까?
과 정확히 여기에 실패
boolean success = nativeInitOem(datapath, language, ocrEngineMode); //ocrEngineMode = 3
관련 https://github.com/rmtheis/tess-two/issues/197 –