I'm trying to follow a recent Python OpenCV tutorial and it's not finding the .face class. I've tried everything on StackOverflow. Before marking this as a duplicate, please see what I've already tried.
I've tried to pip install opencv-contrib-python and all the other cv2. classes work except cv2.face is not recognized. I've installed and uninstalled opencv-python and opencv-contrib-python and restarted my computer. I also tried to use this link about using the CMake gui but I have no idea what I'm doing and I get an error when I try to do it. https://github.com/opencv/opencv_contrib
import cv2
recognizer = cv2.face_lbphfacerecognizer.create()
My PyCharm errors before I've even finished typing face and the error pops up immediately. Cannot find reference 'face' in init_.py