Closed lifeiteng closed 10 years ago
Hi, it sounds like you don't have the correct version of OpenCV installed. (You need OpenCV v2.4.1 or later, from June 2012). See if using a new version of OpenCV fixes your problem.
yeah,It works when I use OpenCV v2.4.6. Thank you!
void showTrainingDebugData(const Ptr model, const int faceWidth, const int faceHeight)
{
try { // Surround the OpenCV calls by a try/catch block so we don't crash if some model parameters aren't available.
... }
/_error: get is not a member of cv::FaceRecognizer _/ Mat averageFaceRow = model->get("mean");