我正在基于面部识别运行我的代码,但有错误

时间:2019-07-30 05:30:09

标签: python-3.x opencv

运行我的代码时出现此错误

  

faces = face_cascade.detectMultiScale(灰色,scaleFactor = 1.5,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'

0 个答案:

没有答案