摘要: 1 #!/bin/python3 2 3 import cv2 as cv 4 import numpy as np 5 6 7 #双线模糊 8 def b1_demo(image): 9 dst = cv.bilateralFilter(image,0,100,15) 10 cv.imshow(" 阅读全文
posted @ 2020-12-20 23:28 挑水工 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/python3 2 3 import cv2 as cv 4 import numpy as np 5 6 7 def clamp(pv): 8 if pv > 255: 9 return 255 10 if pv < 0: 11 return 0 12 else: 13 retu 阅读全文
posted @ 2020-12-20 22:50 挑水工 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/python3 2 2 3 3 import cv2 as cv 4 4 import numpy as np 5 5 6 6 7 7 #均值模糊 8 8 def blur_demo(image): 9 9 dst = cv.blur(image,(5,3)) 10 10 cv.i 阅读全文
posted @ 2020-12-20 20:47 挑水工 阅读(541) 评论(0) 推荐(0) 编辑