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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -