s3fd切割人脸

主要部分

import cv2
from face_detector.detect_engine import FaceDetectionEngine

detector = FaceDetectionEngine(weights_path="face_detector/s3fd_convert.pth")

img = cv2.imread("pic_3.jpg")

preds = detector.predict(img, dilate_bbox

你可能感兴趣的:(face,python,深度学习,计算机视觉)