
OpenCV
Nicolas Acci
这个作者很懒,什么都没留下…
展开
-
pyqt5 tablewidget 数据自动更新
pyqt5原创 2022-09-28 12:04:27 · 2793 阅读 · 1 评论 -
python opencv 右上角x按钮关闭显示窗口
在循环中加入代码:cv2.imshow('image',frame)cv2.waitKey(1)# 点击窗口X按钮关闭窗口,窗口名字要对应if cv2.getWindowProperty('image',cv2.WND_PROP_VISIBLE) < 1: break原创 2021-07-15 14:12:18 · 4623 阅读 · 2 评论 -
OpenCV—Python 轮廓检测 绘出矩形框(findContours\ boundingRect\rectangle)
1 获取轮廓OpenCV2获取轮廓主要是用 cv2.findContours()import cv2img = cv2.imread(‘wujiaoxing.png’)gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)ret,binary = cv2.threshold(gray, 127, 255, cv2.THRESH_BINARY)_,con...转载 2019-11-29 12:44:31 · 649 阅读 · 0 评论