摘要: import cv2import numpy as np#载入图片#img_original=cv2.imread('1110_3_1_X_537_Y_1700_qly_100_fail_13d17h46m24s.bmp',0)img_original=cv2.imread('1141_1_1_X_ 阅读全文
posted @ 2019-10-18 15:05 cheatingdeath 阅读(255) 评论(0) 推荐(0) 编辑
摘要: import numpy as npimport cv2def motion_blur(image, degree=12, angle=45): image = np.array(image) # 这里生成任意角度的运动模糊kernel的矩阵, degree越大,模糊程度越高 M = cv2.get 阅读全文
posted @ 2019-10-18 11:08 cheatingdeath 阅读(373) 评论(0) 推荐(0) 编辑
摘要: import osimport cv2def threshold(img, thresh=128, maxval=255, type=cv2.THRESH_BINARY): if len(img.shape) == 3: img = cv2.cvtColor(img, cv2.COLOR_BGR2G 阅读全文
posted @ 2019-10-18 11:07 cheatingdeath 阅读(343) 评论(0) 推荐(0) 编辑