def detect_face(face_file, max_results=4):
"""Uses the Vision API to detect faces in the given file.
Args:
face_file: A file-like object containing an image with faces.
Returns:
An array of Face objects with information about the picture.
"""
# [START get_vision_service]
client = vision.ImageAnnotatorClient()
# [END get_vision_service]
content = face_file.read()
image = types.Image(content=content)
return client.face_detection(image=image).face_annotations
In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/vision/cloud-client/face_detection/faces.py
Did you change the file? If so, how?
no
Describe the issue
The
max_resultsparameter is not used, so code detects only 10 faces max: