Exemple #1
0
 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))
Exemple #2
0
 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))
Exemple #3
0
 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))
Exemple #4
0
    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)