Fatal signal 11 (SIGSEGV) Error in Tesseract

核能气质少年 提交于 2019-12-25 03:44:43

问题


I have developing an android ocr app with Tesseract Library.

And I build the project with ndk-build. And I created my project and placed the eng.trainneddata(version 3.02) in the assets folder of my application and when I started my application I copied the file to the tessdata folder into my folder tivs.

And i emulated into my one of the device with 1GB of RAM and 900MB free space of my phone it works perfectly. I tested that in my another device (Moto e) it tells the error Fatal signal 11 (SIGSEGV) when i calls the getUTF8 Text().

EDIT:

public static final String DATA_PATH = Environment
        .getExternalStorageDirectory().toString() + "/TIVS/";
TessBaseAPI baseApi = new TessBaseAPI();
    baseApi.setDebug(true);
    baseApi.init(DATA_PATH, lang);
    baseApi.setImage(bitmap);
    baseApi.setRectangle(20,400,600,100); // I forgot to add this line
    String recognized_text = baseApi.getUTF8Text(); //Error occuring on this line 

It continuously falls the same error all other devices.

来源:https://stackoverflow.com/questions/25152620/fatal-signal-11-sigsegv-error-in-tesseract

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!