图片加口罩代码

tengdaizhou 5 0 PDF 2021-01-16 14:01:41

import cv2 import dlib import time def get_mouth(img): img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) width_w, height_h = img_gray.shape[0], img_gray.shape[1] detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor('models/shape_predictor_68_face_landmarks.dat'

用户评论
请输入评论内容
评分:
暂无评论