First time here? Check out the FAQ!
answered 2013-07-12 03:19:14 -0600
"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);