I copied the exact same code show in the video. But I am getting the following errors:
Traceback (most recent call last):
File “face_data_collect.py”, line 32, 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:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (674) SourceReaderCB::~SourceReaderCB terminating async callback
Please tell me why am i getting these errors