Error while running Android application with Opencv

Asked

Viewed 77 times

0

I am trying to open my application on my Smartphone (Motorola G4 Play), but I am not successful. The following error is shown to me:

E/art: No implementation found for void org.opencv.imgproc.Imgproc.Canny_3(long, long, double, double) (tried Java_org_opencv_imgproc_Imgproc_Canny_13 and Java_org_opencv_imgproc_Imgproc_Canny_13__JJDD)
E/AndroidRuntime: FATAL EXCEPTION: Thread-5294
                  Process: com.tcc.diabetesmonitor, PID: 10148
                  java.lang.UnsatisfiedLinkError: No implementation found for void org.opencv.imgproc.Imgproc.Canny_3(long, long, double, double) (tried Java_org_opencv_imgproc_Imgproc_Canny_13 and Java_org_opencv_imgproc_Imgproc_Canny_13__JJDD)
                      at org.opencv.imgproc.Imgproc.Canny_3(Native Method)
                      at org.opencv.imgproc.Imgproc.Canny(Imgproc.java:1038)
                      at com.tcc.diabetesmonitor.MainActivity.onCameraFrame(MainActivity.java:127)
                      at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:392)
                      at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:352)
                      at java.lang.Thread.run(Thread.java:818)

I put the following permissions in the Androidmanifest file:

<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
<uses-feature android:name="android.hardware.camera.front" android:required="false"/>
<uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/>

I saw in some forums that we need instance a mat object. I did so:

private BaseLoaderCallback mCallBack = new BaseLoaderCallback(this) {
    @Override
    public void onManagerConnected(int status) {
        switch (status){
            case BaseLoaderCallback.SUCCESS:
            {
                Log.i(TAG, "OpenCV loaded successfully");
                imageMat = new Mat();
                mOpenCvCameraView.enableView();
                break;
            }
            default:
            {
                super.onManagerConnected(status);
                break;
            }
        }
    }
};

What should I do ?

  • At a glance : http://stackoverflow.com/questions/35090838/no-implementation-found-for-long-org-opencv-core-mat-n-mat-error-using-opencv

  • I’ve done what was said in this post and it didn’t work

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.