codingforentrepreneurs / OpenCV-Python-Series

An OpenCV & Python Tutorial Series and Reference.
399 stars 550 forks source link

Error #7

Closed junaidleo closed 6 years ago

junaidleo commented 6 years ago

OpenCV Error: Bad argument (This LBPH model is not computed yet. Did you call the train method?) in cv::face::LBPH::predict, file C:\ci\opencv_1512685267089\work\opencv_contrib-3.3.1\modules\face\src\lbphfaces.cpp, line 400 Traceback (most recent call last): File "faces.py", line 31, in id, conf = recognizer.predict(roi_gray) cv2.error: C:\ci\opencv_1512685267089\work\opencv_contrib-3.3.1\modules\face\src\lbph_faces.cpp:400: error: (-5) This LBPH model is not computed yet. Did you call the train method? in function cv::face::LBPH::predict