title: Convert Python Opencv Image (numpy array) to PyQt QPixmap image
body: <p>I am trying to convert python opencv image to QPixmap.</p>
  
  <p>I follow the instruction shows <a href="http://russellj.tumblr.com/post/44845729156/convert-python-opencv-image-numpy-array-to-pyqt" rel="noreferrer">Page Link</a> and my code is attached below</p>
  
  <pre><code>img = cv2.imread('test.png')[:,:,::1]/255. 
  imgDown = cv2.pyrDown(img)
  imgDown = np.float32(imgDown)        
  cvRGBImg = cv2.cvtColor(imgDown, cv2.cv.CV_BGR2RGB)
  qimg = QtGui.QImage(cvRGBImg.data,cvRGBImg.shape[1], cvRGBImg.shape[0], QtGui.QImage.Format_RGB888)
  pixmap01 = QtGui.QPixmap.fromImage(qimg)
  self.image01TopTxt = QtGui.QLabel('window',self)
  self.imageLable01 = QtGui.QLabel(self)
  self.imageLable01.setPixmap(pixmap01)
  </code></pre>
  
  <p>The code has no compile and runtime error but the conversion is wrong and I just get some noise image. I am not sure what the problem is. Could anyone help?</p>