Closed
Description
In which file did you encounter the issue?
Did you change the file? If so, how?
no
Describe the issue
The max_results
parameter is not used, so code detects only 10 faces max:
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