I installed opencv
and i run the code for face detection using the class CascadeClassifier
, but getting the error:
AttributeError: module 'cv2' has no attribute 'CascadeClassifier'
Code:
import cv2
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')
please assist