preprocess.py 文件源码

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

项目:Magic-Pixel 作者: zhwhong 项目源码 文件源码
def histEqual(srcpath, dstpath):
    im_source = Image.open(srcpath)

    if True:
        arr_im_gray = np.array(im_source)
        arr_im_gray_hist = beautyImage(arr_im_gray)
        # figure()
        im_conver = toimage(arr_im_gray_hist, 255, 0, None, None, None, 'L')
        im_conver.save(dstpath, 'jpeg')

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


问题


面经


文章

微信
公众号

扫码关注公众号