We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 041c786 commit 9e3a70dCopy full SHA for 9e3a70d
samples/snippets/detect/vision_async_batch_annotate_images.py
@@ -31,12 +31,17 @@ def sample_async_batch_annotate_images(
31
{"type": enums.Feature.Type.LABEL_DETECTION},
32
{"type": enums.Feature.Type.IMAGE_PROPERTIES},
33
]
34
+
35
+ # Each requests element corresponds to a single image. To annotate more
36
+ # images, create a request element for each image and add it to
37
+ # the array of requests
38
requests = [{"image": image, "features": features}]
39
gcs_destination = {"uri": output_uri}
40
41
# The max number of responses to output in each JSON file
42
batch_size = 2
- output_config = {"gcs_destination": gcs_destination, "batch_size": batch_size}
43
+ output_config = {"gcs_destination": gcs_destination,
44
+ "batch_size": batch_size}
45
46
operation = client.async_batch_annotate_images(requests, output_config)
47
0 commit comments