react-native-opencv-tutorial: Could not invoke RNOpenCvLibrary.checkForBlurryImage
I am getting the following error when I take a picture:
Could not invoke RNOpenCvLibrary.checkForBlurryImage
null
No implementation found for long org.opencv.core.Mat.n_Mat() (tried Java_org_opencv_core_Mat_n_1Mat and Java_org_opencv_core_Mat_n_1Mat__)
I found a similar issue on stackoverflow, but couldn’t figure out how to solve this: https://stackoverflow.com/questions/35090838/no-implementation-found-for-long-org-opencv-core-mat-n-mat-error-using-opencv
Any clues? Thanks!
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 4
- Comments: 18 (5 by maintainers)
@SwagatRanjit84 The next steps works for me. The problem is where you locate the main library. You can try these steps: if you are using Android studio then: 1- Copy your OpenCV-android-sdk/sdk/native/libs/(armeabi|armeabi-v7a|x86|…) to <project>/app/src/main/jniLibs/(armeabi|armeabi-v7a|x86|…).
2- rebuild.
Good Luck.
I figured out my problem. It is because I put the library in wrong folder. i.e. the native library should be in “jinLibs” instead of, incorrectly, “jinLibs\libs”.