OpenCV Facial Detection come ups with this error
问题 I keep getting this error: faces = face_cascade.detectMultiScale(gray, 1.3, 5) cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-wvn_it83\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale' when trying to run this code import cv2 import numpy as np face_cascade = cv2.CascadeClassifier('haarcascase_frontalface_default.xml') cap = cv2.VideoCapture(0) while 1: ret, img = cap