Java OpenCV 3.4.0 Facemark Issue

asked 2017-12-23 01:39:11 -0600

phillity gravatar image

Hi everyone,

I am trying to try out the new Facemark facial landmark functions (thanks for adding these!!!) using Java OpenCV 3.4.0. I downloaded the latest source today from OpenCV github master repo and contrib repo and then generated the Java wrappers using them. I have ran into some problems, and I am unsure if these problems are being caused by some build issue which I need to resolve or some other issue.

The Facemark classes are listed within my library but they are missing most of their methods. I also noticed that the Face class contains some methods which might belong in the Facemarck classes. See below:

image description

While the Facemark class seems to be messed up, other Face classes, such as BIF, seem to be okay.

Does anyone know what might be causing this issue? Was it a build issue?

Any help resolving this issue would be much appreciated!!

edit retag flag offensive close merge delete

Comments

1

yea, the java/python wrappers arent ready yet.

maybeyou can try this initial attempt

(just swap the header, rebuild, and see, what comes out if it, maybe ?)

((again, work in progress, and only the kazemi one, as of now, and you'll still have to do your own face detection))

berak gravatar imageberak ( 2017-12-23 11:03:40 -0600 )edit
1

Thanks @berak ! I will give it a try

phillity gravatar imagephillity ( 2017-12-23 12:11:02 -0600 )edit

I tried to rebuild using visual studio and the swapped out file but ran into some errors :(

  • Error LNK1181 cannot open input file '....\lib\Release\opencv_face340.lib' opencv_test_face ...\OpenCV\build\modules\face\LINK 1

  • Error LNK1181 cannot open input file '....\lib\Release\opencv_face340.lib' opencv_java ...\OpenCV\build\modules\java\LINK 1

  • Error C2259 'cv::face::FacemarkKazemiImpl': cannot instantiate abstract class opencv_face ...\OpenCV\opencv_contrib-master\modules\face\src\face_alignment.cpp 187

phillity gravatar imagephillity ( 2017-12-23 14:27:20 -0600 )edit