摘要: 形态学-腐蚀操作 img = cv2.imread('dige.png') cv2.imshow('img', img) cv2.waitKey(0) cv2.destroyAllWindows() 效果: kernel = np.ones((3,3),np.uint8) erosion = cv2 阅读全文
posted @ 2020-02-09 22:52 搞点薯条 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 图像阈值 ret, dst = cv2.threshold(src, thresh, maxval, type) 两个返回值分别是阈值处理后的像素点矩阵列表、输出图 src: 输入图,只能输入单通道图像,通常来说为灰度图 dst: 输出图 thresh: 阈值 maxval: 当像素值超过了阈值(或 阅读全文
posted @ 2020-02-09 21:54 搞点薯条 阅读(444) 评论(1) 推荐(0) 编辑
摘要: 图像基本操作 环境配置地址 Anaconda:https://www.anaconda.com/download/ Python_whl:https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv IDE:按照自己的喜好,选择一个能debug就好 安装ope 阅读全文
posted @ 2020-02-09 20:09 搞点薯条 阅读(835) 评论(2) 推荐(2) 编辑