faces_autoencoder.py 文件源码

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

项目:face_autoencoder 作者: VieVie31 项目源码 文件源码
def load_image_vector(img_path):
    try:
        M = cv2.imread(img_path, cv2.CV_LOAD_IMAGE_GRAYSCALE)
    except:
        read_pgm(img_path)
    M = cv2.resize(M, (IM_WIDTH, IM_HEIGHT))
    M = M.reshape((1, IM_AREA))
    return M[0]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号