上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页
摘要: http://ex2tron.wang/ 阅读全文
posted @ 2019-12-18 19:50 sweeeper 阅读(199) 评论(0) 推荐(0)
摘要: def rgb2hsv(r, g, b): r, g, b = r/255.0, g/255.0, b/255.0 mx = max(r, g, b) mn = min(r, g, b) m = mx-mn if mx == mn: h = 0 elif mx == r: if g >= b: 阅读全文
posted @ 2019-12-18 14:41 sweeeper 阅读(6701) 评论(0) 推荐(0)
摘要: import cv2 import numpy as np import matplotlib.pyplot as plt cap=cv2.VideoCapture(0) while(1): ret,frame=cap.read() hsv=cv2.cvtColor(frame,cv2.COLOR_BGR2HSV) lower_blue=np.array([110,50,50]) upper_bl 阅读全文
posted @ 2019-12-18 10:21 sweeeper 阅读(397) 评论(0) 推荐(0)
摘要: https://docs.opencv.org/3.4.8/d2/de8/group__core__array.html#ga60b4d04b251ba5eb1392c34425497e14 阅读全文
posted @ 2019-12-17 11:08 sweeeper 阅读(119) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/u/e8bcb7ff1632 阅读全文
posted @ 2019-12-17 10:59 sweeeper 阅读(98) 评论(0) 推荐(0)
摘要: 来自:https://www.cnblogs.com/xiezhiyang/p/6613094.html range 函数说明:range([start,] stop[, step]),根据start与stop指定的范围以及step设定的步长,生成一个序列。range示例: 1 2 3 4 5 6 阅读全文
posted @ 2019-12-17 10:45 sweeeper 阅读(255) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_38570251/article/details/82079080 threshold:固定阈值二值化, ret, dst = cv2.threshold(src, thresh, maxval,type) src: 输入图,只能输入单通道图 阅读全文
posted @ 2019-12-17 10:40 sweeeper 阅读(570) 评论(0) 推荐(0)
摘要: 本次目标是将一副图像从rgb颜色空间转换到hsv颜色空间,颜色去除白色背景部分 具体就调用了cv2的两个函数,一个是rgb转hsv的函数 具体用法 hsv = cv2.cvtColor(rgb_image, cv2.COLOR_BGR2HSV)然后利用cv2.inRange函数设阈值,去除背景部分 阅读全文
posted @ 2019-12-17 10:20 sweeeper 阅读(8527) 评论(0) 推荐(0)
摘要: conda install -c gsecars wxpython 阅读全文
posted @ 2019-12-13 14:22 sweeeper 阅读(1281) 评论(0) 推荐(0)
摘要: 作用 assert用来验证一个表达式是否正确,如果正确则程序向下执行,如果错误则报错,其中报错信息可以自定义。 例子 表达式没有错误的情况 >>> assert mul(2, 3) == 6 正确的时候没有输出,程序向下执行 表达式错误的情况 >>> assert mul(2, 3) == 7 Tr 阅读全文
posted @ 2019-12-13 14:11 sweeeper 阅读(1039) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页