PreProcess.py 文件源码

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

项目:GraduationDesign 作者: pstreeplus 项目源码 文件源码
def binaryzation(image):
        """
        :return: ret_images

        ?????
        """
        x, y = image.size
        for j in xrange(x):
            for k in xrange(y):
                pixel = 0 if image.getpixel((j, k)) > 100 else 255
                image.putpixel((j, k), pixel)
        image = image.filter(ImageFilter.MedianFilter())
        return image
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号