def __init__(self, tx1, tx2, ty1, ty2):
# For mouse interaction
self._mouse_on = False
cv2.namedWindow("preview")
atexit.register(cv2.destroyAllWindows)
cv2.setMouseCallback("preview", self.mouse_callback)
# Setup tank bounds
self._tx1 = tx1
self._tx2 = tx2
self._ty1 = ty1
self._ty2 = ty2
评论列表
文章目录