I'm trying to create a face recognition system for my project, but I can't train my code to recognize faces because it keeps on failing.
Here's the error:
>>> import cv2
>>> print(dir(cv2.face))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'cv2' has no attribute 'face'
I typed this on terminal to try and check if it worked but it doesn't. I already tried every solution that I found online but it still doesn't work. I already uninstalled and installed opencv-contrib-python multiple times. I uninstall opencv-python. Installed cmake and dlib.
I used Python 3.9.13, Windows, and Pycharm.