preprocess_image.py 文件源码

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

项目:behavioral 作者: gilcarmel 项目源码 文件源码
def preprocess_image(image):
    image = cv2.resize(image, (0,0), fx=fx, fy=fy)
    image = cv2.cvtColor(image, cv2.COLOR_RGB2YUV)
    # Normalize
    image = (image - 128.)/255.
    return image
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号