facial-identification

OpenCV 4.0.0 SystemError: <class 'cv2.CascadeClassifier'> returned a result with an error set

OpenCV 4.0.0 SystemError: <class 'cv2.CascadeClassifier'> returned a result with an error set Question: Hello I am trying to create a facial recognition program but I have a peculiar error: here is my code: import cv2 as cv gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY) face_cascade = cv.CascadeClassifier("lbpcascade_frontalface.xml") faces = face_cascade.detectMultiScale(gray, scaleFactor=1.2, minNeighbors=5); and this error is the output …

Total answers: 7