nazmiasri95 / Face-Recognition

Simple Face Recognition algorithm using Python and OpenCV
129 stars 99 forks source link

cv2.error: C:\projects\opencv-python\opencv_contrib\modules\face\src\lbph_faces.cpp:396: error: (-5) This LBPH model is not computed yet. Did you call the train method? in function cv::face::LBPH::predict #12

Closed ghost closed 6 years ago

ghost commented 6 years ago

Open your trainer, change the recognizer.save to recognizer.write. Don't forget to run the trainer again. It works for me