title: AttributeError: module 'cv2.cv2' has no attribute 'createLBPHFaceRecognizer'
body: <p>I am facing some attribute error while running face recognizing the code. My face detects code run perfectly.But while I try to run the face recognizing code it shows some attribute error. I googled and tried to follow all the steps. But still, it shows the same error. Here is my code:</p>
  
  <p>face recognition</p>
  
  <p><img src="https://i.stack.imgur.com/z5nKN.png" alt="enter link description here"></p>
  
  <p>and I get the following error:</p>
  
  <pre><code>C:\Users\MAN\AppData\Local\Programs\Python\Python36\python.exe C:/Users/MAN/PycharmProjects/facerecognition/Recognise/recognize1.py
  Traceback (most recent call last):
    File "C:/Users/MAN/PycharmProjects/facerecognition/Recognise/recognize1.py", line 4, in &lt;module&gt;
      recognizer = cv2.createLBPHFaceRecognizer()
  AttributeError: module 'cv2.cv2' has no attribute 'createLBPHFaceRecognizer'
  
  Process finished with exit code 1.
  </code></pre>
  
  <p>I am using Windows platform. python 3.6 version.Thanks in advance.</p>