12 2019 档案

摘要:http://www.zjzxts.gov.cn/wsdt.do?method=suggest&xjlb=1 阅读全文
posted @ 2019-12-27 14:54 sweeeper 阅读(361) 评论(0) 推荐(0) 编辑
摘要:http://www.360doc.com/content/17/0424/21/42201808_648355404.shtml http://www.360doc.com/content/13/1112/15/7920837_328641671.shtml 阅读全文
posted @ 2019-12-26 14:51 sweeeper 阅读(112) 评论(0) 推荐(0) 编辑
摘要:http://ex2tron.wang/ 阅读全文
posted @ 2019-12-18 19:50 sweeeper 阅读(198) 评论(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 阅读(6696) 评论(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 阅读(395) 评论(0) 推荐(0) 编辑
摘要:https://docs.opencv.org/3.4.8/d2/de8/group__core__array.html#ga60b4d04b251ba5eb1392c34425497e14 阅读全文
posted @ 2019-12-17 11:08 sweeeper 阅读(116) 评论(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 阅读(254) 评论(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 阅读(560) 评论(0) 推荐(0) 编辑
摘要:本次目标是将一副图像从rgb颜色空间转换到hsv颜色空间,颜色去除白色背景部分 具体就调用了cv2的两个函数,一个是rgb转hsv的函数 具体用法 hsv = cv2.cvtColor(rgb_image, cv2.COLOR_BGR2HSV)然后利用cv2.inRange函数设阈值,去除背景部分 阅读全文
posted @ 2019-12-17 10:20 sweeeper 阅读(8496) 评论(0) 推荐(0) 编辑
摘要:conda install -c gsecars wxpython 阅读全文
posted @ 2019-12-13 14:22 sweeeper 阅读(1276) 评论(0) 推荐(0) 编辑
摘要:作用 assert用来验证一个表达式是否正确,如果正确则程序向下执行,如果错误则报错,其中报错信息可以自定义。 例子 表达式没有错误的情况 >>> assert mul(2, 3) == 6 正确的时候没有输出,程序向下执行 表达式错误的情况 >>> assert mul(2, 3) == 7 Tr 阅读全文
posted @ 2019-12-13 14:11 sweeeper 阅读(1037) 评论(0) 推荐(0) 编辑
摘要:图像的傅里叶变换: import chardet import numpy as np import cv2 as cv import cv2 from PIL import Image import sys from matplotlib import pyplot as plt img = cv 阅读全文
posted @ 2019-12-12 10:36 sweeeper 阅读(1254) 评论(0) 推荐(0) 编辑
摘要:在编程的过程中发现plt.imshow()不能同时显示两张照片,如果有两条plt.imshow()语句处于一前一后的位置,那么程序运行后只会显示后面的图片。如果想让每一张图片都显示出来,需要在每一个plt.imshow()语句后面加上plt.show()语句。具体程序代码如下图所示: import  阅读全文
posted @ 2019-12-12 10:36 sweeeper 阅读(1698) 评论(0) 推荐(0) 编辑
摘要:https://www.e-learn.cn/content/python/2694135 https://blog.csdn.net/Eastmount/article/details/81748802 阅读全文
posted @ 2019-12-09 08:23 sweeeper 阅读(192) 评论(0) 推荐(0) 编辑
摘要:随手记录转载: #ModuleNotFoundError: No module named ‘cv2’在安装opevncv时会出现ImportError: No module named cv2 的错误,找不到cv2的包。 这时候安装扩展包即可: pip install opencv-python— 阅读全文
posted @ 2019-12-07 14:32 sweeeper 阅读(11576) 评论(0) 推荐(0) 编辑
摘要:本文链接:https://blog.csdn.net/qq_42489092/article/details/92208822method_1:每当你打不开应用时,不妨试一下:用管理员身份运行 请用管理员身份运行Anaconda Navigator 如果还不行请参考:method_2 method_ 阅读全文
posted @ 2019-12-06 15:17 sweeeper 阅读(25830) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示