def monitor_images(self): while self.active: if self.last_frame: image_array = self.style.stylize(self.last_frame) image = QImage(image_array.data, image_array.shape[1], image_array.shape[0], image_array.strides[0], QImage.Format_RGB888) rotating = QTransform() rotating.scale(-1, 1) # mirror rotating.rotate(settings.ROTATE_IMAGE) image = image.transformed(rotating) self.image_signal.emit(StyledCapture(image, self.style.name)) # check for stop/changes QApplication.processEvents()