remove_noise.py 文件源码

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

项目:image_text_reader 作者: yardstick17 项目源码 文件源码
def image_smoothening(img):
    ret1, th1 = cv2.threshold(img, BINARY_THREHOLD, 255, cv2.THRESH_BINARY)
    ret2, th2 = cv2.threshold(th1, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
    blur = cv2.GaussianBlur(th2, (1, 1), 0)
    ret3, th3 = cv2.threshold(blur, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
    return th3
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号