title: module 'cv2.cv2' has no attribute 'PutText'
body: <p>Run on Python 3.6.4 OpenCV 3.2 Windows 10 The below code is throwing error</p>
  
  <p>AttributeError: 'module' object has no attribute 'PutText'</p>
  
  <pre><code>import cv2 
  import numpy as np
  
  face_detector = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
  vid_cam = cv2.VideoCapture(0)
  recognizer = cv2.face.LBPHFaceRecognizer_create()
  recognizer.read("recognizer\\trainingData.yml")
  id=0
  font = cv2.FONT_HERSHEY_SIMPLEX, 1, 1, 0, 1, 1
  while(True):
      ret, image_frame = vid_cam.read()
      gray = cv2.cvtColor(image_frame, cv2.COLOR_BGR2GRAY)
      faces = face_detector.detectMultiScale(gray, 1.3, 5)
      for (x,y,w,h) in faces:
          cv2.rectangle(image_frame, (x,y), (x+w,y+h), (0,0,255), 2)
          Id, conf = recognizer.predict(gray[y:y+h,x:x+w])
          cv2.PutText(cv2.fromarray(im),str(Id), (x,y+h),font, 255)
          cv2.waitKey(100);
      cv2.imshow('Face', image_frame)
      if cv2.waitKey(1)==ord('q'):
          break
  vid_cam.release()
  cv2.destroyAllWindows()
  </code></pre>