click_bb.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:thesis_scripts 作者: PhilippKopp 项目源码 文件源码
def click(event, x, y, flags, param):
    global upper_left_point
    global lower_right_point
    global current_mouse_pos

    if event == cv2.EVENT_LBUTTONDOWN:
        upper_left_point = [x, y]

    if event == cv2.EVENT_LBUTTONUP:
        lower_right_point = [x, y]

    if event == cv2.EVENT_MOUSEMOVE:
        current_mouse_pos = [x, y]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号