def clear_image(self):
"""
Call this to clear the image from this HomographyView's scene.
The scene will be filled with a placeholder grey background and message.
"""
new_scene = QtWidgets.QGraphicsScene(self)
new_scene.setBackgroundBrush(QtGui.QBrush(QtGui.QColor(124, 124, 124)))
txt = QtWidgets.QGraphicsSimpleTextItem("Compute homography to see results here.")
new_scene.addItem(txt)
self.setScene(new_scene)
self.show()
评论列表
文章目录