![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv
武陵入
阿巴之人,必将阿巴阿巴
展开
-
openCV的基本操作(二)——边缘检测
边缘检测 Sobel算子 # Sobel算子x,y kernel_Sobel_x = np.array(( [1, 0, -1], [2, 0, -2], [1, 0, -1]), dtype="float32") kernel_Sobel_y = np.array(( [-1, -2, -1], [0, 0, 0], [1, 2, 1]), dty...原创 2020-02-06 16:50:56 · 231 阅读 · 0 评论 -
openCV的基本操作(一)
打开一张图片 import cv2 # 用cv2打开文件 path = "dress.jpeg" im = cv2.imread(path) # 设置窗口格式 cv2.namedWindow("dress", 0) # 显示窗口,根据窗口名追踪窗口 cv2.imshow("dress", im) # 等待输入 cv2.waitKey() # 摧毁所有窗口 cv2.destroyAllWi...原创 2020-02-06 11:49:30 · 143 阅读 · 0 评论