Open c1rew opened 8 years ago
I encountered the same problem you got,please let me know if you solve it
I don't know the really problem is, and after modify many source code file can not solve this crash.
but I found a bug, maybe it is the point.
source code file jni/src/core/ImageProc.cpp
line 64 str = plateVec[0];
if input image have not plate, vector plateVec will be empty, that will be crash.
I think this will help you.
after few days , I will update this project to latest EasyPR and fix this crash on my own page.
thanks for that
@c1rew good job.
@c1rew It solves this problem for me too
it works , thanks !
@JohnDannl @bingshuizhang did you solve the problem?would you please send me a copy of your repo? crap_man@163.com
@dylanchann I've just change the 63rd line of source code file jni/src/core/ImageProc.cpp: if (count == 0) to if(!plateVec.empty() && count == 0) hope it helps .
thanks it works
environment: devices: HUAWEI honor 3C (Android 4.2.2) eclipse: Android SDK 4.4.2 OpenCV: 2.4.10
modify MainActivity.java path = sdcard/EasyPR/
test image is jni/image/2.jpg
launch application, it is crash when I click the button. following is log
10-08 15:56:03.613: I/System.out(27048): entering the jni 10-08 15:56:04.910: A/libc(27048): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 27048 (xample.carplate) 10-08 15:56:04.910: A/libc(27048): Send stop signal to pid:27048 in debugger_signal_handler