def getSourceAndGoal(self): cv2.namedWindow('image') cv2.setMouseCallback('image', self.draw_circle) cv2.imshow('image', img) cv2.waitKey(0)