Ask Your Question
0

How to instanciate FaceRecognizer in Java

asked 2016-07-31 23:14:44 -0600

KorobOK gravatar image

I want to use org.opencv.contrib.FaceRecognizer from opencv-2413.jar. How can I instanciate FaceRecognizer object?


These do not work:

FaceRecognizer rec = new FaceRecognizer();
FaceRecognizer rec = createLBPHFaceRecognizer();
FaceRecognizer rec = createEigenFaceRecognizer();
FaceRecognizer rec = createFisherFaceRecognizer();
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-01 00:53:42 -0600

berak gravatar image

sad as it is, you cannot use the FaceRecognizer classes from java at all in opencv2.4

(there is no proper way to wrap a cv::Ptr<FaceRecognizer> in 2.4, so those classes (or rather the create.. functions) are skipped during the wrapper code generation)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-31 23:14:44 -0600

Seen: 513 times

Last updated: Aug 01 '16