python - Detect closest face -
im using following code detect face
detections = face_cascade.detectmultiscale( gray, scalefactor=1.1, minneighbors=5, minsize=(30, 30), flags=cv2.cascade_scale_image ) in range(len(detections)): face_i = detections[i] gray_i = detections[i] x, y, w, h = face_i
i wish detect face closest camera. how can able so?
Comments
Post a Comment