def redraw(self): image_with_corners = self.drawImageWithCorners(self.originalImage, self.draggablePoints) pixmap = imagefuncs.cvimage_to_qpixmap(image_with_corners) self.setGeometry(300, 300, pixmap.width(), pixmap.height()) self.setPixmap(pixmap)
def redraw(self): image_with_lines = self.drawImageWithLines(self.originalImage, self.linePositions, self.noteCorners) pixmap = imagefuncs.cvimage_to_qpixmap(image_with_lines) self.setGeometry(300, 300, pixmap.width(), pixmap.height()) self.setPixmap(pixmap)