def mask_on_face_wrap(frame, args):
input = args[0]
mask_shape = args[1]
out_ = mask_on_face(frame, input, mask_shape)
if out_ is None:
return None
out = np.uint8(out_)
return out
# A routine to extend single-image proc methods to
# successive frames read from Camera
评论列表
文章目录