opencv3 人脸识别

版权声明:belongs to tony2278 https://blog.csdn.net/tony2278/article/details/88568178

模型的训练和使用

//构建与训练
Ptr<FaceRecognizer> modelFisher1 = FisherFaceRecognizer::create();
modelFisher1->train(images, labels);
modelFisher1->save("face_Model.xml");
//加载
model = FisherFaceRecognizer::create();
model->read("face_Model.xml");

//Update
model->update(newImages, newLabels);
model->predict()


猜你喜欢

转载自blog.csdn.net/tony2278/article/details/88568178
今日推荐