Hello Samuel & All,
I am facing a fatal exceptions alternately (For Example: 2nd run,4th run,6th run,....and so on ).This is observed when application is resumed for 2nd run :-
1> While debugging i got to know that ,DetectMultiscale() is throwing that exception, Following is my code :-
opencv_core.Size minimumSize = new opencv_core.Size(30, 30);
opencv_core.Size maximumSize = new opencv_core.Size();
cascadeClassifier.detectMultiScale(testImage, faces, 1.1, 2,CASCADE_FIND_BIGGEST_OBJECT | CASCADE_SCALE_IMAGE, minimumSize, maximumSize);
Then i call testImage.release(), when my job is done with it.
Can anyone please tell, what else can i do to resolve this exception?? Thanks in Advance.
Following is the LogCat for the same:-
E/AndroidRuntime: FATAL EXCEPTION: Camera Background
Process: com.example.darshana.faceauthentication, PID: 27377
java.lang.RuntimeException: /home/saudet/projects/bytedeco/javacpp-presets/opencv/cppbuild/android-arm/opencv-3.2.0/modules/core/src/matrix.cpp:433: error: (-215) u != 0 in function void cv::Mat::create(int, const int*, int)
at org.bytedeco.javacpp.opencv_objdetect$CascadeClassifier.detectMultiScale(Native Method)
at com.example.darshana.faceauthentication.LBPHFaceRecognizer.preprocessTheImage(LBPHFaceRecognizer.java:196)
at com.example.darshana.faceauthentication.LBPHFaceRecognizer.predictLabel(LBPHFaceRecognizer.java:122)
Regards,
ANZ-DB