Error in line :- faces=face_cascade.detectMultiScale(frame,1.3,5)

Traceback (most recent call last):
File “project1.py”, line 19, in
faces=face_cascade.detectMultiScale(frame,1.3,5)
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function ‘cv::CascadeClassifier::detectMultiScale’

[ WARN:1] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (674) SourceReaderCB::~SourceReaderCB terminating async callback

hey @saurabhdit21 ,
kindly check the path to image that you are providing , is it correct .

means the input image you are providing to detectMultiScale function is empty or None.
Kindly check it.
Thank You.

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.