Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
daspecster committed May 18, 2016
1 parent b07f21b commit f43179d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions docs/vision-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@ Annotate multiple images

.. doctest::

>>> images = (('./image.jpg', [vision.FeatureTypes.LABEL_DETECTION,
... vision.FeatureTypes.LANDMARK_DETECTION]),
... ('./image2.jpg', [vision.FeatureTypes.FACE_DETECTION,
vision.FeatureTypes.TEXT_DETECTION]),)
>>> images = (
... ('./image.jpg', [
... vision.FeatureTypes.LABEL_DETECTION,
... vision.FeatureTypes.LANDMARK_DETECTION]),
... ('./image2.jpg', [
... vision.FeatureTypes.FACE_DETECTION,
... vision.FeatureTypes.TEXT_DETECTION]),)
>>> annotated_images = []
>>> for image, feature_types in images:
... annotated_images.append(vision_client.annotate(image,
... feature_types))
... annotated_images.append(
... vision_client.annotate(
... image,
... feature_types))

Failing annotations return no results for the feature type requested.

Expand All @@ -62,7 +67,7 @@ Failing annotations return no results for the feature type requested.
>>> client = vision.Client(project="my-project-name")
>>> with open('/tmp/car.jpg', 'r') as f:
... results = client.annotate(f.read(),
... vision.FeatureTypes.LOGO_DETECTION, 3)
... vision.FeatureTypes.LOGO_DETECTION, 3)
>>> len(results.logos) # 0

Face Detection
Expand Down

0 comments on commit f43179d

Please sign in to comment.