我用下面的代码来检测人脸
detections = face_cascade.detectMultiScale(
gray,
scaleFactor=1.1,
minNeighbors=5,
minSize=(30, 30),
flags=cv2.CASCADE_SCALE_IMAGE
)
for i in range(len(detections)):
face_i = detections[i]
gray_i = detections[i]
x, y, w, h = face_i
我只想探测到离摄像机最近的那张脸。我怎么能做到呢?在
目前没有回答
相关问题 更多 >
编程相关推荐