label_click.py 文件源码

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

项目:sail 作者: GemHunt 项目源码 文件源码
def click_and_crop(event, x, y, flags, param):
    # grab references to the global variables
    global refPt

    # if the left mouse button was clicked, record the starting
    # (x, y) coordinates and indicate that cropping is being
    # performed
    if event == cv2.EVENT_LBUTTONDOWN:
        refPt = [(x, y)]
        print refPt
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号