facenet-face-recognition icon indicating copy to clipboard operation
facenet-face-recognition copied to clipboard

Not able to run on Windows system

Open r4onlyrishabh opened this issue 6 years ago • 1 comments

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!

r4onlyrishabh avatar Jun 04 '18 14:06 r4onlyrishabh

Try running using Anaconda distribution with all the requirements installed.

Worked on mine.

Rohitgarg253 avatar May 27 '19 12:05 Rohitgarg253