diff --git a/docs/vision-usage.rst b/docs/vision-usage.rst index 02419dbcfccfd..5692712230089 100644 --- a/docs/vision-usage.rst +++ b/docs/vision-usage.rst @@ -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. @@ -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