title: AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer'
body: <p>From <a href="https://stackoverflow.com/questions/33620527/opencv3-and-python-2-7-on-virtual-enviorement-attributeerror-module-object">this question in SO</a> I understand the error should be solved by having opencv contrib, but the thing is that when I first built opencv using cmake using <a href="http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/" rel="nofollow noreferrer">this guide by pyimagesearch</a> , I had also built opencvcontrib. If I must rebuild it, how exactly should I do it?</p>
  
  <p>This is the error:</p>
  
  <blockquote>
    <p>import cv2<br>
    cv2.createLBPHFaceRecognizer()<br>
        Traceback (most recent call last):<br>
      File "stdin", line 1, in module<br>
    AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer'</p>
  </blockquote>
  
  <p>Also:</p>
  
  <blockquote>
    <p>import cv2<br>
    help(cv2.face.createLBPHFaceRecognizer)<br>
    Traceback (most recent call last):<br>
      File "stdin", line 1, in module<br>
    AttributeError: 'module' object has no attribute 'face'</p>
  </blockquote>
  
  <p>Mac OS, Python 2.7, Opencv 3.2</p>