@@ -45,14 +45,19 @@ Annotate multiple images
4545
4646.. doctest ::
4747
48- >>> images = ((' ./image.jpg' , [vision.FeatureTypes.LABEL_DETECTION ,
49- ... vision.FeatureTypes.LANDMARK_DETECTION ]),
50- ... (' ./image2.jpg' , [vision.FeatureTypes.FACE_DETECTION ,
51- vision.FeatureTypes.TEXT_DETECTION]),)
48+ >>> images = (
49+ ... (' ./image.jpg' , [
50+ ... vision.FeatureTypes.LABEL_DETECTION ,
51+ ... vision.FeatureTypes.LANDMARK_DETECTION ]),
52+ ... (' ./image2.jpg' , [
53+ ... vision.FeatureTypes.FACE_DETECTION ,
54+ ... vision.FeatureTypes.TEXT_DETECTION ]),)
5255 >>> annotated_images = []
5356 >>> for image, feature_types in images:
54- ... annotated_images.append(vision_client.annotate(image,
55- ... feature_types))
57+ ... annotated_images.append(
58+ ... vision_client.annotate(
59+ ... image,
60+ ... feature_types))
5661
5762Failing annotations return no results for the feature type requested.
5863
@@ -62,7 +67,7 @@ Failing annotations return no results for the feature type requested.
6267 >>> client = vision.Client(project = " my-project-name" )
6368 >>> with open (' /tmp/car.jpg' , ' r' ) as f:
6469 ... results = client.annotate(f.read(),
65- ... vision.FeatureTypes.LOGO_DETECTION , 3 )
70+ ... vision.FeatureTypes.LOGO_DETECTION , 3 )
6671 >>> len (results.logos) # 0
6772
6873Face Detection
0 commit comments