Ask Your Question

How to instanciate FaceRecognizer in Java

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

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

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

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
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 284 times

Last updated: Aug 01 '16