main.py 文件源码

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

项目:FaceSwap 作者: Aravind-Suresh 项目源码 文件源码
def get_contour_mask(dshape, img_fl):
    mask = np.zeros(dshape)
    hull = cv2.convexHull(img_fl)
    cv2.drawContours(mask, [hull], 0, (1, 1, 1) , -1)
    return np.uint8(mask)

# Orients input_ mask onto tmpl_ face
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号