utils.py 文件源码

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

项目:dbs-back 作者: Beit-Hatfutsot 项目源码 文件源码
def create_thumb(image_doc, photo_mount_path):
    filename = image_doc['PicturePath']
    if filename:
        # try:
        filename = filename.replace(u'\\', '/')
        image_path = photo_mount_path + '/' + filename 
        binary = binarize_image(image_path)
    else:
        binary = None
        print '%s: has no file name' % image_doc['PictureId']

    return binary
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号