viewer.py 文件源码

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

项目:video_labeler 作者: hahnyuan 项目源码 文件源码
def video_click(self,e, x, y, flags, param):
        if e == cv2.EVENT_LBUTTONDOWN:
            self.video_stat.is_drug = 1
            self.video_stat.p0 = (x, y)
            print("rect start", x, y)
        elif e == cv2.EVENT_LBUTTONUP:
            self.video_stat.is_drug = 0
            self.video_stat.p1 = (x, y)
            print("rect end", x, y)
            self.video_stat.append_box(self.label_stat.get_label_name())
        elif e== cv2.EVENT_RBUTTONDOWN:
            self.video_stat.remove_point_box((x,y))
        self.video_stat.p=(x,y)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号