收藏:①极市开发DeepLearning ②Git使用

摘要: __author__ = "WSX" import cv2 as cv import numpy as np from PIL import Image import pytesseract #pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files (x86)/Tesseract-ORC/tesseract' def recogniz... 阅读全文
posted @ 2018-06-08 14:35 WSX_1994 阅读(2993) 评论(0) 推荐(0) 编辑
摘要: 1 __author__ = "WSX" 2 import cv2 as cv 3 import numpy as np 4 # 基于拓扑结构来发现和绘制(边缘提取) 5 # cv.findContours() 发现轮廓 6 # cv.drawContours() 绘制轮廓 7 # 使用梯度 ,不需要阈值了就 8 9 def edge_demo(image): 10 ... 阅读全文
posted @ 2018-06-08 14:34 WSX_1994 阅读(596) 评论(0) 推荐(0) 编辑
摘要: __author__ = "WSX" import cv2 as cv import numpy as np def erode_demo(image): print(image.shape) gray = cv.cvtColor(image, cv.COLOR_BGR2GRAY) ret, binary = cv.threshold(gray, 0, 255, cv.... 阅读全文
posted @ 2018-06-08 14:34 WSX_1994 阅读(657) 评论(0) 推荐(0) 编辑
摘要: 1 __author__ = "WSX" 2 import cv2 as cv 3 import numpy as np 4 #-----------------霍夫变换--------------------- 5 #前提条件: 边缘检测完成 6 def line_detection(image): 7 gray = cv.cvtColor(image, cv.COLOR... 阅读全文
posted @ 2018-06-08 14:33 WSX_1994 阅读(1275) 评论(0) 推荐(1) 编辑
摘要: 1 __author__ = "WSX" 2 import cv2 as cv 3 import numpy as np 4 5 def lapalian_demo(image): #拉普拉斯算子 6 #dst = cv.Laplacian(image, cv.CV_32F) #内置函数来实现 7 #lpls = cv.convertScaleAbs(dst) ... 阅读全文
posted @ 2018-06-08 14:32 WSX_1994 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 1 __author__ = "WSX" 2 import cv2 as cv 3 import numpy as np 4 5 def lapalian_demo(image): #拉普拉斯算子 6 #dst = cv.Laplacian(image, cv.CV_32F) #内置函数来实现 7 #lpls = cv.convertScaleAbs(dst) ... 阅读全文
posted @ 2018-06-08 14:32 WSX_1994 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: 1 __author__ = "WSX" 2 import cv2 as cv 3 import numpy as np 4 # 高斯金字塔 5 #金字塔 原理 ==》 高斯模糊+ 降采样 6 #金字塔 原理 ==》扩大+ 卷积 7 #降采样 取图像的 偶数行偶数裂 生成的图 8 9 def jinzita( level ,img ): 10 temp = img.... 阅读全文
posted @ 2018-06-08 14:31 WSX_1994 阅读(427) 评论(0) 推荐(0) 编辑