File tree 1 file changed +6
-1
lines changed
vision/cloud-client/detect
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,17 @@ def sample_async_batch_annotate_images(
31
31
{"type" : enums .Feature .Type .LABEL_DETECTION },
32
32
{"type" : enums .Feature .Type .IMAGE_PROPERTIES },
33
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
34
38
requests = [{"image" : image , "features" : features }]
35
39
gcs_destination = {"uri" : output_uri }
36
40
37
41
# The max number of responses to output in each JSON file
38
42
batch_size = 2
39
- output_config = {"gcs_destination" : gcs_destination , "batch_size" : batch_size }
43
+ output_config = {"gcs_destination" : gcs_destination ,
44
+ "batch_size" : batch_size }
40
45
41
46
operation = client .async_batch_annotate_images (requests , output_config )
42
47
You can’t perform that action at this time.
0 commit comments