preprocess.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:Magic-Pixel 作者: zhwhong 项目源码 文件源码
def medianBlur(srcpath, dstpath):
    img = cv2.imread(srcpath, 0)
    blur = cv2.medianBlur(img, 3)
    # cv2.imshow(dstpath, img)
    # cv2.imwrite(dstpath, blur)
    plt.subplot(1,2,1),plt.imshow(img,'gray')
    plt.subplot(1,2,2),plt.imshow(blur,'gray')
    plt.show()

# ????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号