python + OpenCV实现鼠标和图像的交互显示ROI(感兴趣区域)
1.首先选取一张图片import numpy as npimport cv2img = cv2.imread('D:/OpencvVideo/1.jpg')# create a windowcv2.namedWindow('image', flags= cv2.WINDOW_NORMAL | cv2.WINDOW_FREERATIO)# 定义窗口1cv2.namedWind...
原创
2019-11-22 17:21:12 ·
3322 阅读 ·
0 评论