pyqt5如何显示opencv格式图片
#在该定时器里没隔一段时间刷新一次
    def TimerOutFun(self):
        print("刷新一帧")
        #success, img =cv2.imread('1.jpg')  # 这里加要显示的opencv的结果视频图片
        #success,img = cv2.imread('E:\\1\\1.jpg')
        opencv_img = cv2.imread("1.jpg", 1)
        if opencv_img is None:
            print('None')
        else:
            print("读取成功")
            self.Image = opencv_img
            self.DispImg()
    def DispImg(self):
        shrink = cv2.cvtColor(self.Image, cv2.COLOR_BGR2RGB)
        self.QtImg = QtGui.QImage(shrink.data,
                                  shrink.shape[1],
                                  shrink.shape[0],
                                  shrink.shape[1] * 3,
                                  QtGui.QImage.Format_RGB888)

        self.label.setPixmap(QtGui.QPixmap.fromImage(self.QtImg))
        self.label.show()