OpenCV人脸检测

代码位置:21-FaceDetect.py import cv2 import os img = cv2.imread('./res/face.jpeg') path = os.getcwd() + '/XML/haarcascade_frontalface_alt2.xml' detector = cv2.CascadeClassifier(path) rects = detector.de
相关文章
相关标签/搜索