![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv
始冬终夏
这个作者很懒,什么都没留下…
展开
-
OpenCv error: (-2) could not find a writer for the specified extension in function cv::imwrite_
OpenCv error: (-2) could not find a writer for the specified extension in function cv::imwrite_ 在opencv学习中,使用cv.imwrite(‘filename’, img)保存照片文件到本地,有时使用失误可能会出现报错,error: (-2) could not find a writer for...原创 2019-06-29 16:30:43 · 1041 阅读 · 0 评论 -
python&opencv轮廓检测及cv2.threshold,cv2.findContours,cv2.cvtColor,cv2.drawContours函数
对与轮廓检测就是cv2.threshold,cv2.findContours,cv2.cvtColor,cv2.drawContours这几个函数的调用。下面就是代码及对这几个函数的解释: import cv2 import numpy as np img = np.zeros((200,200),dtype = np.uint8 )#构造一个两百行两两百列的矩阵 img[50:150,5...原创 2019-06-30 08:50:44 · 640 阅读 · 0 评论