From 6a194c7357fc72113c0df4d30defe947ea8a6945 Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Thu, 24 Mar 2022 09:02:03 -0700 Subject: [PATCH] fix: fixed 'annotate an image' --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 931ad5fb..3b6c9404 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -17,7 +17,7 @@ You can call the :meth:`annotate_image` method directly: >>> client = vision.ImageAnnotatorClient() >>> response = client.annotate_image({ ... 'image': {'source': {'image_uri': 'gs://my-test-bucket/image.jpg'}}, - ... 'features': [{'type': vision.enums.Feature.Type.FACE_DETECTION}], + ... 'features': [{'type_': vision.Feature.Type.FACE_DETECTION}], ... }) >>> len(response.annotations) 2