Ask Your Question
0

Problem with FaceRecognizer

asked 2016-03-02 02:22:54 -0600

So I got the 2.4.11 OpenCV library for Android. I am trying to use the org.opencv.contric.FaceRecognizer.java But, I do not understand how do I initiate an instance of that class since this is the constructor's header:

 protected FaceRecognizer(long add)

and there is no documentation that says what should be sent as "add". I'll thank you very much if you will be able to help me. (PS: I can't use the Android API for face recognition, I have to use openCV).

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-02 02:37:13 -0600

berak gravatar image

sad as it is, you can't from pure java.

there is e.g. a Ptr<FaceRecognizer> createLBPHFaceRecognizer() method in c++, but it's not wrapped to java (the script generating this has a problem with Ptr types.

you might have a chance, if you do your own wrapping, but that will require jni/ndk.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-02 02:22:54 -0600

Seen: 174 times

Last updated: Mar 02 '16