detectMultiScale not working properly

hi sir actully face_cascade.detectMultiScale line gives following error kindly help

3 if b==False:
4 continue
----> 5 frames=fc.detectMultiScale(frame,1.3,5)
6 # b,frame=cap.read()

error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-k8sx3e60\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function ‘cv::CascadeClassifier::detectMultiScale’

hey @gaurangagarwal557, check if the path of haarcascade file is correct and it exists at the specified location. Also then check if your web cam opens or not, light near web cam opens or not.

Hope this resolved your doubt. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.