neha01 / FaceRecognition

Face Recognition using OpenCV in Python
161 stars 146 forks source link

cv::CascadeClassifier::detectMultiScale #6

Open RiyanshKamboj opened 5 years ago

RiyanshKamboj commented 5 years ago

Traceback (most recent call last): File "C:\Users\DELL\Desktop\openCV.py", line 18, in faces=face_cascade.detectMultiScale(gray_img,scaleFactor=1.32,minNeighbors=5) cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'

I don't know what to do in this phase!

daveashu commented 4 years ago

did you check location of your cascade xml file?