上一页 1 2 3 4 5 6 7 8 9 ··· 30 下一页
摘要: 来自:/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 阅读(251) 评论(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 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 本次目标是将一副图像从rgb颜色空间转换到hsv颜色空间,颜色去除白色背景部分 具体就调用了cv2的两个函数,一个是rgb转hsv的函数 具体用法 hsv = cv2.cvtColor(rgb_image, cv2.COLOR_BGR2HSV)然后利用cv2.inRange函数设阈值,去除背景部分 阅读全文
posted @ 2019-12-17 10:20 sweeeper 阅读(8390) 评论(0) 推荐(0) 编辑
摘要: conda install -c gsecars wxpython 阅读全文
posted @ 2019-12-13 14:22 sweeeper 阅读(1271) 评论(0) 推荐(0) 编辑
摘要: 作用 assert用来验证一个表达式是否正确,如果正确则程序向下执行,如果错误则报错,其中报错信息可以自定义。 例子 表达式没有错误的情况 >>> assert mul(2, 3) == 6 正确的时候没有输出,程序向下执行 表达式错误的情况 >>> assert mul(2, 3) == 7 Tr 阅读全文
posted @ 2019-12-13 14:11 sweeeper 阅读(1030) 评论(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 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: 在编程的过程中发现plt.imshow()不能同时显示两张照片,如果有两条plt.imshow()语句处于一前一后的位置,那么程序运行后只会显示后面的图片。如果想让每一张图片都显示出来,需要在每一个plt.imshow()语句后面加上plt.show()语句。具体程序代码如下图所示: import  阅读全文
posted @ 2019-12-12 10:36 sweeeper 阅读(1644) 评论(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 阅读(191) 评论(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 阅读(10649) 评论(0) 推荐(0) 编辑
摘要: a56爆大奖在线娱乐链接:https://blog.csdn.net/qq_42489092/article/details/92208822method_1:每当你打不开应用时,不妨试一下:用管理员身份运行 请用管理员身份运行Anaconda Navigator 如果还不行请参考:method_2 method_ 阅读全文
posted @ 2019-12-06 15:17 sweeeper 阅读(25575) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 30 下一页