Skuldur / facenet-face-recognition

A face recognition demo performed by feeding images of faces recorded by a webcam into a trained FaceNet network to determine the identity of the face
384 stars 291 forks source link

Not able to run on Windows system #3

Open r4onlyrishabh opened 6 years ago

r4onlyrishabh commented 6 years ago

Hi, I cloned your code and tried running on my system. The system throws the following error:

C:>python D:\facenet-face-recognition-master\facenet.py Using TensorFlow backend. OpenCV Error: Assertion failed (!empty()) in cv::CascadeClassifier::detectMultiScale, file C:\ci\opencv_1512688052760\work\modules\objdetect\src\cascadedetect.cpp, line 1698 Traceback (most recent call last): File "D:\facenet-face-recognition-master\facenet.py", line 199, in webcam_face_recognizer(database) File "D:\facenet-face-recognition-master\facenet.py", line 86, in webcam_face_recognizer img = process_frame(img, frame, face_cascade) File "D:\facenet-face-recognition-master\facenet.py", line 101, in process_frame faces = face_cascade.detectMultiScale(gray, 1.3, 5) cv2.error: C:\ci\opencv_1512688052760\work\modules\objdetect\src\cascadedetect.cpp:1698: error: (-215) !empty() in function cv::CascadeClassifier::detectMultiScale

Please help!

I tried searching on stackOverflow. Here is what i found!!

https://stackoverflow.com/questions/30508922/error-215-empty-in-function-detectmultiscale?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

But this doesnt seem to help out!

Rohitgarg253 commented 5 years ago

Try running using Anaconda distribution with all the requirements installed.

Worked on mine.