Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Java Kazemi Landmarks

I'm trying to make an application with opencv that is able to recognize a person's face in an image, so I'm trying to use the FacemarkKazemi function of opencv. My problem is that as soon as I switch to class initialization, my application crashes instantly.

You can find the code I'm trying to run here :

https://github.com/opencv/opencv_contrib/blob/master/modules/face/samples/Facemark.java

The application crashes at line 29 here :

Facemark fm = Face.createFacemarkKazemi();

And i have this error :

java.lang.UnsatisfiedLinkError: No implementation found for long org.opencv.face.Face.createFacemarkKazemi_0() (tried Java_org_opencv_face_Face_createFacemarkKazemi_10 and Java_org_opencv_face_Face_createFacemarkKazemi_10__)

Also, if you know a better way to make FacialMarks, I would be happy to know it.

I added this line to my gradle to import opencv contrib, do you think the error could be due to this?

implementation 'com.quickbirdstudios:opencv:3.4.4-contrib'

Java Kazemi Landmarks

I'm trying to make an application with opencv that is able to recognize a person's face in an image, so I'm trying to use the FacemarkKazemi function of opencv. My problem is that as soon as I switch to class initialization, my application crashes instantly.

You can find the code I'm trying to run here :

https://github.com/opencv/opencv_contrib/blob/master/modules/face/samples/Facemark.java

The application crashes at line 29 here :

Facemark fm = Face.createFacemarkKazemi();

And i have this error :

java.lang.UnsatisfiedLinkError: No implementation found for long org.opencv.face.Face.createFacemarkKazemi_0() (tried Java_org_opencv_face_Face_createFacemarkKazemi_10 and Java_org_opencv_face_Face_createFacemarkKazemi_10__) org.opencv.face.Face.createFacemarkKazemi_0 (Face.java) org.opencv.face.Face.createFacemarkKazemi (Face.java:42) com.opencv.RNOpenCvLibraryModule$1.onManagerConnected (RNOpenCvLibraryModule.java:65) com.opencv.RNOpenCvLibraryModule.<init> (RNOpenCvLibraryModule.java:52) com.opencv.RNOpenCvLibraryPackage.createNativeModules (RNOpenCvLibraryPackage.java:15) com.facebook.react.NativeModuleRegistryBuilder.processPackage (NativeModuleRegistryBuilder.java:85) com.facebook.react.ReactInstanceManager.processPackage (ReactInstanceManager.java:1171) com.facebook.react.ReactInstanceManager.processPackages (ReactInstanceManager.java:1141) com.facebook.react.ReactInstanceManager.createReactContext (ReactInstanceManager.java:1083) com.facebook.react.ReactInstanceManager.access$900 (ReactInstanceManager.java:116) com.facebook.react.ReactInstanceManager$5.run (ReactInstanceManager.java:913) java.lang.Thread.run (Thread.java:784)

Also, if you know a better way to make FacialMarks, I would be happy to know it.

I added this line to my gradle to import opencv contrib, do you think the error could be due to this?

implementation 'com.quickbirdstudios:opencv:3.4.4-contrib'