Skip to content

Commit b3b1525

Browse files
committed
Add missing colors property in vision usage.
1 parent 10c64d9 commit b3b1525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/vision-usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ image and determine the dominant colors in the image.
272272
>>> with open('./image.jpg', 'rb') as image_file:
273273
... image = client.image(content=image_file.read())
274274
>>> results = image.detect_properties()
275-
>>> colors = results[0]
275+
>>> colors = results[0].colors
276276
>>> first_color = colors[0]
277277
>>> first_color.red
278278
244

0 commit comments

Comments
 (0)