From cc820e6038606e3c31ab8d45a92ae38d52a500ba Mon Sep 17 00:00:00 2001 From: Charles Engelke Date: Fri, 7 Dec 2018 15:50:07 -0800 Subject: [PATCH] Pass max_results through to API - issue #1173 (#1917) --- vision/cloud-client/face_detection/faces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vision/cloud-client/face_detection/faces.py b/vision/cloud-client/face_detection/faces.py index a262f3e1d876..317057db3913 100755 --- a/vision/cloud-client/face_detection/faces.py +++ b/vision/cloud-client/face_detection/faces.py @@ -42,7 +42,7 @@ def detect_face(face_file, max_results=4): content = face_file.read() image = types.Image(content=content) - return client.face_detection(image=image).face_annotations + return client.face_detection(image=image, max_results=max_results).face_annotations # [END vision_face_detection_tutorial_send_request]