I'm trying to open my app in my smartphone (Motorola G4 Play) but I don't have sucess. The following error is shown for 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 putted the following permissions on 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 foruns that we need instance a Mat object. I did it like this:
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 can I do ?