Skip to content

Commit d32042c

Browse files
daspecstertravis-ci
authored andcommitted
Update vision usage doc examples, and dict quotes.
1 parent be05894 commit d32042c

2 files changed

Lines changed: 1027 additions & 1027 deletions

File tree

docs/vision-usage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Annotate a single image
4242
>>> from google.cloud import vision
4343
>>> client = vision.Client()
4444
>>> with io.open('./image.png', 'rb') as image_file:
45-
>>> image = client.image(image_file.read())
45+
... image = client.image(image_file.read())
4646
>>> faces = image.detect_faces(limit=10)
4747
>>> faces[0].landmarks.left_eye.position.x_coordinate
4848
... 1004.8003
@@ -56,7 +56,7 @@ Annotate multiple images
5656
>>> from gcloud import vision
5757
>>> client = vision.Client()
5858
>>> with io.open('./image.png', 'rb') as image_file:
59-
>>> first_image = client.image(image_file.read())
59+
... first_image = client.image(image_file.read())
6060
>>> second_image = client.image('gs://my-storage-bucket/image2.jpg')
6161
>>> with client.batch():
6262
... labels = first_image.detect_labels()
@@ -90,7 +90,7 @@ You can call the detection method manually.
9090
>>> client = vision.Client()
9191
>>> image = client.image('gs://my-test-bucket/image.jpg')
9292
>>> features = [Feature(FeatureTypes.FACE_DETECTION, 5),
93-
Feature(FeatureTypes.LOGO_DETECTION, 3)]
93+
... Feature(FeatureTypes.LOGO_DETECTION, 3)]
9494
>>> annotations = image.detect(features)
9595
9696
Face Detection

0 commit comments

Comments
 (0)