utils.py 文件源码

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

项目:faststyle 作者: ghwatson 项目源码 文件源码
def imwrite(path, img):
    """Wrapper around cv2.imwrite. Switches it to RGB input convention.

    :param path:
        String indicating path to save image to.
    :param img:
        3D RGB numpy array of image.
    """
    img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
    cv2.imwrite(path, img)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号