We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// step2: 检测字典是否正确 boolean okDict = checkDict(dir.getAbsolutePath()); 这里 打断点成功失败, 不打断点 失败,有遇到过吗
The text was updated successfully, but these errors were encountered:
是的,这个so包不稳定,在有些手机上可以,有些不可以,我建议可以和另一个搭配使用
Sorry, something went wrong.
很神奇 我也遇到了。如果在这里打断点就成功,不打断点就失败
解决了 可以试下 像这样写 失败了的话在新线程里再init
private static final boolean checkDict(final String path) { final byte[] bytes = path.getBytes(); Log.e("bytes",String.valueOf(bytes.length)); Log.e("path",path); int code = EXOCREngine.nativeInit(bytes); Log.e("kalu", "checkDict ==> code = " + code); if(code!=0){ new Thread(){ @Override public void run() { EXOCRDict.checkDict(path); } }.start(); } return true; }
https://github.com/lighthx/react-native-card-ocr/blob/b3c76d9c8b7db68b2bce5154d3733b2a3bac2d3f/android/src/main/java/exocr/exocrengine/EXOCRDict.java#L37
No branches or pull requests
// step2: 检测字典是否正确
boolean okDict = checkDict(dir.getAbsolutePath());
这里 打断点成功失败, 不打断点 失败,有遇到过吗
The text was updated successfully, but these errors were encountered: