def updateBWPreview(self): if self.screenPreviewBWSize == '256*128': image = self.image_out_bw2x else: image = self.image_out_bw image_pix = OpenCVImage2QPixMap(image) self.main_ui.label_screenPreviewOutputBW.setPixmap(QPixmap.fromImage(image_pix))
def updateBWPreview(self): if self.videoPreviewBWSize == '2X': image = self.images.output_bw2x else: image = self.images.output_bw image_pix = OpenCVImage2QPixMap(image) self.main_ui.label_videoPreviewOutputBW.setPixmap( QPixmap.fromImage(image_pix))
def updatePreview(self): # update preview if self.previewMode == 'raw': image = self.image_raw elif self.previewMode == 'gray': image = self.image_gray else: image = self.image_bw image_pix = OpenCVImage2QPixMap(image) self.main_ui.label_screenPreviewWindow.setPixmap(QPixmap.fromImage(image_pix))
def updateBWPreview(self): # update BW preview if self.previewBWSize == '2X': image = self.images.output_bw2x else: image = self.images.output_bw image_pix = OpenCVImage2QPixMap(image) self.main_ui.label_previewOutputBW.setPixmap(QPixmap.fromImage(image_pix)) # send to display if self.imageSendMode == 'Auto': self.send(self.images.bytes)