Skip to content

Commit cc820e6

Browse files
authored
Pass max_results through to API - issue #1173 (#1917)
1 parent db9cdab commit cc820e6

File tree

1 file changed

+1
-1
lines changed
  • vision/cloud-client/face_detection

1 file changed

+1
-1
lines changed

vision/cloud-client/face_detection/faces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def detect_face(face_file, max_results=4):
4242
content = face_file.read()
4343
image = types.Image(content=content)
4444

45-
return client.face_detection(image=image).face_annotations
45+
return client.face_detection(image=image, max_results=max_results).face_annotations
4646
# [END vision_face_detection_tutorial_send_request]
4747

4848

0 commit comments

Comments
 (0)