blob: 70ff19980dc942f4f6b9e85919920c419d1e6c92 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="vision_v1p2beta1.html">Cloud Vision API</a> . <a href="vision_v1p2beta1.images.html">images</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#annotate">annotate(body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Run image detection and annotation for a batch of images.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#asyncBatchAnnotate">asyncBatchAnnotate(body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Run asynchronous image detection and annotation for a list of images.</p>
83<h3>Method Details</h3>
84<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070085 <code class="details" id="annotate">annotate(body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086 <pre>Run image detection and annotation for a batch of images.
87
88Args:
Dan O'Mearadd494642020-05-01 07:42:23 -070089 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090 The object takes the form of:
91
92{ # Multiple image annotation requests are batched into a single service call.
Bu Sun Kim65020912020-05-20 12:08:20 -070093 &quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call.
94 #
95 # Format: `projects/{project-id}/locations/{location-id}`.
96 #
97 # If no parent is specified, a region will be chosen automatically.
98 #
99 # Supported location-ids:
100 # `us`: USA country only,
101 # `asia`: East asia areas, like Japan, Taiwan,
102 # `eu`: The European Union.
103 #
104 # Example: `projects/project-A/locations/eu`.
105 &quot;requests&quot;: [ # Required. Individual image annotation requests for this batch.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 { # Request for performing Google Cloud Vision API tasks over a user-provided
107 # image, with user-requested features, and with context information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 &quot;image&quot;: { # Client image to perform Google Cloud Vision API tasks over. # The image to be processed.
109 &quot;content&quot;: &quot;A String&quot;, # Image content, represented as a stream of bytes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 # Note: As with all `bytes` fields, protobuffers use a pure binary
111 # representation, whereas JSON representations use base64.
Bu Sun Kim65020912020-05-20 12:08:20 -0700112 &quot;source&quot;: { # External image source (Google Cloud Storage or web URL image location). # Google Cloud Storage image location, or publicly-accessible image
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 # URL. If both `content` and `source` are provided for an image, `content`
114 # takes precedence and is used to perform the image annotation request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;imageUri&quot;: &quot;A String&quot;, # The URI of the source image. Can be either:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116 #
117 # 1. A Google Cloud Storage URI of the form
118 # `gs://bucket_name/object_name`. Object versioning is not supported. See
119 # [Google Cloud Storage Request
120 # URIs](https://cloud.google.com/storage/docs/reference-uris) for more
121 # info.
122 #
123 # 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
124 # HTTP/HTTPS URLs, Google cannot guarantee that the request will be
125 # completed. Your request may fail if the specified host denies the
126 # request (e.g. due to request throttling or DOS prevention), or if Google
127 # throttles requests to the site for abuse prevention. You should not
128 # depend on externally-hosted images for production applications.
129 #
130 # When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
131 # precedence.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;gcsImageUri&quot;: &quot;A String&quot;, # **Use `image_uri` instead.**
133 #
134 # The Google Cloud Storage URI of the form
135 # `gs://bucket_name/object_name`. Object versioning is not supported. See
136 # [Google Cloud Storage Request
137 # URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700138 },
139 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;features&quot;: [ # Requested features.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 { # The type of Google Cloud Vision API detection to perform, and the maximum
142 # number of results to return for that type. Multiple `Feature` objects can
143 # be specified in the `features` list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 &quot;type&quot;: &quot;A String&quot;, # The feature type.
145 &quot;maxResults&quot;: 42, # Maximum number of results of this type. Does not apply to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700146 # `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;model&quot;: &quot;A String&quot;, # Model to use for the feature.
148 # Supported values: &quot;builtin/stable&quot; (the default if unset) and
149 # &quot;builtin/latest&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 },
151 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;imageContext&quot;: { # Image context and/or feature-specific parameters. # Additional context that may accompany the image.
153 &quot;languageHints&quot;: [ # List of languages to use for TEXT_DETECTION. In most cases, an empty value
154 # yields the best results since it enables automatic language detection. For
155 # languages based on the Latin alphabet, setting `language_hints` is not
156 # needed. In rare cases, when the language of the text in the image is known,
157 # setting a hint will help get better results (although it will be a
158 # significant hindrance if the hint is wrong). Text detection returns an
159 # error if one or more of the specified languages is not one of the
160 # [supported languages](https://cloud.google.com/vision/docs/languages).
161 &quot;A String&quot;,
162 ],
163 &quot;webDetectionParams&quot;: { # Parameters for web detection request. # Parameters for web detection.
164 &quot;includeGeoResults&quot;: True or False, # Whether to include results derived from the geo information in the image.
165 },
166 &quot;latLongRect&quot;: { # Rectangle determined by min and max `LatLng` pairs. # Not used.
167 &quot;minLatLng&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # Min lat/long pair.
168 # of doubles representing degrees latitude and degrees longitude. Unless
169 # specified otherwise, this must conform to the
170 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
171 # standard&lt;/a&gt;. Values must be within normalized ranges.
172 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
173 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
174 },
175 &quot;maxLatLng&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # Max lat/long pair.
176 # of doubles representing degrees latitude and degrees longitude. Unless
177 # specified otherwise, this must conform to the
178 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
179 # standard&lt;/a&gt;. Values must be within normalized ranges.
180 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
181 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
182 },
183 },
184 &quot;cropHintsParams&quot;: { # Parameters for crop hints annotation request. # Parameters for crop hints annotation request.
185 &quot;aspectRatios&quot;: [ # Aspect ratios in floats, representing the ratio of the width to the height
186 # of the image. For example, if the desired aspect ratio is 4/3, the
187 # corresponding float value should be 1.33333. If not specified, the
188 # best possible crop is returned. The number of provided aspect ratios is
189 # limited to a maximum of 16; any aspect ratios provided after the 16th are
190 # ignored.
191 3.14,
192 ],
193 },
194 &quot;productSearchParams&quot;: { # Parameters for a product search request. # Parameters for product search.
195 &quot;productSet&quot;: &quot;A String&quot;, # The resource name of a ProductSet to be searched for similar images.
196 #
197 # Format is:
198 # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
199 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # The bounding polygon around the area of interest in the image.
200 # If it is not specified, system discretion will be applied.
201 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
202 { # A vertex represents a 2D point in the image.
203 # NOTE: the normalized vertex coordinates are relative to the original image
204 # and range from 0 to 1.
205 &quot;y&quot;: 3.14, # Y coordinate.
206 &quot;x&quot;: 3.14, # X coordinate.
207 },
208 ],
209 &quot;vertices&quot;: [ # The bounding polygon vertices.
210 { # A vertex represents a 2D point in the image.
211 # NOTE: the vertex coordinates are in the same scale as the original image.
212 &quot;y&quot;: 42, # Y coordinate.
213 &quot;x&quot;: 42, # X coordinate.
214 },
215 ],
216 },
217 &quot;productCategories&quot;: [ # The list of product categories to search in. Currently, we only consider
218 # the first category, and either &quot;homegoods-v2&quot;, &quot;apparel-v2&quot;, &quot;toys-v2&quot;,
219 # &quot;packagedgoods-v1&quot;, or &quot;general-v1&quot; should be specified. The legacy
220 # categories &quot;homegoods&quot;, &quot;apparel&quot;, and &quot;toys&quot; are still supported but will
221 # be deprecated. For new products, please use &quot;homegoods-v2&quot;, &quot;apparel-v2&quot;,
222 # or &quot;toys-v2&quot; for better product search accuracy. It is recommended to
223 # migrate existing products to these categories as well.
224 &quot;A String&quot;,
225 ],
226 &quot;filter&quot;: &quot;A String&quot;, # The filtering expression. This can be used to restrict search results based
227 # on Product labels. We currently support an AND of OR of key-value
228 # expressions, where each expression within an OR must have the same key. An
229 # &#x27;=&#x27; should be used to connect the key and value.
230 #
231 # For example, &quot;(color = red OR color = blue) AND brand = Google&quot; is
232 # acceptable, but &quot;(color = red OR brand = Google)&quot; is not acceptable.
233 # &quot;color: red&quot; is not acceptable because it uses a &#x27;:&#x27; instead of an &#x27;=&#x27;.
234 },
235 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 },
237 ],
238 }
239
240 x__xgafv: string, V1 error format.
241 Allowed values
242 1 - v1 error format
243 2 - v2 error format
244
245Returns:
246 An object of the form:
247
248 { # Response to a batch image annotation request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 &quot;responses&quot;: [ # Individual responses to image annotation requests within the batch.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700250 { # Response to an image annotation request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;context&quot;: { # If an image was produced from a file (e.g. a PDF), this message gives # If present, contextual information is needed to understand where this image
252 # comes from.
253 # information about the source of that image.
254 &quot;uri&quot;: &quot;A String&quot;, # The URI of the file used to produce the image.
255 &quot;pageNumber&quot;: 42, # If the file was a PDF or TIFF, this field gives the page number within
256 # the file used to produce the image.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;logoAnnotations&quot;: [ # If present, logo detection has completed successfully.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 { # Set of detected entity features.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;properties&quot;: [ # Some entities may have optional user-supplied `Property` (name/value)
261 # fields, such a score or string that qualifies the entity.
262 { # A `Property` consists of a user-supplied name/value pair.
263 &quot;uint64Value&quot;: &quot;A String&quot;, # Value of numeric properties.
264 &quot;name&quot;: &quot;A String&quot;, # Name of the property.
265 &quot;value&quot;: &quot;A String&quot;, # Value of the property.
266 },
267 ],
268 &quot;score&quot;: 3.14, # Overall score of the result. Range [0, 1].
269 &quot;locations&quot;: [ # The location information for the detected entity. Multiple
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700270 # `LocationInfo` elements can be present because one location may
271 # indicate the location of the scene in the image, and another location
272 # may indicate the location of the place where the image was taken.
273 # Location information is usually present for landmarks.
274 { # Detected entity location information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;latLng&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # lat/long location coordinates.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276 # of doubles representing degrees latitude and degrees longitude. Unless
277 # specified otherwise, this must conform to the
Bu Sun Kim65020912020-05-20 12:08:20 -0700278 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
Dan O'Mearadd494642020-05-01 07:42:23 -0700279 # standard&lt;/a&gt;. Values must be within normalized ranges.
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
281 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282 },
283 },
284 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 &quot;mid&quot;: &quot;A String&quot;, # Opaque entity ID. Some IDs may be available in
286 # [Google Knowledge Graph Search
287 # API](https://developers.google.com/knowledge-graph/).
288 &quot;confidence&quot;: 3.14, # **Deprecated. Use `score` instead.**
289 # The accuracy of the entity detection in an image.
290 # For example, for an image in which the &quot;Eiffel Tower&quot; entity is detected,
291 # this field represents the confidence that there is a tower in the query
292 # image. Range [0, 1].
293 &quot;locale&quot;: &quot;A String&quot;, # The language code for the locale in which the entity textual
294 # `description` is expressed.
295 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # Image region to which this entity belongs. Not produced
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700296 # for `LABEL_DETECTION` features.
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298 { # A vertex represents a 2D point in the image.
299 # NOTE: the normalized vertex coordinates are relative to the original image
300 # and range from 0 to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 &quot;y&quot;: 3.14, # Y coordinate.
302 &quot;x&quot;: 3.14, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700303 },
304 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;vertices&quot;: [ # The bounding polygon vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306 { # A vertex represents a 2D point in the image.
307 # NOTE: the vertex coordinates are in the same scale as the original image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &quot;y&quot;: 42, # Y coordinate.
309 &quot;x&quot;: 42, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700310 },
311 ],
312 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &quot;description&quot;: &quot;A String&quot;, # Entity textual description, expressed in its `locale` language.
314 &quot;topicality&quot;: 3.14, # The relevancy of the ICA (Image Content Annotation) label to the
315 # image. For example, the relevancy of &quot;tower&quot; is likely higher to an image
316 # containing the detected &quot;Eiffel Tower&quot; than to an image containing a
317 # detected distant towering building, even though the confidence that
318 # there is a tower in each image may be the same. Range [0, 1].
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700319 },
320 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 &quot;webDetection&quot;: { # Relevant information for the image from the Internet. # If present, web detection has completed successfully.
322 &quot;webEntities&quot;: [ # Deduced entities from similar images on the Internet.
323 { # Entity deduced from similar images on the Internet.
324 &quot;entityId&quot;: &quot;A String&quot;, # Opaque entity ID.
325 &quot;description&quot;: &quot;A String&quot;, # Canonical description of the entity, in English.
326 &quot;score&quot;: 3.14, # Overall relevancy score for the entity.
327 # Not normalized and not comparable across different image queries.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700328 },
329 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 &quot;pagesWithMatchingImages&quot;: [ # Web pages containing the matching images from the Internet.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700331 { # Metadata for web pages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 &quot;score&quot;: 3.14, # (Deprecated) Overall relevancy score for the web page.
333 &quot;partialMatchingImages&quot;: [ # Partial matching images on the page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700334 # Those images are similar enough to share some key-point features. For
335 # example an original image will likely have partial matching for its
336 # crops.
337 { # Metadata for online images.
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 &quot;score&quot;: 3.14, # (Deprecated) Overall relevancy score for the image.
339 &quot;url&quot;: &quot;A String&quot;, # The result image URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700340 },
341 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 &quot;url&quot;: &quot;A String&quot;, # The result web page URL.
343 &quot;pageTitle&quot;: &quot;A String&quot;, # Title for the web page, may contain HTML markups.
344 &quot;fullMatchingImages&quot;: [ # Fully matching images on the page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700345 # Can include resized copies of the query image.
346 { # Metadata for online images.
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 &quot;score&quot;: 3.14, # (Deprecated) Overall relevancy score for the image.
348 &quot;url&quot;: &quot;A String&quot;, # The result image URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700349 },
350 ],
351 },
352 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 &quot;partialMatchingImages&quot;: [ # Partial matching images from the Internet.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354 # Those images are similar enough to share some key-point features. For
355 # example an original image will likely have partial matching for its crops.
356 { # Metadata for online images.
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 &quot;score&quot;: 3.14, # (Deprecated) Overall relevancy score for the image.
358 &quot;url&quot;: &quot;A String&quot;, # The result image URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700359 },
360 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700361 &quot;visuallySimilarImages&quot;: [ # The visually similar image results.
362 { # Metadata for online images.
363 &quot;score&quot;: 3.14, # (Deprecated) Overall relevancy score for the image.
364 &quot;url&quot;: &quot;A String&quot;, # The result image URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365 },
366 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 &quot;bestGuessLabels&quot;: [ # The service&#x27;s best guess as to the topic of the request image.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700368 # Inferred from similar images on the open web.
369 { # Label to provide extra metadata for the web detection.
Bu Sun Kim65020912020-05-20 12:08:20 -0700370 &quot;label&quot;: &quot;A String&quot;, # Label for extra metadata.
371 &quot;languageCode&quot;: &quot;A String&quot;, # The BCP-47 language code for `label`, such as &quot;en-US&quot; or &quot;sr-Latn&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700372 # For more information, see
373 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 },
375 ],
376 &quot;fullMatchingImages&quot;: [ # Fully matching images from the Internet.
377 # Can include resized copies of the query image.
378 { # Metadata for online images.
379 &quot;score&quot;: 3.14, # (Deprecated) Overall relevancy score for the image.
380 &quot;url&quot;: &quot;A String&quot;, # The result image URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700381 },
382 ],
383 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 &quot;safeSearchAnnotation&quot;: { # Set of features pertaining to the image, computed by computer vision # If present, safe-search annotation has completed successfully.
385 # methods over safe-search verticals (for example, adult, spoof, medical,
386 # violence).
387 &quot;racy&quot;: &quot;A String&quot;, # Likelihood that the request image contains racy content. Racy content may
388 # include (but is not limited to) skimpy or sheer clothing, strategically
389 # covered nudity, lewd or provocative poses, or close-ups of sensitive
390 # body areas.
391 &quot;violence&quot;: &quot;A String&quot;, # Likelihood that this image contains violent content.
392 &quot;adult&quot;: &quot;A String&quot;, # Represents the adult content likelihood for the image. Adult content may
393 # contain elements such as nudity, pornographic images or cartoons, or
394 # sexual activities.
395 &quot;spoof&quot;: &quot;A String&quot;, # Spoof likelihood. The likelihood that an modification
396 # was made to the image&#x27;s canonical version to make it appear
397 # funny or offensive.
398 &quot;medical&quot;: &quot;A String&quot;, # Likelihood that this is a medical image.
399 },
400 &quot;landmarkAnnotations&quot;: [ # If present, landmark detection has completed successfully.
401 { # Set of detected entity features.
402 &quot;properties&quot;: [ # Some entities may have optional user-supplied `Property` (name/value)
403 # fields, such a score or string that qualifies the entity.
404 { # A `Property` consists of a user-supplied name/value pair.
405 &quot;uint64Value&quot;: &quot;A String&quot;, # Value of numeric properties.
406 &quot;name&quot;: &quot;A String&quot;, # Name of the property.
407 &quot;value&quot;: &quot;A String&quot;, # Value of the property.
408 },
409 ],
410 &quot;score&quot;: 3.14, # Overall score of the result. Range [0, 1].
411 &quot;locations&quot;: [ # The location information for the detected entity. Multiple
412 # `LocationInfo` elements can be present because one location may
413 # indicate the location of the scene in the image, and another location
414 # may indicate the location of the place where the image was taken.
415 # Location information is usually present for landmarks.
416 { # Detected entity location information.
417 &quot;latLng&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # lat/long location coordinates.
418 # of doubles representing degrees latitude and degrees longitude. Unless
419 # specified otherwise, this must conform to the
420 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
421 # standard&lt;/a&gt;. Values must be within normalized ranges.
422 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
423 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
424 },
425 },
426 ],
427 &quot;mid&quot;: &quot;A String&quot;, # Opaque entity ID. Some IDs may be available in
428 # [Google Knowledge Graph Search
429 # API](https://developers.google.com/knowledge-graph/).
430 &quot;confidence&quot;: 3.14, # **Deprecated. Use `score` instead.**
431 # The accuracy of the entity detection in an image.
432 # For example, for an image in which the &quot;Eiffel Tower&quot; entity is detected,
433 # this field represents the confidence that there is a tower in the query
434 # image. Range [0, 1].
435 &quot;locale&quot;: &quot;A String&quot;, # The language code for the locale in which the entity textual
436 # `description` is expressed.
437 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # Image region to which this entity belongs. Not produced
438 # for `LABEL_DETECTION` features.
439 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 { # A vertex represents a 2D point in the image.
441 # NOTE: the normalized vertex coordinates are relative to the original image
442 # and range from 0 to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -0700443 &quot;y&quot;: 3.14, # Y coordinate.
444 &quot;x&quot;: 3.14, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445 },
446 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;vertices&quot;: [ # The bounding polygon vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700448 { # A vertex represents a 2D point in the image.
449 # NOTE: the vertex coordinates are in the same scale as the original image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 &quot;y&quot;: 42, # Y coordinate.
451 &quot;x&quot;: 42, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700452 },
453 ],
454 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700455 &quot;description&quot;: &quot;A String&quot;, # Entity textual description, expressed in its `locale` language.
456 &quot;topicality&quot;: 3.14, # The relevancy of the ICA (Image Content Annotation) label to the
457 # image. For example, the relevancy of &quot;tower&quot; is likely higher to an image
458 # containing the detected &quot;Eiffel Tower&quot; than to an image containing a
459 # detected distant towering building, even though the confidence that
460 # there is a tower in each image may be the same. Range [0, 1].
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 },
462 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 &quot;faceAnnotations&quot;: [ # If present, face detection has completed successfully.
464 { # A face annotation object contains the results of face detection.
465 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # The bounding polygon around the face. The coordinates of the bounding box
466 # are in the original image&#x27;s scale.
467 # The bounding box is computed to &quot;frame&quot; the face in accordance with human
468 # expectations. It is based on the landmarker results.
469 # Note that one or more x and/or y coordinates may not be generated in the
470 # `BoundingPoly` (the polygon will be unbounded) if only a partial face
471 # appears in the image to be annotated.
472 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
473 { # A vertex represents a 2D point in the image.
474 # NOTE: the normalized vertex coordinates are relative to the original image
475 # and range from 0 to 1.
476 &quot;y&quot;: 3.14, # Y coordinate.
477 &quot;x&quot;: 3.14, # X coordinate.
478 },
479 ],
480 &quot;vertices&quot;: [ # The bounding polygon vertices.
481 { # A vertex represents a 2D point in the image.
482 # NOTE: the vertex coordinates are in the same scale as the original image.
483 &quot;y&quot;: 42, # Y coordinate.
484 &quot;x&quot;: 42, # X coordinate.
485 },
486 ],
487 },
488 &quot;rollAngle&quot;: 3.14, # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
489 # of the face relative to the image vertical about the axis perpendicular to
490 # the face. Range [-180,180].
491 &quot;sorrowLikelihood&quot;: &quot;A String&quot;, # Sorrow likelihood.
492 &quot;tiltAngle&quot;: 3.14, # Pitch angle, which indicates the upwards/downwards angle that the face is
493 # pointing relative to the image&#x27;s horizontal plane. Range [-180,180].
494 &quot;fdBoundingPoly&quot;: { # A bounding polygon for the detected image annotation. # The `fd_bounding_poly` bounding polygon is tighter than the
495 # `boundingPoly`, and encloses only the skin part of the face. Typically, it
496 # is used to eliminate the face from any image analysis that detects the
497 # &quot;amount of skin&quot; visible in an image. It is not based on the
498 # landmarker results, only on the initial face detection, hence
499 # the &lt;code&gt;fd&lt;/code&gt; (face detection) prefix.
500 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
501 { # A vertex represents a 2D point in the image.
502 # NOTE: the normalized vertex coordinates are relative to the original image
503 # and range from 0 to 1.
504 &quot;y&quot;: 3.14, # Y coordinate.
505 &quot;x&quot;: 3.14, # X coordinate.
506 },
507 ],
508 &quot;vertices&quot;: [ # The bounding polygon vertices.
509 { # A vertex represents a 2D point in the image.
510 # NOTE: the vertex coordinates are in the same scale as the original image.
511 &quot;y&quot;: 42, # Y coordinate.
512 &quot;x&quot;: 42, # X coordinate.
513 },
514 ],
515 },
516 &quot;angerLikelihood&quot;: &quot;A String&quot;, # Anger likelihood.
517 &quot;landmarks&quot;: [ # Detected face landmarks.
518 { # A face-specific landmark (for example, a face feature).
519 &quot;position&quot;: { # A 3D position in the image, used primarily for Face detection landmarks. # Face landmark position.
520 # A valid Position must have both x and y coordinates.
521 # The position coordinates are in the same scale as the original image.
522 &quot;y&quot;: 3.14, # Y coordinate.
523 &quot;x&quot;: 3.14, # X coordinate.
524 &quot;z&quot;: 3.14, # Z coordinate (or depth).
525 },
526 &quot;type&quot;: &quot;A String&quot;, # Face landmark type.
527 },
528 ],
529 &quot;surpriseLikelihood&quot;: &quot;A String&quot;, # Surprise likelihood.
530 &quot;landmarkingConfidence&quot;: 3.14, # Face landmarking confidence. Range [0, 1].
531 &quot;joyLikelihood&quot;: &quot;A String&quot;, # Joy likelihood.
532 &quot;underExposedLikelihood&quot;: &quot;A String&quot;, # Under-exposed likelihood.
533 &quot;panAngle&quot;: 3.14, # Yaw angle, which indicates the leftward/rightward angle that the face is
534 # pointing relative to the vertical plane perpendicular to the image. Range
535 # [-180,180].
536 &quot;detectionConfidence&quot;: 3.14, # Detection confidence. Range [0, 1].
537 &quot;blurredLikelihood&quot;: &quot;A String&quot;, # Blurred likelihood.
538 &quot;headwearLikelihood&quot;: &quot;A String&quot;, # Headwear likelihood.
539 },
540 ],
541 &quot;cropHintsAnnotation&quot;: { # Set of crop hints that are used to generate new crops when serving images. # If present, crop hints have completed successfully.
542 &quot;cropHints&quot;: [ # Crop hint results.
543 { # Single crop hint that is used to generate a new crop when serving an image.
544 &quot;confidence&quot;: 3.14, # Confidence of this being a salient region. Range [0, 1].
545 &quot;importanceFraction&quot;: 3.14, # Fraction of importance of this salient region with respect to the original
546 # image.
547 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # The bounding polygon for the crop region. The coordinates of the bounding
548 # box are in the original image&#x27;s scale.
549 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
550 { # A vertex represents a 2D point in the image.
551 # NOTE: the normalized vertex coordinates are relative to the original image
552 # and range from 0 to 1.
553 &quot;y&quot;: 3.14, # Y coordinate.
554 &quot;x&quot;: 3.14, # X coordinate.
555 },
556 ],
557 &quot;vertices&quot;: [ # The bounding polygon vertices.
558 { # A vertex represents a 2D point in the image.
559 # NOTE: the vertex coordinates are in the same scale as the original image.
560 &quot;y&quot;: 42, # Y coordinate.
561 &quot;x&quot;: 42, # X coordinate.
562 },
563 ],
564 },
565 },
566 ],
567 },
568 &quot;labelAnnotations&quot;: [ # If present, label detection has completed successfully.
569 { # Set of detected entity features.
570 &quot;properties&quot;: [ # Some entities may have optional user-supplied `Property` (name/value)
571 # fields, such a score or string that qualifies the entity.
572 { # A `Property` consists of a user-supplied name/value pair.
573 &quot;uint64Value&quot;: &quot;A String&quot;, # Value of numeric properties.
574 &quot;name&quot;: &quot;A String&quot;, # Name of the property.
575 &quot;value&quot;: &quot;A String&quot;, # Value of the property.
576 },
577 ],
578 &quot;score&quot;: 3.14, # Overall score of the result. Range [0, 1].
579 &quot;locations&quot;: [ # The location information for the detected entity. Multiple
580 # `LocationInfo` elements can be present because one location may
581 # indicate the location of the scene in the image, and another location
582 # may indicate the location of the place where the image was taken.
583 # Location information is usually present for landmarks.
584 { # Detected entity location information.
585 &quot;latLng&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # lat/long location coordinates.
586 # of doubles representing degrees latitude and degrees longitude. Unless
587 # specified otherwise, this must conform to the
588 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
589 # standard&lt;/a&gt;. Values must be within normalized ranges.
590 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
591 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
592 },
593 },
594 ],
595 &quot;mid&quot;: &quot;A String&quot;, # Opaque entity ID. Some IDs may be available in
596 # [Google Knowledge Graph Search
597 # API](https://developers.google.com/knowledge-graph/).
598 &quot;confidence&quot;: 3.14, # **Deprecated. Use `score` instead.**
599 # The accuracy of the entity detection in an image.
600 # For example, for an image in which the &quot;Eiffel Tower&quot; entity is detected,
601 # this field represents the confidence that there is a tower in the query
602 # image. Range [0, 1].
603 &quot;locale&quot;: &quot;A String&quot;, # The language code for the locale in which the entity textual
604 # `description` is expressed.
605 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # Image region to which this entity belongs. Not produced
606 # for `LABEL_DETECTION` features.
607 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
608 { # A vertex represents a 2D point in the image.
609 # NOTE: the normalized vertex coordinates are relative to the original image
610 # and range from 0 to 1.
611 &quot;y&quot;: 3.14, # Y coordinate.
612 &quot;x&quot;: 3.14, # X coordinate.
613 },
614 ],
615 &quot;vertices&quot;: [ # The bounding polygon vertices.
616 { # A vertex represents a 2D point in the image.
617 # NOTE: the vertex coordinates are in the same scale as the original image.
618 &quot;y&quot;: 42, # Y coordinate.
619 &quot;x&quot;: 42, # X coordinate.
620 },
621 ],
622 },
623 &quot;description&quot;: &quot;A String&quot;, # Entity textual description, expressed in its `locale` language.
624 &quot;topicality&quot;: 3.14, # The relevancy of the ICA (Image Content Annotation) label to the
625 # image. For example, the relevancy of &quot;tower&quot; is likely higher to an image
626 # containing the detected &quot;Eiffel Tower&quot; than to an image containing a
627 # detected distant towering building, even though the confidence that
628 # there is a tower in each image may be the same. Range [0, 1].
629 },
630 ],
631 &quot;localizedObjectAnnotations&quot;: [ # If present, localized object detection has completed successfully.
632 # This will be sorted descending by confidence score.
633 { # Set of detected objects with bounding boxes.
634 &quot;languageCode&quot;: &quot;A String&quot;, # The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more
635 # information, see
636 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
637 &quot;mid&quot;: &quot;A String&quot;, # Object ID that should align with EntityAnnotation mid.
638 &quot;name&quot;: &quot;A String&quot;, # Object name, expressed in its `language_code` language.
639 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # Image region to which this object belongs. This must be populated.
640 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
641 { # A vertex represents a 2D point in the image.
642 # NOTE: the normalized vertex coordinates are relative to the original image
643 # and range from 0 to 1.
644 &quot;y&quot;: 3.14, # Y coordinate.
645 &quot;x&quot;: 3.14, # X coordinate.
646 },
647 ],
648 &quot;vertices&quot;: [ # The bounding polygon vertices.
649 { # A vertex represents a 2D point in the image.
650 # NOTE: the vertex coordinates are in the same scale as the original image.
651 &quot;y&quot;: 42, # Y coordinate.
652 &quot;x&quot;: 42, # X coordinate.
653 },
654 ],
655 },
656 &quot;score&quot;: 3.14, # Score of the result. Range [0, 1].
657 },
658 ],
659 &quot;productSearchResults&quot;: { # Results for a product search request. # If present, product search has completed successfully.
660 &quot;indexTime&quot;: &quot;A String&quot;, # Timestamp of the index which provided these results. Products added to the
661 # product set and products removed from the product set after this time are
662 # not reflected in the current results.
663 &quot;productGroupedResults&quot;: [ # List of results grouped by products detected in the query image. Each entry
664 # corresponds to one bounding polygon in the query image, and contains the
665 # matching products specific to that region. There may be duplicate product
666 # matches in the union of all the per-product results.
667 { # Information about the products similar to a single product in a query
668 # image.
669 &quot;objectAnnotations&quot;: [ # List of generic predictions for the object in the bounding box.
670 { # Prediction for what the object in the bounding box is.
671 &quot;score&quot;: 3.14, # Score of the result. Range [0, 1].
672 &quot;languageCode&quot;: &quot;A String&quot;, # The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more
673 # information, see
674 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
675 &quot;mid&quot;: &quot;A String&quot;, # Object ID that should align with EntityAnnotation mid.
676 &quot;name&quot;: &quot;A String&quot;, # Object name, expressed in its `language_code` language.
677 },
678 ],
679 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # The bounding polygon around the product detected in the query image.
680 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
681 { # A vertex represents a 2D point in the image.
682 # NOTE: the normalized vertex coordinates are relative to the original image
683 # and range from 0 to 1.
684 &quot;y&quot;: 3.14, # Y coordinate.
685 &quot;x&quot;: 3.14, # X coordinate.
686 },
687 ],
688 &quot;vertices&quot;: [ # The bounding polygon vertices.
689 { # A vertex represents a 2D point in the image.
690 # NOTE: the vertex coordinates are in the same scale as the original image.
691 &quot;y&quot;: 42, # Y coordinate.
692 &quot;x&quot;: 42, # X coordinate.
693 },
694 ],
695 },
696 &quot;results&quot;: [ # List of results, one for each product match.
697 { # Information about a product.
698 &quot;image&quot;: &quot;A String&quot;, # The resource name of the image from the product that is the closest match
699 # to the query.
700 &quot;product&quot;: { # A Product contains ReferenceImages. # The Product.
701 &quot;name&quot;: &quot;A String&quot;, # The resource name of the product.
702 #
703 # Format is:
704 # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
705 #
706 # This field is ignored when creating a product.
707 &quot;displayName&quot;: &quot;A String&quot;, # The user-provided name for this Product. Must not be empty. Must be at most
708 # 4096 characters long.
709 &quot;description&quot;: &quot;A String&quot;, # User-provided metadata to be stored with this product. Must be at most 4096
710 # characters long.
711 &quot;productCategory&quot;: &quot;A String&quot;, # Immutable. The category for the product identified by the reference image. This should
712 # be either &quot;homegoods-v2&quot;, &quot;apparel-v2&quot;, or &quot;toys-v2&quot;. The legacy categories
713 # &quot;homegoods&quot;, &quot;apparel&quot;, and &quot;toys&quot; are still supported, but these should
714 # not be used for new products.
715 &quot;productLabels&quot;: [ # Key-value pairs that can be attached to a product. At query time,
716 # constraints can be specified based on the product_labels.
717 #
718 # Note that integer values can be provided as strings, e.g. &quot;1199&quot;. Only
719 # strings with integer values can match a range-based restriction which is
720 # to be supported soon.
721 #
722 # Multiple values can be assigned to the same key. One product may have up to
723 # 500 product_labels.
724 #
725 # Notice that the total number of distinct product_labels over all products
726 # in one ProductSet cannot exceed 1M, otherwise the product search pipeline
727 # will refuse to work for that ProductSet.
728 { # A product label represented as a key-value pair.
729 &quot;value&quot;: &quot;A String&quot;, # The value of the label attached to the product. Cannot be empty and
730 # cannot exceed 128 bytes.
731 &quot;key&quot;: &quot;A String&quot;, # The key of the label attached to the product. Cannot be empty and cannot
732 # exceed 128 bytes.
733 },
734 ],
735 },
736 &quot;score&quot;: 3.14, # A confidence level on the match, ranging from 0 (no confidence) to
737 # 1 (full confidence).
738 },
739 ],
740 },
741 ],
742 &quot;results&quot;: [ # List of results, one for each product match.
743 { # Information about a product.
744 &quot;image&quot;: &quot;A String&quot;, # The resource name of the image from the product that is the closest match
745 # to the query.
746 &quot;product&quot;: { # A Product contains ReferenceImages. # The Product.
747 &quot;name&quot;: &quot;A String&quot;, # The resource name of the product.
748 #
749 # Format is:
750 # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
751 #
752 # This field is ignored when creating a product.
753 &quot;displayName&quot;: &quot;A String&quot;, # The user-provided name for this Product. Must not be empty. Must be at most
754 # 4096 characters long.
755 &quot;description&quot;: &quot;A String&quot;, # User-provided metadata to be stored with this product. Must be at most 4096
756 # characters long.
757 &quot;productCategory&quot;: &quot;A String&quot;, # Immutable. The category for the product identified by the reference image. This should
758 # be either &quot;homegoods-v2&quot;, &quot;apparel-v2&quot;, or &quot;toys-v2&quot;. The legacy categories
759 # &quot;homegoods&quot;, &quot;apparel&quot;, and &quot;toys&quot; are still supported, but these should
760 # not be used for new products.
761 &quot;productLabels&quot;: [ # Key-value pairs that can be attached to a product. At query time,
762 # constraints can be specified based on the product_labels.
763 #
764 # Note that integer values can be provided as strings, e.g. &quot;1199&quot;. Only
765 # strings with integer values can match a range-based restriction which is
766 # to be supported soon.
767 #
768 # Multiple values can be assigned to the same key. One product may have up to
769 # 500 product_labels.
770 #
771 # Notice that the total number of distinct product_labels over all products
772 # in one ProductSet cannot exceed 1M, otherwise the product search pipeline
773 # will refuse to work for that ProductSet.
774 { # A product label represented as a key-value pair.
775 &quot;value&quot;: &quot;A String&quot;, # The value of the label attached to the product. Cannot be empty and
776 # cannot exceed 128 bytes.
777 &quot;key&quot;: &quot;A String&quot;, # The key of the label attached to the product. Cannot be empty and cannot
778 # exceed 128 bytes.
779 },
780 ],
781 },
782 &quot;score&quot;: 3.14, # A confidence level on the match, ranging from 0 (no confidence) to
783 # 1 (full confidence).
784 },
785 ],
786 },
787 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # If set, represents the error message for the operation.
788 # Note that filled-in image annotations are guaranteed to be
789 # correct, even when `error` is set.
790 # different programming environments, including REST APIs and RPC APIs. It is
791 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
792 # three pieces of data: error code, error message, and error details.
793 #
794 # You can find out more about this error model and how to work with it in the
795 # [API Design Guide](https://cloud.google.com/apis/design/errors).
796 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
797 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
798 # user-facing error message should be localized and sent in the
799 # google.rpc.Status.details field, or localized by the client.
800 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
801 # message types for APIs to use.
802 {
803 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
804 },
805 ],
806 },
807 &quot;fullTextAnnotation&quot;: { # TextAnnotation contains a structured representation of OCR extracted text. # If present, text (OCR) detection or document (OCR) text detection has
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700808 # completed successfully.
809 # This annotation provides the structural hierarchy for the OCR detected
810 # text.
811 # The hierarchy of an OCR extracted text structure is like this:
Dan O'Mearadd494642020-05-01 07:42:23 -0700812 # TextAnnotation -&gt; Page -&gt; Block -&gt; Paragraph -&gt; Word -&gt; Symbol
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700813 # Each structural component, starting from Page, may further have their own
814 # properties. Properties describe detected languages, breaks etc.. Please refer
815 # to the TextAnnotation.TextProperty message definition below for more
816 # detail.
Bu Sun Kim65020912020-05-20 12:08:20 -0700817 &quot;pages&quot;: [ # List of pages detected by OCR.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700818 { # Detected page from OCR.
Bu Sun Kim65020912020-05-20 12:08:20 -0700819 &quot;width&quot;: 42, # Page width. For PDFs the unit is points. For images (including
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700820 # TIFFs) the unit is pixels.
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 &quot;blocks&quot;: [ # List of blocks of text, images etc on this page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700822 { # Logical element on the page.
Bu Sun Kim65020912020-05-20 12:08:20 -0700823 &quot;property&quot;: { # Additional information detected on the structural component. # Additional information detected for the block.
824 &quot;detectedLanguages&quot;: [ # A list of detected languages together with confidence.
825 { # Detected language for a structural component.
826 &quot;languageCode&quot;: &quot;A String&quot;, # The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more
827 # information, see
828 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
829 &quot;confidence&quot;: 3.14, # Confidence of detected language. Range [0, 1].
830 },
831 ],
832 &quot;detectedBreak&quot;: { # Detected start or end of a structural component. # Detected start or end of a text segment.
833 &quot;type&quot;: &quot;A String&quot;, # Detected break type.
834 &quot;isPrefix&quot;: True or False, # True if break prepends the element.
835 },
836 },
837 &quot;blockType&quot;: &quot;A String&quot;, # Detected block type (text, image etc) for this block.
838 &quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # The bounding box for the block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700839 # The vertices are in the order of top-left, top-right, bottom-right,
840 # bottom-left. When a rotation of the bounding box is detected the rotation
841 # is represented as around the top-left corner as defined when the text is
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 # read in the &#x27;natural&#x27; orientation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700843 # For example:
844 #
845 # * when the text is horizontal it might look like:
846 #
847 # 0----1
848 # | |
849 # 3----2
850 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700851 # * when it&#x27;s rotated 180 degrees around the top-left corner it becomes:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700852 #
853 # 2----3
854 # | |
855 # 1----0
856 #
857 # and the vertex order will still be (0, 1, 2, 3).
Bu Sun Kim65020912020-05-20 12:08:20 -0700858 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700859 { # A vertex represents a 2D point in the image.
860 # NOTE: the normalized vertex coordinates are relative to the original image
861 # and range from 0 to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -0700862 &quot;y&quot;: 3.14, # Y coordinate.
863 &quot;x&quot;: 3.14, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700864 },
865 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700866 &quot;vertices&quot;: [ # The bounding polygon vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700867 { # A vertex represents a 2D point in the image.
868 # NOTE: the vertex coordinates are in the same scale as the original image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700869 &quot;y&quot;: 42, # Y coordinate.
870 &quot;x&quot;: 42, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700871 },
872 ],
873 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700874 &quot;confidence&quot;: 3.14, # Confidence of the OCR results on the block. Range [0, 1].
875 &quot;paragraphs&quot;: [ # List of paragraphs in this block (if this blocks is of type text).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700876 { # Structural unit of text representing a number of words in certain order.
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 &quot;property&quot;: { # Additional information detected on the structural component. # Additional information detected for the paragraph.
878 &quot;detectedLanguages&quot;: [ # A list of detected languages together with confidence.
879 { # Detected language for a structural component.
880 &quot;languageCode&quot;: &quot;A String&quot;, # The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more
881 # information, see
882 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
883 &quot;confidence&quot;: 3.14, # Confidence of detected language. Range [0, 1].
884 },
885 ],
886 &quot;detectedBreak&quot;: { # Detected start or end of a structural component. # Detected start or end of a text segment.
887 &quot;type&quot;: &quot;A String&quot;, # Detected break type.
888 &quot;isPrefix&quot;: True or False, # True if break prepends the element.
889 },
890 },
891 &quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # The bounding box for the paragraph.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700892 # The vertices are in the order of top-left, top-right, bottom-right,
893 # bottom-left. When a rotation of the bounding box is detected the rotation
894 # is represented as around the top-left corner as defined when the text is
Bu Sun Kim65020912020-05-20 12:08:20 -0700895 # read in the &#x27;natural&#x27; orientation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700896 # For example:
897 # * when the text is horizontal it might look like:
898 # 0----1
899 # | |
900 # 3----2
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 # * when it&#x27;s rotated 180 degrees around the top-left corner it becomes:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700902 # 2----3
903 # | |
904 # 1----0
905 # and the vertex order will still be (0, 1, 2, 3).
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700907 { # A vertex represents a 2D point in the image.
908 # NOTE: the normalized vertex coordinates are relative to the original image
909 # and range from 0 to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -0700910 &quot;y&quot;: 3.14, # Y coordinate.
911 &quot;x&quot;: 3.14, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700912 },
913 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700914 &quot;vertices&quot;: [ # The bounding polygon vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700915 { # A vertex represents a 2D point in the image.
916 # NOTE: the vertex coordinates are in the same scale as the original image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700917 &quot;y&quot;: 42, # Y coordinate.
918 &quot;x&quot;: 42, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700919 },
920 ],
921 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 &quot;confidence&quot;: 3.14, # Confidence of the OCR results for the paragraph. Range [0, 1].
923 &quot;words&quot;: [ # List of all words in this paragraph.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700924 { # A word representation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700925 &quot;property&quot;: { # Additional information detected on the structural component. # Additional information detected for the word.
926 &quot;detectedLanguages&quot;: [ # A list of detected languages together with confidence.
927 { # Detected language for a structural component.
928 &quot;languageCode&quot;: &quot;A String&quot;, # The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more
929 # information, see
930 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
931 &quot;confidence&quot;: 3.14, # Confidence of detected language. Range [0, 1].
932 },
933 ],
934 &quot;detectedBreak&quot;: { # Detected start or end of a structural component. # Detected start or end of a text segment.
935 &quot;type&quot;: &quot;A String&quot;, # Detected break type.
936 &quot;isPrefix&quot;: True or False, # True if break prepends the element.
937 },
938 },
939 &quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # The bounding box for the word.
Dan O'Mearadd494642020-05-01 07:42:23 -0700940 # The vertices are in the order of top-left, top-right, bottom-right,
941 # bottom-left. When a rotation of the bounding box is detected the rotation
942 # is represented as around the top-left corner as defined when the text is
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 # read in the &#x27;natural&#x27; orientation.
Dan O'Mearadd494642020-05-01 07:42:23 -0700944 # For example:
945 # * when the text is horizontal it might look like:
946 # 0----1
947 # | |
948 # 3----2
Bu Sun Kim65020912020-05-20 12:08:20 -0700949 # * when it&#x27;s rotated 180 degrees around the top-left corner it becomes:
Dan O'Mearadd494642020-05-01 07:42:23 -0700950 # 2----3
951 # | |
952 # 1----0
953 # and the vertex order will still be (0, 1, 2, 3).
Bu Sun Kim65020912020-05-20 12:08:20 -0700954 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
Dan O'Mearadd494642020-05-01 07:42:23 -0700955 { # A vertex represents a 2D point in the image.
956 # NOTE: the normalized vertex coordinates are relative to the original image
957 # and range from 0 to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -0700958 &quot;y&quot;: 3.14, # Y coordinate.
959 &quot;x&quot;: 3.14, # X coordinate.
Dan O'Mearadd494642020-05-01 07:42:23 -0700960 },
961 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700962 &quot;vertices&quot;: [ # The bounding polygon vertices.
Dan O'Mearadd494642020-05-01 07:42:23 -0700963 { # A vertex represents a 2D point in the image.
964 # NOTE: the vertex coordinates are in the same scale as the original image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700965 &quot;y&quot;: 42, # Y coordinate.
966 &quot;x&quot;: 42, # X coordinate.
Dan O'Mearadd494642020-05-01 07:42:23 -0700967 },
968 ],
969 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700970 &quot;confidence&quot;: 3.14, # Confidence of the OCR results for the word. Range [0, 1].
971 &quot;symbols&quot;: [ # List of symbols in the word.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700972 # The order of the symbols follows the natural reading order.
973 { # A single symbol representation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700974 &quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # The bounding box for the symbol.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700975 # The vertices are in the order of top-left, top-right, bottom-right,
976 # bottom-left. When a rotation of the bounding box is detected the rotation
977 # is represented as around the top-left corner as defined when the text is
Bu Sun Kim65020912020-05-20 12:08:20 -0700978 # read in the &#x27;natural&#x27; orientation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700979 # For example:
980 # * when the text is horizontal it might look like:
981 # 0----1
982 # | |
983 # 3----2
Bu Sun Kim65020912020-05-20 12:08:20 -0700984 # * when it&#x27;s rotated 180 degrees around the top-left corner it becomes:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700985 # 2----3
986 # | |
987 # 1----0
Dan O'Mearadd494642020-05-01 07:42:23 -0700988 # and the vertex order will still be (0, 1, 2, 3).
Bu Sun Kim65020912020-05-20 12:08:20 -0700989 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700990 { # A vertex represents a 2D point in the image.
991 # NOTE: the normalized vertex coordinates are relative to the original image
992 # and range from 0 to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -0700993 &quot;y&quot;: 3.14, # Y coordinate.
994 &quot;x&quot;: 3.14, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700995 },
996 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700997 &quot;vertices&quot;: [ # The bounding polygon vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700998 { # A vertex represents a 2D point in the image.
999 # NOTE: the vertex coordinates are in the same scale as the original image.
Bu Sun Kim65020912020-05-20 12:08:20 -07001000 &quot;y&quot;: 42, # Y coordinate.
1001 &quot;x&quot;: 42, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001002 },
1003 ],
1004 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 &quot;confidence&quot;: 3.14, # Confidence of the OCR results for the symbol. Range [0, 1].
1006 &quot;text&quot;: &quot;A String&quot;, # The actual UTF-8 representation of the symbol.
1007 &quot;property&quot;: { # Additional information detected on the structural component. # Additional information detected for the symbol.
1008 &quot;detectedLanguages&quot;: [ # A list of detected languages together with confidence.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001009 { # Detected language for a structural component.
Bu Sun Kim65020912020-05-20 12:08:20 -07001010 &quot;languageCode&quot;: &quot;A String&quot;, # The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001011 # information, see
1012 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Bu Sun Kim65020912020-05-20 12:08:20 -07001013 &quot;confidence&quot;: 3.14, # Confidence of detected language. Range [0, 1].
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001014 },
1015 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001016 &quot;detectedBreak&quot;: { # Detected start or end of a structural component. # Detected start or end of a text segment.
1017 &quot;type&quot;: &quot;A String&quot;, # Detected break type.
1018 &quot;isPrefix&quot;: True or False, # True if break prepends the element.
1019 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001020 },
1021 },
1022 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001023 },
1024 ],
1025 },
1026 ],
1027 },
1028 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001029 &quot;property&quot;: { # Additional information detected on the structural component. # Additional information detected on the page.
1030 &quot;detectedLanguages&quot;: [ # A list of detected languages together with confidence.
1031 { # Detected language for a structural component.
1032 &quot;languageCode&quot;: &quot;A String&quot;, # The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more
1033 # information, see
1034 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1035 &quot;confidence&quot;: 3.14, # Confidence of detected language. Range [0, 1].
1036 },
1037 ],
1038 &quot;detectedBreak&quot;: { # Detected start or end of a structural component. # Detected start or end of a text segment.
1039 &quot;type&quot;: &quot;A String&quot;, # Detected break type.
1040 &quot;isPrefix&quot;: True or False, # True if break prepends the element.
1041 },
1042 },
1043 &quot;confidence&quot;: 3.14, # Confidence of the OCR results on the page. Range [0, 1].
1044 &quot;height&quot;: 42, # Page height. For PDFs the unit is points. For images (including
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001045 # TIFFs) the unit is pixels.
1046 },
1047 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 &quot;text&quot;: &quot;A String&quot;, # UTF-8 text detected on the pages.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001049 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001050 &quot;textAnnotations&quot;: [ # If present, text (OCR) detection has completed successfully.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001051 { # Set of detected entity features.
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 &quot;properties&quot;: [ # Some entities may have optional user-supplied `Property` (name/value)
1053 # fields, such a score or string that qualifies the entity.
1054 { # A `Property` consists of a user-supplied name/value pair.
1055 &quot;uint64Value&quot;: &quot;A String&quot;, # Value of numeric properties.
1056 &quot;name&quot;: &quot;A String&quot;, # Name of the property.
1057 &quot;value&quot;: &quot;A String&quot;, # Value of the property.
1058 },
1059 ],
1060 &quot;score&quot;: 3.14, # Overall score of the result. Range [0, 1].
1061 &quot;locations&quot;: [ # The location information for the detected entity. Multiple
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001062 # `LocationInfo` elements can be present because one location may
1063 # indicate the location of the scene in the image, and another location
1064 # may indicate the location of the place where the image was taken.
1065 # Location information is usually present for landmarks.
1066 { # Detected entity location information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001067 &quot;latLng&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # lat/long location coordinates.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001068 # of doubles representing degrees latitude and degrees longitude. Unless
1069 # specified otherwise, this must conform to the
Bu Sun Kim65020912020-05-20 12:08:20 -07001070 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
Dan O'Mearadd494642020-05-01 07:42:23 -07001071 # standard&lt;/a&gt;. Values must be within normalized ranges.
Bu Sun Kim65020912020-05-20 12:08:20 -07001072 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1073 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001074 },
1075 },
1076 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001077 &quot;mid&quot;: &quot;A String&quot;, # Opaque entity ID. Some IDs may be available in
1078 # [Google Knowledge Graph Search
1079 # API](https://developers.google.com/knowledge-graph/).
1080 &quot;confidence&quot;: 3.14, # **Deprecated. Use `score` instead.**
1081 # The accuracy of the entity detection in an image.
1082 # For example, for an image in which the &quot;Eiffel Tower&quot; entity is detected,
1083 # this field represents the confidence that there is a tower in the query
1084 # image. Range [0, 1].
1085 &quot;locale&quot;: &quot;A String&quot;, # The language code for the locale in which the entity textual
1086 # `description` is expressed.
1087 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # Image region to which this entity belongs. Not produced
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001088 # for `LABEL_DETECTION` features.
Bu Sun Kim65020912020-05-20 12:08:20 -07001089 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001090 { # A vertex represents a 2D point in the image.
1091 # NOTE: the normalized vertex coordinates are relative to the original image
1092 # and range from 0 to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -07001093 &quot;y&quot;: 3.14, # Y coordinate.
1094 &quot;x&quot;: 3.14, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001095 },
1096 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001097 &quot;vertices&quot;: [ # The bounding polygon vertices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001098 { # A vertex represents a 2D point in the image.
1099 # NOTE: the vertex coordinates are in the same scale as the original image.
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 &quot;y&quot;: 42, # Y coordinate.
1101 &quot;x&quot;: 42, # X coordinate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001102 },
1103 ],
1104 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001105 &quot;description&quot;: &quot;A String&quot;, # Entity textual description, expressed in its `locale` language.
1106 &quot;topicality&quot;: 3.14, # The relevancy of the ICA (Image Content Annotation) label to the
1107 # image. For example, the relevancy of &quot;tower&quot; is likely higher to an image
1108 # containing the detected &quot;Eiffel Tower&quot; than to an image containing a
1109 # detected distant towering building, even though the confidence that
1110 # there is a tower in each image may be the same. Range [0, 1].
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001111 },
1112 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001113 &quot;imagePropertiesAnnotation&quot;: { # Stores image properties, such as dominant colors. # If present, image properties were extracted successfully.
1114 &quot;dominantColors&quot;: { # Set of dominant colors and their corresponding scores. # If present, dominant colors completed successfully.
1115 &quot;colors&quot;: [ # RGB color values with their score and pixel fraction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001116 { # Color information consists of RGB channels, score, and the fraction of
1117 # the image that the color occupies in the image.
Bu Sun Kim65020912020-05-20 12:08:20 -07001118 &quot;pixelFraction&quot;: 3.14, # The fraction of pixels the color occupies in the image.
1119 # Value in range [0, 1].
1120 &quot;color&quot;: { # Represents a color in the RGBA color space. This representation is designed # RGB components of the color.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001121 # for simplicity of conversion to/from color representations in various
1122 # languages over compactness; for example, the fields of this representation
Bu Sun Kim65020912020-05-20 12:08:20 -07001123 # can be trivially provided to the constructor of &quot;java.awt.Color&quot; in Java; it
1124 # can also be trivially provided to UIColor&#x27;s &quot;+colorWithRed:green:blue:alpha&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001125 # method in iOS; and, with just a little work, it can be easily formatted into
Bu Sun Kim65020912020-05-20 12:08:20 -07001126 # a CSS &quot;rgba()&quot; string in JavaScript, as well.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001127 #
1128 # Note: this proto does not carry information about the absolute color space
1129 # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
1130 # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
1131 # space.
1132 #
1133 # Example (Java):
1134 #
1135 # import com.google.type.Color;
1136 #
1137 # // ...
1138 # public static java.awt.Color fromProto(Color protocolor) {
1139 # float alpha = protocolor.hasAlpha()
1140 # ? protocolor.getAlpha().getValue()
1141 # : 1.0;
1142 #
1143 # return new java.awt.Color(
1144 # protocolor.getRed(),
1145 # protocolor.getGreen(),
1146 # protocolor.getBlue(),
1147 # alpha);
1148 # }
1149 #
1150 # public static Color toProto(java.awt.Color color) {
1151 # float red = (float) color.getRed();
1152 # float green = (float) color.getGreen();
1153 # float blue = (float) color.getBlue();
1154 # float denominator = 255.0;
1155 # Color.Builder resultBuilder =
1156 # Color
1157 # .newBuilder()
1158 # .setRed(red / denominator)
1159 # .setGreen(green / denominator)
1160 # .setBlue(blue / denominator);
1161 # int alpha = color.getAlpha();
1162 # if (alpha != 255) {
1163 # result.setAlpha(
1164 # FloatValue
1165 # .newBuilder()
1166 # .setValue(((float) alpha) / denominator)
1167 # .build());
1168 # }
1169 # return resultBuilder.build();
1170 # }
1171 # // ...
1172 #
1173 # Example (iOS / Obj-C):
1174 #
1175 # // ...
1176 # static UIColor* fromProto(Color* protocolor) {
1177 # float red = [protocolor red];
1178 # float green = [protocolor green];
1179 # float blue = [protocolor blue];
1180 # FloatValue* alpha_wrapper = [protocolor alpha];
1181 # float alpha = 1.0;
1182 # if (alpha_wrapper != nil) {
1183 # alpha = [alpha_wrapper value];
1184 # }
1185 # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
1186 # }
1187 #
1188 # static Color* toProto(UIColor* color) {
1189 # CGFloat red, green, blue, alpha;
Dan O'Mearadd494642020-05-01 07:42:23 -07001190 # if (![color getRed:&amp;red green:&amp;green blue:&amp;blue alpha:&amp;alpha]) {
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001191 # return nil;
1192 # }
1193 # Color* result = [[Color alloc] init];
1194 # [result setRed:red];
1195 # [result setGreen:green];
1196 # [result setBlue:blue];
Dan O'Mearadd494642020-05-01 07:42:23 -07001197 # if (alpha &lt;= 0.9999) {
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001198 # [result setAlpha:floatWrapperWithValue(alpha)];
1199 # }
1200 # [result autorelease];
1201 # return result;
1202 # }
1203 # // ...
1204 #
1205 # Example (JavaScript):
1206 #
1207 # // ...
1208 #
1209 # var protoToCssColor = function(rgb_color) {
1210 # var redFrac = rgb_color.red || 0.0;
1211 # var greenFrac = rgb_color.green || 0.0;
1212 # var blueFrac = rgb_color.blue || 0.0;
1213 # var red = Math.floor(redFrac * 255);
1214 # var green = Math.floor(greenFrac * 255);
1215 # var blue = Math.floor(blueFrac * 255);
1216 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001217 # if (!(&#x27;alpha&#x27; in rgb_color)) {
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001218 # return rgbToCssColor_(red, green, blue);
1219 # }
1220 #
1221 # var alphaFrac = rgb_color.alpha.value || 0.0;
Bu Sun Kim65020912020-05-20 12:08:20 -07001222 # var rgbParams = [red, green, blue].join(&#x27;,&#x27;);
1223 # return [&#x27;rgba(&#x27;, rgbParams, &#x27;,&#x27;, alphaFrac, &#x27;)&#x27;].join(&#x27;&#x27;);
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001224 # };
1225 #
1226 # var rgbToCssColor_ = function(red, green, blue) {
Dan O'Mearadd494642020-05-01 07:42:23 -07001227 # var rgbNumber = new Number((red &lt;&lt; 16) | (green &lt;&lt; 8) | blue);
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001228 # var hexString = rgbNumber.toString(16);
1229 # var missingZeros = 6 - hexString.length;
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 # var resultBuilder = [&#x27;#&#x27;];
Dan O'Mearadd494642020-05-01 07:42:23 -07001231 # for (var i = 0; i &lt; missingZeros; i++) {
Bu Sun Kim65020912020-05-20 12:08:20 -07001232 # resultBuilder.push(&#x27;0&#x27;);
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001233 # }
1234 # resultBuilder.push(hexString);
Bu Sun Kim65020912020-05-20 12:08:20 -07001235 # return resultBuilder.join(&#x27;&#x27;);
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001236 # };
1237 #
1238 # // ...
Bu Sun Kim65020912020-05-20 12:08:20 -07001239 &quot;red&quot;: 3.14, # The amount of red in the color as a value in the interval [0, 1].
1240 &quot;green&quot;: 3.14, # The amount of green in the color as a value in the interval [0, 1].
1241 &quot;blue&quot;: 3.14, # The amount of blue in the color as a value in the interval [0, 1].
1242 &quot;alpha&quot;: 3.14, # The fraction of this color that should be applied to the pixel. That is,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001243 # the final pixel color is defined by the equation:
1244 #
1245 # pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
1246 #
1247 # This means that a value of 1.0 corresponds to a solid color, whereas
1248 # a value of 0.0 corresponds to a completely transparent color. This
1249 # uses a wrapper message rather than a simple float scalar so that it is
1250 # possible to distinguish between a default value and the value being unset.
1251 # If omitted, this color object is to be rendered as a solid color
1252 # (as if the alpha value had been explicitly given with a value of 1.0).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001253 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001254 &quot;score&quot;: 3.14, # Image-specific score for this color. Value in range [0, 1].
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001255 },
1256 ],
1257 },
1258 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001259 },
1260 ],
1261 }</pre>
1262</div>
1263
1264<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001265 <code class="details" id="asyncBatchAnnotate">asyncBatchAnnotate(body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001266 <pre>Run asynchronous image detection and annotation for a list of images.
1267
1268Progress and results can be retrieved through the
1269`google.longrunning.Operations` interface.
1270`Operation.metadata` contains `OperationMetadata` (metadata).
1271`Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
1272
1273This service will write image annotation outputs to json files in customer
1274GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
1275
1276Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001277 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001278 The object takes the form of:
1279
1280{ # Request for async image annotation for a list of images.
Bu Sun Kim65020912020-05-20 12:08:20 -07001281 &quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call.
1282 #
1283 # Format: `projects/{project-id}/locations/{location-id}`.
1284 #
1285 # If no parent is specified, a region will be chosen automatically.
1286 #
1287 # Supported location-ids:
1288 # `us`: USA country only,
1289 # `asia`: East asia areas, like Japan, Taiwan,
1290 # `eu`: The European Union.
1291 #
1292 # Example: `projects/project-A/locations/eu`.
1293 &quot;outputConfig&quot;: { # The desired output location and metadata. # Required. The desired output location and metadata (e.g. format).
1294 &quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output will be written to. # The Google Cloud Storage location to write the output(s) to.
1295 &quot;uri&quot;: &quot;A String&quot;, # Google Cloud Storage URI prefix where the results will be stored. Results
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001296 # will be in JSON format and preceded by its corresponding input URI prefix.
1297 # This field can either represent a gcs file prefix or gcs directory. In
1298 # either case, the uri should be unique because in order to get all of the
1299 # output files, you will need to do a wildcard gcs search on the uri prefix
1300 # you provide.
1301 #
1302 # Examples:
1303 #
1304 # * File Prefix: gs://bucket-name/here/filenameprefix The output files
1305 # will be created in gs://bucket-name/here/ and the names of the
Bu Sun Kim65020912020-05-20 12:08:20 -07001306 # output files will begin with &quot;filenameprefix&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001307 #
1308 # * Directory Prefix: gs://bucket-name/some/location/ The output files
1309 # will be created in gs://bucket-name/some/location/ and the names of the
1310 # output files could be anything because there was no filename prefix
1311 # specified.
1312 #
1313 # If multiple outputs, each response is still AnnotateFileResponse, each of
1314 # which contains some subset of the full list of AnnotateImageResponse.
1315 # Multiple outputs can happen if, for example, the output JSON is too large
1316 # and overflows into multiple sharded files.
1317 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 &quot;batchSize&quot;: 42, # The max number of response protos to put into each output JSON file on
1319 # Google Cloud Storage.
1320 # The valid range is [1, 100]. If not specified, the default value is 20.
1321 #
1322 # For example, for one pdf file with 100 pages, 100 response protos will
1323 # be generated. If `batch_size` = 20, then 5 json files each
1324 # containing 20 response protos will be written under the prefix
1325 # `gcs_destination`.`uri`.
1326 #
1327 # Currently, batch_size only applies to GcsDestination, with potential future
1328 # support for other output configurations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001329 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001330 &quot;requests&quot;: [ # Required. Individual image annotation requests for this batch.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001331 { # Request for performing Google Cloud Vision API tasks over a user-provided
1332 # image, with user-requested features, and with context information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001333 &quot;image&quot;: { # Client image to perform Google Cloud Vision API tasks over. # The image to be processed.
1334 &quot;content&quot;: &quot;A String&quot;, # Image content, represented as a stream of bytes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001335 # Note: As with all `bytes` fields, protobuffers use a pure binary
1336 # representation, whereas JSON representations use base64.
Bu Sun Kim65020912020-05-20 12:08:20 -07001337 &quot;source&quot;: { # External image source (Google Cloud Storage or web URL image location). # Google Cloud Storage image location, or publicly-accessible image
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001338 # URL. If both `content` and `source` are provided for an image, `content`
1339 # takes precedence and is used to perform the image annotation request.
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 &quot;imageUri&quot;: &quot;A String&quot;, # The URI of the source image. Can be either:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001341 #
1342 # 1. A Google Cloud Storage URI of the form
1343 # `gs://bucket_name/object_name`. Object versioning is not supported. See
1344 # [Google Cloud Storage Request
1345 # URIs](https://cloud.google.com/storage/docs/reference-uris) for more
1346 # info.
1347 #
1348 # 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
1349 # HTTP/HTTPS URLs, Google cannot guarantee that the request will be
1350 # completed. Your request may fail if the specified host denies the
1351 # request (e.g. due to request throttling or DOS prevention), or if Google
1352 # throttles requests to the site for abuse prevention. You should not
1353 # depend on externally-hosted images for production applications.
1354 #
1355 # When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
1356 # precedence.
Bu Sun Kim65020912020-05-20 12:08:20 -07001357 &quot;gcsImageUri&quot;: &quot;A String&quot;, # **Use `image_uri` instead.**
1358 #
1359 # The Google Cloud Storage URI of the form
1360 # `gs://bucket_name/object_name`. Object versioning is not supported. See
1361 # [Google Cloud Storage Request
1362 # URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001363 },
1364 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001365 &quot;features&quot;: [ # Requested features.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001366 { # The type of Google Cloud Vision API detection to perform, and the maximum
1367 # number of results to return for that type. Multiple `Feature` objects can
1368 # be specified in the `features` list.
Bu Sun Kim65020912020-05-20 12:08:20 -07001369 &quot;type&quot;: &quot;A String&quot;, # The feature type.
1370 &quot;maxResults&quot;: 42, # Maximum number of results of this type. Does not apply to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001371 # `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001372 &quot;model&quot;: &quot;A String&quot;, # Model to use for the feature.
1373 # Supported values: &quot;builtin/stable&quot; (the default if unset) and
1374 # &quot;builtin/latest&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001375 },
1376 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 &quot;imageContext&quot;: { # Image context and/or feature-specific parameters. # Additional context that may accompany the image.
1378 &quot;languageHints&quot;: [ # List of languages to use for TEXT_DETECTION. In most cases, an empty value
1379 # yields the best results since it enables automatic language detection. For
1380 # languages based on the Latin alphabet, setting `language_hints` is not
1381 # needed. In rare cases, when the language of the text in the image is known,
1382 # setting a hint will help get better results (although it will be a
1383 # significant hindrance if the hint is wrong). Text detection returns an
1384 # error if one or more of the specified languages is not one of the
1385 # [supported languages](https://cloud.google.com/vision/docs/languages).
1386 &quot;A String&quot;,
1387 ],
1388 &quot;webDetectionParams&quot;: { # Parameters for web detection request. # Parameters for web detection.
1389 &quot;includeGeoResults&quot;: True or False, # Whether to include results derived from the geo information in the image.
1390 },
1391 &quot;latLongRect&quot;: { # Rectangle determined by min and max `LatLng` pairs. # Not used.
1392 &quot;minLatLng&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # Min lat/long pair.
1393 # of doubles representing degrees latitude and degrees longitude. Unless
1394 # specified otherwise, this must conform to the
1395 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
1396 # standard&lt;/a&gt;. Values must be within normalized ranges.
1397 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1398 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1399 },
1400 &quot;maxLatLng&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # Max lat/long pair.
1401 # of doubles representing degrees latitude and degrees longitude. Unless
1402 # specified otherwise, this must conform to the
1403 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
1404 # standard&lt;/a&gt;. Values must be within normalized ranges.
1405 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1406 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1407 },
1408 },
1409 &quot;cropHintsParams&quot;: { # Parameters for crop hints annotation request. # Parameters for crop hints annotation request.
1410 &quot;aspectRatios&quot;: [ # Aspect ratios in floats, representing the ratio of the width to the height
1411 # of the image. For example, if the desired aspect ratio is 4/3, the
1412 # corresponding float value should be 1.33333. If not specified, the
1413 # best possible crop is returned. The number of provided aspect ratios is
1414 # limited to a maximum of 16; any aspect ratios provided after the 16th are
1415 # ignored.
1416 3.14,
1417 ],
1418 },
1419 &quot;productSearchParams&quot;: { # Parameters for a product search request. # Parameters for product search.
1420 &quot;productSet&quot;: &quot;A String&quot;, # The resource name of a ProductSet to be searched for similar images.
1421 #
1422 # Format is:
1423 # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
1424 &quot;boundingPoly&quot;: { # A bounding polygon for the detected image annotation. # The bounding polygon around the area of interest in the image.
1425 # If it is not specified, system discretion will be applied.
1426 &quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
1427 { # A vertex represents a 2D point in the image.
1428 # NOTE: the normalized vertex coordinates are relative to the original image
1429 # and range from 0 to 1.
1430 &quot;y&quot;: 3.14, # Y coordinate.
1431 &quot;x&quot;: 3.14, # X coordinate.
1432 },
1433 ],
1434 &quot;vertices&quot;: [ # The bounding polygon vertices.
1435 { # A vertex represents a 2D point in the image.
1436 # NOTE: the vertex coordinates are in the same scale as the original image.
1437 &quot;y&quot;: 42, # Y coordinate.
1438 &quot;x&quot;: 42, # X coordinate.
1439 },
1440 ],
1441 },
1442 &quot;productCategories&quot;: [ # The list of product categories to search in. Currently, we only consider
1443 # the first category, and either &quot;homegoods-v2&quot;, &quot;apparel-v2&quot;, &quot;toys-v2&quot;,
1444 # &quot;packagedgoods-v1&quot;, or &quot;general-v1&quot; should be specified. The legacy
1445 # categories &quot;homegoods&quot;, &quot;apparel&quot;, and &quot;toys&quot; are still supported but will
1446 # be deprecated. For new products, please use &quot;homegoods-v2&quot;, &quot;apparel-v2&quot;,
1447 # or &quot;toys-v2&quot; for better product search accuracy. It is recommended to
1448 # migrate existing products to these categories as well.
1449 &quot;A String&quot;,
1450 ],
1451 &quot;filter&quot;: &quot;A String&quot;, # The filtering expression. This can be used to restrict search results based
1452 # on Product labels. We currently support an AND of OR of key-value
1453 # expressions, where each expression within an OR must have the same key. An
1454 # &#x27;=&#x27; should be used to connect the key and value.
1455 #
1456 # For example, &quot;(color = red OR color = blue) AND brand = Google&quot; is
1457 # acceptable, but &quot;(color = red OR brand = Google)&quot; is not acceptable.
1458 # &quot;color: red&quot; is not acceptable because it uses a &#x27;:&#x27; instead of an &#x27;=&#x27;.
1459 },
1460 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001461 },
1462 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001463 }
1464
1465 x__xgafv: string, V1 error format.
1466 Allowed values
1467 1 - v1 error format
1468 2 - v2 error format
1469
1470Returns:
1471 An object of the form:
1472
1473 { # This resource represents a long-running operation that is the result of a
1474 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001475 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001476 # different programming environments, including REST APIs and RPC APIs. It is
1477 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1478 # three pieces of data: error code, error message, and error details.
1479 #
1480 # You can find out more about this error model and how to work with it in the
1481 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07001482 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1483 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001484 # user-facing error message should be localized and sent in the
1485 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07001486 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001487 # message types for APIs to use.
1488 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001489 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001490 },
1491 ],
1492 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001493 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1494 # contains progress information and common metadata such as create time.
1495 # Some services might not provide such metadata. Any method that returns a
1496 # long-running operation should document the metadata type, if any.
1497 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1498 },
1499 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001500 # If `true`, the operation is completed, and either `error` or `response` is
1501 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001502 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001503 # method returns no data on success, such as `Delete`, the response is
1504 # `google.protobuf.Empty`. If the original method is standard
1505 # `Get`/`Create`/`Update`, the response should be the resource. For other
1506 # methods, the response should have the type `XxxResponse`, where `Xxx`
1507 # is the original method name. For example, if the original method name
1508 # is `TakeSnapshot()`, the inferred response type is
1509 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001510 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001511 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001512 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001513 # originally returns it. If you use the default HTTP mapping, the
1514 # `name` should be a resource name ending with `operations/{unique_id}`.
1515 }</pre>
1516</div>
1517
1518</body></html>