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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -