Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to check if FaceRecognizer model is trained

When I call LBPHFaceRecognizer::predict method I get the following error: OpenCV Error: Bad argument (This LBPH model is not computed yet. Did you call the train method?)

Is it possible to check if model of LBPHFaceRecognizer is trained or not?