Ask Your Question

Revision history [back]

error in CascadeClassifier and HOGDescriptor

I am creating an application in android, and I am trying to do a face recognition using either CascadeClassifier or HOGDescriptor, but when I try to use the constructors of any of these classes, my app crashes

CascadeClassifier ccfs=new CascadeClassifier();
HOGDescriptor hog = new HOGDescriptor();

I get the following error:

12-13 23:55:43.029 31344-31344/com.i3rivale.droneapp E/OCVSample::Activity: Internal OpenCV library not found. Using OpenCV Manager for initialization
12-13 23:55:43.820 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]     from long org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1()
12-13 23:55:43.821 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   native: #09 pc 000ba7e9  /data/app/org.opencv.engine-1/lib/arm/libopencv_java3.so (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11+24)
12-13 23:55:43.821 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   native: #10 pc 00014f29  /data/data/com.i3rivale.droneapp/cache/slice-slice_1-classes.dex (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11__+80)
12-13 23:55:43.821 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1(Native method)
12-13 23:55:43.822 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at org.opencv.objdetect.CascadeClassifier.<init>(CascadeClassifier.java:45)
12-13 23:55:43.822 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at com.i3rivale.droneapp.OpenCVLib.onCameraFrame(OpenCVLib.java:129)
12-13 23:55:43.822 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:391)
12-13 23:55:43.822 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:350)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #13 pc 000ba7e9  /data/app/org.opencv.engine-1/lib/arm/libopencv_java3.so (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11+24)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #14 pc 00014f29  /data/data/com.i3rivale.droneapp/cache/slice-slice_1-classes.dex (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11__+80)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1(Native method)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.objdetect.CascadeClassifier.<init>(CascadeClassifier.java:45)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at com.i3rivale.droneapp.OpenCVLib.onCameraFrame(OpenCVLib.java:129)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:391)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:350)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #02 pc 0013790b  /system/lib/libart.so (art::gc::Heap::DoPendingTransitionOrTrim()+686)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #13 pc 000ba7e9  /data/app/org.opencv.engine-1/lib/arm/libopencv_java3.so (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11+24)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #14 pc 00014f29  /data/data/com.i3rivale.droneapp/cache/slice-slice_1-classes.dex (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11__+80)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1(Native method)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.objdetect.CascadeClassifier.<init>(CascadeClassifier.java:45)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at com.i3rivale.droneapp.OpenCVLib.onCameraFrame(OpenCVLib.java:129)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:391)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:350)

I already have the camera working using openCV, but the problem is when I try to use HOGDescriptor

Thanks in advance

error in CascadeClassifier and HOGDescriptor

I am creating an application in android, and I am trying to do a face recognition using either CascadeClassifier or HOGDescriptor, but when I try to use the constructors of any of these classes, my app crashes

CascadeClassifier ccfs=new CascadeClassifier();
HOGDescriptor hog = new HOGDescriptor();

I get the following error:

12-13 23:55:43.029 31344-31344/com.i3rivale.droneapp E/OCVSample::Activity: Internal OpenCV library not found. Using OpenCV Manager for initialization
12-13 23:55:43.820 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]     from long org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1()
12-13 23:55:43.821 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   native: #09 pc 000ba7e9  /data/app/org.opencv.engine-1/lib/arm/libopencv_java3.so (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11+24)
12-13 23:55:43.821 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   native: #10 pc 00014f29  /data/data/com.i3rivale.droneapp/cache/slice-slice_1-classes.dex (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11__+80)
12-13 23:55:43.821 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1(Native method)
12-13 23:55:43.822 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at org.opencv.objdetect.CascadeClassifier.<init>(CascadeClassifier.java:45)
12-13 23:55:43.822 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at com.i3rivale.droneapp.OpenCVLib.onCameraFrame(OpenCVLib.java:129)
12-13 23:55:43.822 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:391)
12-13 23:55:43.822 31344-31492/com.i3rivale.droneapp A/art: art/runtime/check_jni.cc:65]   at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:350)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #13 pc 000ba7e9  /data/app/org.opencv.engine-1/lib/arm/libopencv_java3.so (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11+24)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #14 pc 00014f29  /data/data/com.i3rivale.droneapp/cache/slice-slice_1-classes.dex (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11__+80)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1(Native method)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.objdetect.CascadeClassifier.<init>(CascadeClassifier.java:45)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at com.i3rivale.droneapp.OpenCVLib.onCameraFrame(OpenCVLib.java:129)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:391)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:350)
12-13 23:55:44.149 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #02 pc 0013790b  /system/lib/libart.so (art::gc::Heap::DoPendingTransitionOrTrim()+686)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #13 pc 000ba7e9  /data/app/org.opencv.engine-1/lib/arm/libopencv_java3.so (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11+24)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   native: #14 pc 00014f29  /data/data/com.i3rivale.droneapp/cache/slice-slice_1-classes.dex (Java_org_opencv_objdetect_CascadeClassifier_CascadeClassifier_11__+80)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1(Native method)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.objdetect.CascadeClassifier.<init>(CascadeClassifier.java:45)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at com.i3rivale.droneapp.OpenCVLib.onCameraFrame(OpenCVLib.java:129)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:391)
12-13 23:55:44.151 31344-31492/com.i3rivale.droneapp A/art: art/runtime/runtime.cc:284]   at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:350)

I already have the camera working using openCV, but the problem is when I try to use HOGDescriptor

Thanks in advance