rescale_photos.py 文件源码

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

项目:eclipse2017 作者: google 项目源码 文件源码
def pad_height(image):
    height, width, _ = image.shape
    border_x = 0
    border_y = int(round(1080-height)/2.)
    image = cv2.copyMakeBorder(image, border_y, border_y,
                               border_x, border_x,
                               cv2.BORDER_CONSTANT, value=[0,0,0,0])
    return image
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号