'cv2 does not have an attribute 'face'

Traceback (most recent call last): File "C:\Users\Win10x64_Bit\Desktop\Face recognition and identification\src\face-train.py", line 11, in recognizer = cv2.face.createLBPHFaceRecognizer() AttributeError: module 'cv2' has no attribute 'face'

using sublime text and I have already tried uninstalling and installing opencv-contrib-pyton, opencv itself as well but the problem still exists



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source