1. 首页
  2. 数据库
  3. 其它
  4. 图片加口罩代码

图片加口罩代码

上传者: 2021-01-16 14:09:41上传 PDF文件 15.6KB 热度 6次
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'
下载地址
用户评论