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
相關文章
相關標籤/搜索