Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"Can't we use directly YML file for predict function ?"

yes, of course.

Ptr<FaceRecognizer> model = createFisherFaceRecognizer();
model->load("gender.yml");
// ...
int predicted = model->predict(image);