I just installed Spyder (Python 3.8) and in the Anaconda Prompt, i installed OpenCV, however while running the following statements:
import cv2
face_cascade = cv2.CascadeClassifier('haarcascade_frontalcatface.xml')
I receive as error: module 'cv2' has no attribute 'CascadeClassifier'.
Let me tell you that i've already downloaded 'haarcascade_frontalcatface.xml' file. Please help me to fix this problem. Thank you!