image.py 文件源码

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

项目:PassportEye 作者: konstantint 项目源码 文件源码
def __call__(self, img):
        scale_factor = self.max_width/float(img.shape[1])
        if scale_factor <= 1:
            img_small = transform.rescale(img, scale_factor, mode='constant')
        else:
            scale_factor = 1.0
            img_small = img
        return img_small, scale_factor
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号