def on_mouse(self, event, x, y, flags, param):
if event == cv2.EVENT_LBUTTONDOWN and self.displaywidth < x:
if self.c.goodenough:
if 180 <= y < 280:
self.c.do_calibration()
if 280 <= y < 380:
self.c.do_save()
if self.c.calibrated:
if 380 <= y < 480:
# Only shut down if we set camera info correctly, #3993
if self.do_upload():
rospy.signal_shutdown('Quit')
cameracalibrator.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录