title: PyQt5 I want to show camera view to label
body: <p>This is my frame:</p>
  <p><a href="https://i.stack.imgur.com/V6pU3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V6pU3.png" alt="enter image description here" /></a></p>
  <p>I want to show camera view to label
  Label object name is camera
  But the program finished without showing anything
  What is the problem? Why I cant show?
  Code:</p>
  <pre><code>class Widget(QMainWindow):
  
      def __init__(self):
          QMainWindow.__init__(self)
  
          loadUi(&quot;mainwindow.ui&quot;,self)
          self.v = QVBoxLayout()
          self.v.addWidget(self.camera)
  
  
          self.Worker1 = Worker1()
  
          self.Worker1.start()
  
          self.setLayout(self.v)
  
      class Worker1(QThread):
      ImageUpdate = pyqtSignal(QImage)
  
      def run(self):
  
          self.ThreadActive = True
          Capture = cv2.VideoCapture(0)
          while self.ThreadActive:
              ret, frame = Capture.read()
              if ret:
  
                  frame = cv2.flip(frame, 180)
                  frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
                  frame = cv2.resize(frame, (311, 221))
  
  
                  image = QImage(frame.data, frame.shape[1], frame.shape[0],frame.strides[0],
                                             QImage.Format_RGB888)
  
                  self.camera.setPixmap(QPixmap.fromImage(image))
  
  
  
      def stop(self):
          self.ThreadActive = False
          self.quit()
  
  
      if __name__ == &quot;__main__&quot;:
      app = QApplication([])
      window = Widget()
      window.show()
      sys.exit(app.exec_())
  </code></pre>