在致命的tesseract信号11(SIGSEGV)错误 [英] Fatal signal 11 (SIGSEGV) Error in Tesseract

查看:800
本文介绍了在致命的tesseract信号11(SIGSEGV)错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经发展与的tesseract 图书馆一个Android应用OCR。

I have developing an android ocr app with Tesseract Library.

和我建立与NDK建造项目。我建立了我的项目,并放置在 eng.trainneddata(3.02版本)资产的我的应用程序的文件夹,当我开始我的应用程序文件复制到 tessdata 文件夹到我的文件夹中的 tivs

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.

和我模仿到我的1GB的RAM和900MB我的电话的自由空间它完美的设备之一。我测试了一下我的另一个设备(MOTO E)它告诉致命错误信号11(SIGSEGV)当我调用getUTF8短信()。

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().

编辑:

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.

推荐答案

一定要有条不紊地检查,以确保您知道哪些行程序失败的。

Be sure to methodically check to make sure you know which line your program fails at.

打印到设备日志或使用调试器将帮助这一点。

Printing to the device log or using a debugger will help with this.

这篇关于在致命的tesseract信号11(SIGSEGV)错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆