Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cc820e6

Browse filesBrowse files
authored
Pass max_results through to API - issue GoogleCloudPlatform#1173 (GoogleCloudPlatform#1917)
1 parent db9cdab commit cc820e6
Copy full SHA for cc820e6

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
  • vision/cloud-client/face_detection
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎vision/cloud-client/face_detection/faces.py

Copy file name to clipboardExpand all lines: vision/cloud-client/face_detection/faces.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.