找不到针对org.opencv.objdetect.CascadeClassifier.detectMultiScale_2的实现

时间:2019-02-01 21:39:25

标签: android-studio opencv face-detection

我正在尝试使用opencv库和示例在android上进行人脸检测。

当我尝试使用功能detectMultiScale时,我在运行时收到以下消息:

No implementation found for void org.opencv.objdetect.CascadeClassifier.detectMultiScale_2(long, long, long, double, int, int) (tried Java_org_opencv_objdetect_CascadeClassifier_detectMultiScale_12 and Java_org_opencv_objdetect_CascadeClassifier_detectMultiScale_12__JJJDII)
E/AndroidRuntime: FATAL EXCEPTION: Camera Background
Process: com.example.justin, PID: 9991
java.lang.UnsatisfiedLinkError: No implementation found for void org.opencv.objdetect.CascadeClassifier.detectMultiScale_2(long, long, long, double, int, int) (tried Java_org_opencv_objdetect_CascadeClassifier_detectMultiScale_12 and Java_org_opencv_objdetect_CascadeClassifier_detectMultiScale_12__JJJDII)

  MatOfRect faces = new MatOfRect();
                    try{
                        if(STATE_OPENCV==1)
                        {
                             mJavaDetector.detectMultiScale(mGray, faces, 1.1, 2, 2  );}
                        }                        
                     catch (Exception e)
                     {

                     }

STATE_OPENCV 1告诉我opencv已成功加载 当我按住Ctrl键并单击该函数时,可以找到它的实现。 有想法吗?

0 个答案:

没有答案