OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
11 "basePath": "", | 11 "basePath": "", |
12 "baseUrl": "https://vision.googleapis.com/", | 12 "baseUrl": "https://vision.googleapis.com/", |
13 "batchPath": "batch", | 13 "batchPath": "batch", |
14 "canonicalName": "Vision", | 14 "canonicalName": "Vision", |
15 "description": "Integrates Google Vision features, including image labeling,
face, logo, and landmark detection, optical character recognition (OCR), and de
tection of explicit content, into applications.", | 15 "description": "Integrates Google Vision features, including image labeling,
face, logo, and landmark detection, optical character recognition (OCR), and de
tection of explicit content, into applications.", |
16 "discoveryVersion": "v1", | 16 "discoveryVersion": "v1", |
17 "documentationLink": "https://cloud.google.com/vision/", | 17 "documentationLink": "https://cloud.google.com/vision/", |
18 "icons": { | 18 "icons": { |
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
21 }, | 21 }, |
22 "id": "vision:v1", | 22 "id": "vision:v1", |
23 "kind": "discovery#restDescription", | 23 "kind": "discovery#restDescription", |
24 "name": "vision", | 24 "name": "vision", |
25 "ownerDomain": "google.com", | 25 "ownerDomain": "google.com", |
26 "ownerName": "Google", | 26 "ownerName": "Google", |
27 "parameters": { | 27 "parameters": { |
28 "upload_protocol": { | |
29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
30 "location": "query", | |
31 "type": "string" | |
32 }, | |
33 "prettyPrint": { | 28 "prettyPrint": { |
34 "default": "true", | 29 "default": "true", |
35 "description": "Returns response with indentations and line breaks."
, | 30 "description": "Returns response with indentations and line breaks."
, |
36 "location": "query", | 31 "location": "query", |
37 "type": "boolean" | 32 "type": "boolean" |
38 }, | 33 }, |
39 "fields": { | 34 "fields": { |
40 "description": "Selector specifying which fields to include in a par
tial response.", | 35 "description": "Selector specifying which fields to include in a par
tial response.", |
41 "location": "query", | 36 "location": "query", |
42 "type": "string" | 37 "type": "string" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 }, | 98 }, |
104 "bearer_token": { | 99 "bearer_token": { |
105 "description": "OAuth bearer token.", | 100 "description": "OAuth bearer token.", |
106 "location": "query", | 101 "location": "query", |
107 "type": "string" | 102 "type": "string" |
108 }, | 103 }, |
109 "oauth_token": { | 104 "oauth_token": { |
110 "description": "OAuth 2.0 token for the current user.", | 105 "description": "OAuth 2.0 token for the current user.", |
111 "location": "query", | 106 "location": "query", |
112 "type": "string" | 107 "type": "string" |
| 108 }, |
| 109 "upload_protocol": { |
| 110 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 111 "location": "query", |
| 112 "type": "string" |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "images": { | 117 "images": { |
118 "methods": { | 118 "methods": { |
119 "annotate": { | 119 "annotate": { |
120 "description": "Run image detection and annotation for a bat
ch of images.", | 120 "description": "Run image detection and annotation for a bat
ch of images.", |
121 "httpMethod": "POST", | 121 "httpMethod": "POST", |
122 "id": "vision.images.annotate", | 122 "id": "vision.images.annotate", |
123 "parameterOrder": [], | 123 "parameterOrder": [], |
124 "parameters": {}, | 124 "parameters": {}, |
125 "path": "v1/images:annotate", | 125 "path": "v1/images:annotate", |
126 "request": { | 126 "request": { |
127 "$ref": "BatchAnnotateImagesRequest" | 127 "$ref": "BatchAnnotateImagesRequest" |
128 }, | 128 }, |
129 "response": { | 129 "response": { |
130 "$ref": "BatchAnnotateImagesResponse" | 130 "$ref": "BatchAnnotateImagesResponse" |
131 }, | 131 }, |
132 "scopes": [ | 132 "scopes": [ |
133 "https://www.googleapis.com/auth/cloud-platform" | 133 "https://www.googleapis.com/auth/cloud-platform" |
134 ] | 134 ] |
135 } | 135 } |
136 } | 136 } |
137 } | 137 } |
138 }, | 138 }, |
139 "revision": "20170321", | 139 "revision": "20170411", |
140 "rootUrl": "https://vision.googleapis.com/", | 140 "rootUrl": "https://vision.googleapis.com/", |
141 "schemas": { | 141 "schemas": { |
142 "CropHintsParams": { | 142 "CropHintsParams": { |
143 "description": "Parameters for crop hints annotation request.", | 143 "description": "Parameters for crop hints annotation request.", |
144 "id": "CropHintsParams", | 144 "id": "CropHintsParams", |
145 "properties": { | 145 "properties": { |
146 "aspectRatios": { | 146 "aspectRatios": { |
147 "description": "Aspect ratios in floats, representing the ra
tio of the width to the height\nof the image. For example, if the desired aspect
ratio is 4/3, the\ncorresponding float value should be 1.33333. If not specifi
ed, the\nbest possible crop is returned. The number of provided aspect ratios is
\nlimited to a maximum of 16; any aspect ratios provided after the 16th are\nign
ored.", | 147 "description": "Aspect ratios in floats, representing the ra
tio of the width to the height\nof the image. For example, if the desired aspect
ratio is 4/3, the\ncorresponding float value should be 1.33333. If not specifi
ed, the\nbest possible crop is returned. The number of provided aspect ratios is
\nlimited to a maximum of 16; any aspect ratios provided after the 16th are\nign
ored.", |
148 "items": { | 148 "items": { |
149 "format": "float", | 149 "format": "float", |
150 "type": "number" | 150 "type": "number" |
151 }, | 151 }, |
152 "type": "array" | 152 "type": "array" |
153 } | 153 } |
154 }, | 154 }, |
155 "type": "object" | 155 "type": "object" |
156 }, | 156 }, |
157 "Block": { | 157 "Block": { |
158 "description": "Logical element on the page.", | 158 "description": "Logical element on the page.", |
159 "id": "Block", | 159 "id": "Block", |
160 "properties": { | 160 "properties": { |
161 "boundingBox": { | |
162 "$ref": "BoundingPoly", | |
163 "description": "The bounding box for the block.\nThe vertice
s are in the order of top-left, top-right, bottom-right,\nbottom-left. When a ro
tation of the bounding box is detected the rotation\nis represented as around th
e top-left corner as defined when the text is\nread in the 'natural' orientation
.\nFor example:\n * when the text is horizontal it might look like:\n 0----
1\n | |\n 3----2\n * when it's rotated 180 degrees around the top-le
ft corner it becomes:\n 2----3\n | |\n 1----0\n and the vertice
order will still be (0, 1, 2, 3)." | |
164 }, | |
165 "paragraphs": { | |
166 "description": "List of paragraphs in this block (if this bl
ocks is of type text).", | |
167 "items": { | |
168 "$ref": "Paragraph" | |
169 }, | |
170 "type": "array" | |
171 }, | |
172 "property": { | 161 "property": { |
173 "$ref": "TextProperty", | 162 "$ref": "TextProperty", |
174 "description": "Additional information detected for the bloc
k." | 163 "description": "Additional information detected for the bloc
k." |
175 }, | 164 }, |
176 "blockType": { | 165 "blockType": { |
177 "description": "Detected block type (text, image etc) for th
is block.", | 166 "description": "Detected block type (text, image etc) for th
is block.", |
178 "enum": [ | 167 "enum": [ |
179 "UNKNOWN", | 168 "UNKNOWN", |
180 "TEXT", | 169 "TEXT", |
181 "TABLE", | 170 "TABLE", |
182 "PICTURE", | 171 "PICTURE", |
183 "RULER", | 172 "RULER", |
184 "BARCODE" | 173 "BARCODE" |
185 ], | 174 ], |
186 "enumDescriptions": [ | 175 "enumDescriptions": [ |
187 "Unknown block type.", | 176 "Unknown block type.", |
188 "Regular text block.", | 177 "Regular text block.", |
189 "Table block.", | 178 "Table block.", |
190 "Image block.", | 179 "Image block.", |
191 "Horizontal/vertical line box.", | 180 "Horizontal/vertical line box.", |
192 "Barcode block." | 181 "Barcode block." |
193 ], | 182 ], |
194 "type": "string" | 183 "type": "string" |
| 184 }, |
| 185 "boundingBox": { |
| 186 "$ref": "BoundingPoly", |
| 187 "description": "The bounding box for the block.\nThe vertice
s are in the order of top-left, top-right, bottom-right,\nbottom-left. When a ro
tation of the bounding box is detected the rotation\nis represented as around th
e top-left corner as defined when the text is\nread in the 'natural' orientation
.\nFor example:\n * when the text is horizontal it might look like:\n 0----
1\n | |\n 3----2\n * when it's rotated 180 degrees around the top-le
ft corner it becomes:\n 2----3\n | |\n 1----0\n and the vertice
order will still be (0, 1, 2, 3)." |
| 188 }, |
| 189 "paragraphs": { |
| 190 "description": "List of paragraphs in this block (if this bl
ocks is of type text).", |
| 191 "items": { |
| 192 "$ref": "Paragraph" |
| 193 }, |
| 194 "type": "array" |
195 } | 195 } |
196 }, | 196 }, |
197 "type": "object" | 197 "type": "object" |
198 }, | 198 }, |
199 "Property": { | 199 "Property": { |
200 "description": "A `Property` consists of a user-supplied name/value
pair.", | 200 "description": "A `Property` consists of a user-supplied name/value
pair.", |
201 "id": "Property", | 201 "id": "Property", |
202 "properties": { | 202 "properties": { |
203 "value": { | 203 "value": { |
204 "description": "Value of the property.", | 204 "description": "Value of the property.", |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 "type": "number" | 313 "type": "number" |
314 }, | 314 }, |
315 "z": { | 315 "z": { |
316 "description": "Z coordinate (or depth).", | 316 "description": "Z coordinate (or depth).", |
317 "format": "float", | 317 "format": "float", |
318 "type": "number" | 318 "type": "number" |
319 } | 319 } |
320 }, | 320 }, |
321 "type": "object" | 321 "type": "object" |
322 }, | 322 }, |
323 "WebPage": { | |
324 "description": "Metadata for web pages.", | |
325 "id": "WebPage", | |
326 "properties": { | |
327 "score": { | |
328 "description": "Overall relevancy score for the web page.\nN
ot normalized and not comparable across different image queries.", | |
329 "format": "float", | |
330 "type": "number" | |
331 }, | |
332 "url": { | |
333 "description": "The result web page URL.", | |
334 "type": "string" | |
335 } | |
336 }, | |
337 "type": "object" | |
338 }, | |
339 "ColorInfo": { | 323 "ColorInfo": { |
340 "description": "Color information consists of RGB channels, score, a
nd the fraction of\nthe image that the color occupies in the image.", | 324 "description": "Color information consists of RGB channels, score, a
nd the fraction of\nthe image that the color occupies in the image.", |
341 "id": "ColorInfo", | 325 "id": "ColorInfo", |
342 "properties": { | 326 "properties": { |
| 327 "score": { |
| 328 "description": "Image-specific score for this color. Value i
n range [0, 1].", |
| 329 "format": "float", |
| 330 "type": "number" |
| 331 }, |
343 "pixelFraction": { | 332 "pixelFraction": { |
344 "description": "The fraction of pixels the color occupies in
the image.\nValue in range [0, 1].", | 333 "description": "The fraction of pixels the color occupies in
the image.\nValue in range [0, 1].", |
345 "format": "float", | 334 "format": "float", |
346 "type": "number" | 335 "type": "number" |
347 }, | 336 }, |
348 "color": { | 337 "color": { |
349 "$ref": "Color", | 338 "$ref": "Color", |
350 "description": "RGB components of the color." | 339 "description": "RGB components of the color." |
| 340 } |
| 341 }, |
| 342 "type": "object" |
| 343 }, |
| 344 "WebPage": { |
| 345 "description": "Metadata for web pages.", |
| 346 "id": "WebPage", |
| 347 "properties": { |
| 348 "url": { |
| 349 "description": "The result web page URL.", |
| 350 "type": "string" |
351 }, | 351 }, |
352 "score": { | 352 "score": { |
353 "description": "Image-specific score for this color. Value i
n range [0, 1].", | 353 "description": "Overall relevancy score for the web page.\nN
ot normalized and not comparable across different image queries.", |
354 "format": "float", | 354 "format": "float", |
355 "type": "number" | 355 "type": "number" |
356 } | 356 } |
357 }, | 357 }, |
358 "type": "object" | 358 "type": "object" |
359 }, | 359 }, |
360 "EntityAnnotation": { | 360 "EntityAnnotation": { |
361 "description": "Set of detected entity features.", | 361 "description": "Set of detected entity features.", |
362 "id": "EntityAnnotation", | 362 "id": "EntityAnnotation", |
363 "properties": { | 363 "properties": { |
| 364 "score": { |
| 365 "description": "Overall score of the result. Range [0, 1].", |
| 366 "format": "float", |
| 367 "type": "number" |
| 368 }, |
| 369 "locations": { |
| 370 "description": "The location information for the detected en
tity. Multiple\n`LocationInfo` elements can be present because one location may\
nindicate the location of the scene in the image, and another location\nmay indi
cate the location of the place where the image was taken.\nLocation information
is usually present for landmarks.", |
| 371 "items": { |
| 372 "$ref": "LocationInfo" |
| 373 }, |
| 374 "type": "array" |
| 375 }, |
| 376 "mid": { |
| 377 "description": "Opaque entity ID. Some IDs may be available
in\n[Google Knowledge Graph Search API](https://developers.google.com/knowledge-
graph/).", |
| 378 "type": "string" |
| 379 }, |
364 "confidence": { | 380 "confidence": { |
365 "description": "The accuracy of the entity detection in an i
mage.\nFor example, for an image in which the \"Eiffel Tower\" entity is detecte
d,\nthis field represents the confidence that there is a tower in the query\nima
ge. Range [0, 1].", | 381 "description": "The accuracy of the entity detection in an i
mage.\nFor example, for an image in which the \"Eiffel Tower\" entity is detecte
d,\nthis field represents the confidence that there is a tower in the query\nima
ge. Range [0, 1].", |
366 "format": "float", | 382 "format": "float", |
367 "type": "number" | 383 "type": "number" |
368 }, | 384 }, |
| 385 "boundingPoly": { |
| 386 "$ref": "BoundingPoly", |
| 387 "description": "Image region to which this entity belongs. C
urrently not produced\nfor `LABEL_DETECTION` features. For `TEXT_DETECTION` (OCR
), `boundingPoly`s\nare produced for the entire text detected in an image region
, followed by\n`boundingPoly`s for each word within the detected text." |
| 388 }, |
369 "locale": { | 389 "locale": { |
370 "description": "The language code for the locale in which th
e entity textual\n`description` is expressed.", | 390 "description": "The language code for the locale in which th
e entity textual\n`description` is expressed.", |
371 "type": "string" | 391 "type": "string" |
372 }, | 392 }, |
373 "boundingPoly": { | |
374 "$ref": "BoundingPoly", | |
375 "description": "Image region to which this entity belongs. C
urrently not produced\nfor `LABEL_DETECTION` features. For `TEXT_DETECTION` (OCR
), `boundingPoly`s\nare produced for the entire text detected in an image region
, followed by\n`boundingPoly`s for each word within the detected text." | |
376 }, | |
377 "description": { | |
378 "description": "Entity textual description, expressed in its
`locale` language.", | |
379 "type": "string" | |
380 }, | |
381 "topicality": { | 393 "topicality": { |
382 "description": "The relevancy of the ICA (Image Content Anno
tation) label to the\nimage. For example, the relevancy of \"tower\" is likely h
igher to an image\ncontaining the detected \"Eiffel Tower\" than to an image con
taining a\ndetected distant towering building, even though the confidence that\n
there is a tower in each image may be the same. Range [0, 1].", | 394 "description": "The relevancy of the ICA (Image Content Anno
tation) label to the\nimage. For example, the relevancy of \"tower\" is likely h
igher to an image\ncontaining the detected \"Eiffel Tower\" than to an image con
taining a\ndetected distant towering building, even though the confidence that\n
there is a tower in each image may be the same. Range [0, 1].", |
383 "format": "float", | 395 "format": "float", |
384 "type": "number" | 396 "type": "number" |
385 }, | 397 }, |
| 398 "description": { |
| 399 "description": "Entity textual description, expressed in its
`locale` language.", |
| 400 "type": "string" |
| 401 }, |
386 "properties": { | 402 "properties": { |
387 "description": "Some entities may have optional user-supplie
d `Property` (name/value)\nfields, such a score or string that qualifies the ent
ity.", | 403 "description": "Some entities may have optional user-supplie
d `Property` (name/value)\nfields, such a score or string that qualifies the ent
ity.", |
388 "items": { | 404 "items": { |
389 "$ref": "Property" | 405 "$ref": "Property" |
390 }, | 406 }, |
391 "type": "array" | 407 "type": "array" |
392 }, | |
393 "score": { | |
394 "description": "Overall score of the result. Range [0, 1].", | |
395 "format": "float", | |
396 "type": "number" | |
397 }, | |
398 "locations": { | |
399 "description": "The location information for the detected en
tity. Multiple\n`LocationInfo` elements can be present because one location may\
nindicate the location of the scene in the image, and another location\nmay indi
cate the location of the place where the image was taken.\nLocation information
is usually present for landmarks.", | |
400 "items": { | |
401 "$ref": "LocationInfo" | |
402 }, | |
403 "type": "array" | |
404 }, | |
405 "mid": { | |
406 "description": "Opaque entity ID. Some IDs may be available
in\n[Google Knowledge Graph Search API](https://developers.google.com/knowledge-
graph/).", | |
407 "type": "string" | |
408 } | 408 } |
409 }, | 409 }, |
410 "type": "object" | 410 "type": "object" |
411 }, | 411 }, |
412 "CropHint": { | 412 "CropHint": { |
413 "description": "Single crop hint that is used to generate a new crop
when serving an image.", | 413 "description": "Single crop hint that is used to generate a new crop
when serving an image.", |
414 "id": "CropHint", | 414 "id": "CropHint", |
415 "properties": { | 415 "properties": { |
416 "confidence": { | 416 "confidence": { |
417 "description": "Confidence of this being a salient region.
Range [0, 1].", | 417 "description": "Confidence of this being a salient region.
Range [0, 1].", |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 "description": "The result image URL.", | 532 "description": "The result image URL.", |
533 "type": "string" | 533 "type": "string" |
534 } | 534 } |
535 }, | 535 }, |
536 "type": "object" | 536 "type": "object" |
537 }, | 537 }, |
538 "Word": { | 538 "Word": { |
539 "description": "A word representation.", | 539 "description": "A word representation.", |
540 "id": "Word", | 540 "id": "Word", |
541 "properties": { | 541 "properties": { |
| 542 "symbols": { |
| 543 "description": "List of symbols in the word.\nThe order of t
he symbols follows the natural reading order.", |
| 544 "items": { |
| 545 "$ref": "Symbol" |
| 546 }, |
| 547 "type": "array" |
| 548 }, |
542 "property": { | 549 "property": { |
543 "$ref": "TextProperty", | 550 "$ref": "TextProperty", |
544 "description": "Additional information detected for the word
." | 551 "description": "Additional information detected for the word
." |
545 }, | 552 }, |
546 "boundingBox": { | 553 "boundingBox": { |
547 "$ref": "BoundingPoly", | 554 "$ref": "BoundingPoly", |
548 "description": "The bounding box for the word.\nThe vertices
are in the order of top-left, top-right, bottom-right,\nbottom-left. When a rot
ation of the bounding box is detected the rotation\nis represented as around the
top-left corner as defined when the text is\nread in the 'natural' orientation.
\nFor example:\n * when the text is horizontal it might look like:\n 0----1
\n | |\n 3----2\n * when it's rotated 180 degrees around the top-lef
t corner it becomes:\n 2----3\n | |\n 1----0\n and the vertice o
rder will still be (0, 1, 2, 3)." | 555 "description": "The bounding box for the word.\nThe vertices
are in the order of top-left, top-right, bottom-right,\nbottom-left. When a rot
ation of the bounding box is detected the rotation\nis represented as around the
top-left corner as defined when the text is\nread in the 'natural' orientation.
\nFor example:\n * when the text is horizontal it might look like:\n 0----1
\n | |\n 3----2\n * when it's rotated 180 degrees around the top-lef
t corner it becomes:\n 2----3\n | |\n 1----0\n and the vertice o
rder will still be (0, 1, 2, 3)." |
549 }, | |
550 "symbols": { | |
551 "description": "List of symbols in the word.\nThe order of t
he symbols follows the natural reading order.", | |
552 "items": { | |
553 "$ref": "Symbol" | |
554 }, | |
555 "type": "array" | |
556 } | 556 } |
557 }, | 557 }, |
558 "type": "object" | 558 "type": "object" |
| 559 }, |
| 560 "Image": { |
| 561 "description": "Client image to perform Google Cloud Vision API task
s over.", |
| 562 "id": "Image", |
| 563 "properties": { |
| 564 "content": { |
| 565 "description": "Image content, represented as a stream of by
tes.\nNote: as with all `bytes` fields, protobuffers use a pure binary\nrepresen
tation, whereas JSON representations use base64.", |
| 566 "format": "byte", |
| 567 "type": "string" |
| 568 }, |
| 569 "source": { |
| 570 "$ref": "ImageSource", |
| 571 "description": "Google Cloud Storage image location. If both
`content` and `source`\nare provided for an image, `content` takes precedence a
nd is\nused to perform the image annotation request." |
| 572 } |
| 573 }, |
| 574 "type": "object" |
559 }, | 575 }, |
560 "Paragraph": { | 576 "Paragraph": { |
561 "description": "Structural unit of text representing a number of wor
ds in certain order.", | 577 "description": "Structural unit of text representing a number of wor
ds in certain order.", |
562 "id": "Paragraph", | 578 "id": "Paragraph", |
563 "properties": { | 579 "properties": { |
564 "boundingBox": { | |
565 "$ref": "BoundingPoly", | |
566 "description": "The bounding box for the paragraph.\nThe ver
tices are in the order of top-left, top-right, bottom-right,\nbottom-left. When
a rotation of the bounding box is detected the rotation\nis represented as aroun
d the top-left corner as defined when the text is\nread in the 'natural' orienta
tion.\nFor example:\n * when the text is horizontal it might look like:\n 0
----1\n | |\n 3----2\n * when it's rotated 180 degrees around the to
p-left corner it becomes:\n 2----3\n | |\n 1----0\n and the vert
ice order will still be (0, 1, 2, 3)." | |
567 }, | |
568 "words": { | 580 "words": { |
569 "description": "List of words in this paragraph.", | 581 "description": "List of words in this paragraph.", |
570 "items": { | 582 "items": { |
571 "$ref": "Word" | 583 "$ref": "Word" |
572 }, | 584 }, |
573 "type": "array" | 585 "type": "array" |
574 }, | 586 }, |
575 "property": { | 587 "property": { |
576 "$ref": "TextProperty", | 588 "$ref": "TextProperty", |
577 "description": "Additional information detected for the para
graph." | 589 "description": "Additional information detected for the para
graph." |
| 590 }, |
| 591 "boundingBox": { |
| 592 "$ref": "BoundingPoly", |
| 593 "description": "The bounding box for the paragraph.\nThe ver
tices are in the order of top-left, top-right, bottom-right,\nbottom-left. When
a rotation of the bounding box is detected the rotation\nis represented as aroun
d the top-left corner as defined when the text is\nread in the 'natural' orienta
tion.\nFor example:\n * when the text is horizontal it might look like:\n 0
----1\n | |\n 3----2\n * when it's rotated 180 degrees around the to
p-left corner it becomes:\n 2----3\n | |\n 1----0\n and the vert
ice order will still be (0, 1, 2, 3)." |
578 } | 594 } |
579 }, | 595 }, |
580 "type": "object" | 596 "type": "object" |
581 }, | |
582 "Image": { | |
583 "description": "Client image to perform Google Cloud Vision API task
s over.", | |
584 "id": "Image", | |
585 "properties": { | |
586 "content": { | |
587 "description": "Image content, represented as a stream of by
tes.\nNote: as with all `bytes` fields, protobuffers use a pure binary\nrepresen
tation, whereas JSON representations use base64.", | |
588 "format": "byte", | |
589 "type": "string" | |
590 }, | |
591 "source": { | |
592 "$ref": "ImageSource", | |
593 "description": "Google Cloud Storage image location. If both
`content` and `source`\nare provided for an image, `content` takes precedence a
nd is\nused to perform the image annotation request." | |
594 } | |
595 }, | |
596 "type": "object" | |
597 }, | 597 }, |
598 "FaceAnnotation": { | 598 "FaceAnnotation": { |
599 "description": "A face annotation object contains the results of fac
e detection.", | 599 "description": "A face annotation object contains the results of fac
e detection.", |
600 "id": "FaceAnnotation", | 600 "id": "FaceAnnotation", |
601 "properties": { | 601 "properties": { |
| 602 "boundingPoly": { |
| 603 "$ref": "BoundingPoly", |
| 604 "description": "The bounding polygon around the face. The co
ordinates of the bounding box\nare in the original image's scale, as returned in
`ImageParams`.\nThe bounding box is computed to \"frame\" the face in accordanc
e with human\nexpectations. It is based on the landmarker results.\nNote that on
e or more x and/or y coordinates may not be generated in the\n`BoundingPoly` (th
e polygon will be unbounded) if only a partial face\nappears in the image to be
annotated." |
| 605 }, |
| 606 "rollAngle": { |
| 607 "description": "Roll angle, which indicates the amount of cl
ockwise/anti-clockwise rotation\nof the face relative to the image vertical abou
t the axis perpendicular to\nthe face. Range [-180,180].", |
| 608 "format": "float", |
| 609 "type": "number" |
| 610 }, |
602 "sorrowLikelihood": { | 611 "sorrowLikelihood": { |
603 "description": "Sorrow likelihood.", | 612 "description": "Sorrow likelihood.", |
604 "enum": [ | 613 "enum": [ |
605 "UNKNOWN", | 614 "UNKNOWN", |
606 "VERY_UNLIKELY", | 615 "VERY_UNLIKELY", |
607 "UNLIKELY", | 616 "UNLIKELY", |
608 "POSSIBLE", | 617 "POSSIBLE", |
609 "LIKELY", | 618 "LIKELY", |
610 "VERY_LIKELY" | 619 "VERY_LIKELY" |
611 ], | 620 ], |
612 "enumDescriptions": [ | 621 "enumDescriptions": [ |
613 "Unknown likelihood.", | 622 "Unknown likelihood.", |
614 "It is very unlikely that the image belongs to the speci
fied vertical.", | 623 "It is very unlikely that the image belongs to the speci
fied vertical.", |
615 "It is unlikely that the image belongs to the specified
vertical.", | 624 "It is unlikely that the image belongs to the specified
vertical.", |
616 "It is possible that the image belongs to the specified
vertical.", | 625 "It is possible that the image belongs to the specified
vertical.", |
617 "It is likely that the image belongs to the specified ve
rtical.", | 626 "It is likely that the image belongs to the specified ve
rtical.", |
618 "It is very likely that the image belongs to the specifi
ed vertical." | 627 "It is very likely that the image belongs to the specifi
ed vertical." |
619 ], | 628 ], |
620 "type": "string" | 629 "type": "string" |
621 }, | 630 }, |
622 "tiltAngle": { | 631 "tiltAngle": { |
623 "description": "Pitch angle, which indicates the upwards/dow
nwards angle that the face is\npointing relative to the image's horizontal plane
. Range [-180,180].", | 632 "description": "Pitch angle, which indicates the upwards/dow
nwards angle that the face is\npointing relative to the image's horizontal plane
. Range [-180,180].", |
624 "format": "float", | 633 "format": "float", |
625 "type": "number" | 634 "type": "number" |
626 }, | 635 }, |
627 "fdBoundingPoly": { | 636 "fdBoundingPoly": { |
628 "$ref": "BoundingPoly", | 637 "$ref": "BoundingPoly", |
629 "description": "The `fd_bounding_poly` bounding polygon is t
ighter than the\n`boundingPoly`, and encloses only the skin part of the face. Ty
pically, it\nis used to eliminate the face from any image analysis that detects
the\n\"amount of skin\" visible in an image. It is not based on the\nlandmarker
results, only on the initial face detection, hence\nthe <code>fd</code> (face de
tection) prefix." | 638 "description": "The `fd_bounding_poly` bounding polygon is t
ighter than the\n`boundingPoly`, and encloses only the skin part of the face. Ty
pically, it\nis used to eliminate the face from any image analysis that detects
the\n\"amount of skin\" visible in an image. It is not based on the\nlandmarker
results, only on the initial face detection, hence\nthe <code>fd</code> (face de
tection) prefix." |
630 }, | 639 }, |
631 "angerLikelihood": { | 640 "surpriseLikelihood": { |
632 "description": "Anger likelihood.", | 641 "description": "Surprise likelihood.", |
633 "enum": [ | 642 "enum": [ |
634 "UNKNOWN", | 643 "UNKNOWN", |
635 "VERY_UNLIKELY", | 644 "VERY_UNLIKELY", |
636 "UNLIKELY", | 645 "UNLIKELY", |
637 "POSSIBLE", | 646 "POSSIBLE", |
638 "LIKELY", | 647 "LIKELY", |
639 "VERY_LIKELY" | 648 "VERY_LIKELY" |
640 ], | 649 ], |
641 "enumDescriptions": [ | 650 "enumDescriptions": [ |
642 "Unknown likelihood.", | 651 "Unknown likelihood.", |
643 "It is very unlikely that the image belongs to the speci
fied vertical.", | 652 "It is very unlikely that the image belongs to the speci
fied vertical.", |
644 "It is unlikely that the image belongs to the specified
vertical.", | 653 "It is unlikely that the image belongs to the specified
vertical.", |
645 "It is possible that the image belongs to the specified
vertical.", | 654 "It is possible that the image belongs to the specified
vertical.", |
646 "It is likely that the image belongs to the specified ve
rtical.", | 655 "It is likely that the image belongs to the specified ve
rtical.", |
647 "It is very likely that the image belongs to the specifi
ed vertical." | 656 "It is very likely that the image belongs to the specifi
ed vertical." |
648 ], | 657 ], |
649 "type": "string" | 658 "type": "string" |
650 }, | 659 }, |
651 "landmarks": { | 660 "landmarks": { |
652 "description": "Detected face landmarks.", | 661 "description": "Detected face landmarks.", |
653 "items": { | 662 "items": { |
654 "$ref": "Landmark" | 663 "$ref": "Landmark" |
655 }, | 664 }, |
656 "type": "array" | 665 "type": "array" |
657 }, | 666 }, |
658 "surpriseLikelihood": { | 667 "angerLikelihood": { |
659 "description": "Surprise likelihood.", | 668 "description": "Anger likelihood.", |
660 "enum": [ | 669 "enum": [ |
661 "UNKNOWN", | 670 "UNKNOWN", |
662 "VERY_UNLIKELY", | 671 "VERY_UNLIKELY", |
663 "UNLIKELY", | 672 "UNLIKELY", |
664 "POSSIBLE", | 673 "POSSIBLE", |
665 "LIKELY", | 674 "LIKELY", |
666 "VERY_LIKELY" | 675 "VERY_LIKELY" |
667 ], | 676 ], |
668 "enumDescriptions": [ | 677 "enumDescriptions": [ |
669 "Unknown likelihood.", | 678 "Unknown likelihood.", |
(...skipping 23 matching lines...) Expand all Loading... |
693 "enumDescriptions": [ | 702 "enumDescriptions": [ |
694 "Unknown likelihood.", | 703 "Unknown likelihood.", |
695 "It is very unlikely that the image belongs to the speci
fied vertical.", | 704 "It is very unlikely that the image belongs to the speci
fied vertical.", |
696 "It is unlikely that the image belongs to the specified
vertical.", | 705 "It is unlikely that the image belongs to the specified
vertical.", |
697 "It is possible that the image belongs to the specified
vertical.", | 706 "It is possible that the image belongs to the specified
vertical.", |
698 "It is likely that the image belongs to the specified ve
rtical.", | 707 "It is likely that the image belongs to the specified ve
rtical.", |
699 "It is very likely that the image belongs to the specifi
ed vertical." | 708 "It is very likely that the image belongs to the specifi
ed vertical." |
700 ], | 709 ], |
701 "type": "string" | 710 "type": "string" |
702 }, | 711 }, |
703 "detectionConfidence": { | |
704 "description": "Detection confidence. Range [0, 1].", | |
705 "format": "float", | |
706 "type": "number" | |
707 }, | |
708 "panAngle": { | |
709 "description": "Yaw angle, which indicates the leftward/righ
tward angle that the face is\npointing relative to the vertical plane perpendicu
lar to the image. Range\n[-180,180].", | |
710 "format": "float", | |
711 "type": "number" | |
712 }, | |
713 "underExposedLikelihood": { | 712 "underExposedLikelihood": { |
714 "description": "Under-exposed likelihood.", | 713 "description": "Under-exposed likelihood.", |
715 "enum": [ | 714 "enum": [ |
716 "UNKNOWN", | 715 "UNKNOWN", |
717 "VERY_UNLIKELY", | 716 "VERY_UNLIKELY", |
718 "UNLIKELY", | 717 "UNLIKELY", |
719 "POSSIBLE", | 718 "POSSIBLE", |
720 "LIKELY", | 719 "LIKELY", |
721 "VERY_LIKELY" | 720 "VERY_LIKELY" |
722 ], | 721 ], |
723 "enumDescriptions": [ | 722 "enumDescriptions": [ |
724 "Unknown likelihood.", | 723 "Unknown likelihood.", |
725 "It is very unlikely that the image belongs to the speci
fied vertical.", | 724 "It is very unlikely that the image belongs to the speci
fied vertical.", |
726 "It is unlikely that the image belongs to the specified
vertical.", | 725 "It is unlikely that the image belongs to the specified
vertical.", |
727 "It is possible that the image belongs to the specified
vertical.", | 726 "It is possible that the image belongs to the specified
vertical.", |
728 "It is likely that the image belongs to the specified ve
rtical.", | 727 "It is likely that the image belongs to the specified ve
rtical.", |
729 "It is very likely that the image belongs to the specifi
ed vertical." | 728 "It is very likely that the image belongs to the specifi
ed vertical." |
730 ], | 729 ], |
731 "type": "string" | 730 "type": "string" |
732 }, | 731 }, |
| 732 "detectionConfidence": { |
| 733 "description": "Detection confidence. Range [0, 1].", |
| 734 "format": "float", |
| 735 "type": "number" |
| 736 }, |
| 737 "panAngle": { |
| 738 "description": "Yaw angle, which indicates the leftward/righ
tward angle that the face is\npointing relative to the vertical plane perpendicu
lar to the image. Range\n[-180,180].", |
| 739 "format": "float", |
| 740 "type": "number" |
| 741 }, |
733 "blurredLikelihood": { | 742 "blurredLikelihood": { |
734 "description": "Blurred likelihood.", | 743 "description": "Blurred likelihood.", |
735 "enum": [ | 744 "enum": [ |
736 "UNKNOWN", | 745 "UNKNOWN", |
737 "VERY_UNLIKELY", | 746 "VERY_UNLIKELY", |
738 "UNLIKELY", | 747 "UNLIKELY", |
739 "POSSIBLE", | 748 "POSSIBLE", |
740 "LIKELY", | 749 "LIKELY", |
741 "VERY_LIKELY" | 750 "VERY_LIKELY" |
742 ], | 751 ], |
(...skipping 19 matching lines...) Expand all Loading... |
762 ], | 771 ], |
763 "enumDescriptions": [ | 772 "enumDescriptions": [ |
764 "Unknown likelihood.", | 773 "Unknown likelihood.", |
765 "It is very unlikely that the image belongs to the speci
fied vertical.", | 774 "It is very unlikely that the image belongs to the speci
fied vertical.", |
766 "It is unlikely that the image belongs to the specified
vertical.", | 775 "It is unlikely that the image belongs to the specified
vertical.", |
767 "It is possible that the image belongs to the specified
vertical.", | 776 "It is possible that the image belongs to the specified
vertical.", |
768 "It is likely that the image belongs to the specified ve
rtical.", | 777 "It is likely that the image belongs to the specified ve
rtical.", |
769 "It is very likely that the image belongs to the specifi
ed vertical." | 778 "It is very likely that the image belongs to the specifi
ed vertical." |
770 ], | 779 ], |
771 "type": "string" | 780 "type": "string" |
772 }, | |
773 "boundingPoly": { | |
774 "$ref": "BoundingPoly", | |
775 "description": "The bounding polygon around the face. The co
ordinates of the bounding box\nare in the original image's scale, as returned in
`ImageParams`.\nThe bounding box is computed to \"frame\" the face in accordanc
e with human\nexpectations. It is based on the landmarker results.\nNote that on
e or more x and/or y coordinates may not be generated in the\n`BoundingPoly` (th
e polygon will be unbounded) if only a partial face\nappears in the image to be
annotated." | |
776 }, | |
777 "rollAngle": { | |
778 "description": "Roll angle, which indicates the amount of cl
ockwise/anti-clockwise rotation\nof the face relative to the image vertical abou
t the axis perpendicular to\nthe face. Range [-180,180].", | |
779 "format": "float", | |
780 "type": "number" | |
781 } | 781 } |
782 }, | 782 }, |
783 "type": "object" | 783 "type": "object" |
784 }, | 784 }, |
785 "BatchAnnotateImagesRequest": { | 785 "BatchAnnotateImagesRequest": { |
786 "description": "Multiple image annotation requests are batched into
a single service call.", | 786 "description": "Multiple image annotation requests are batched into
a single service call.", |
787 "id": "BatchAnnotateImagesRequest", | 787 "id": "BatchAnnotateImagesRequest", |
788 "properties": { | 788 "properties": { |
789 "requests": { | 789 "requests": { |
790 "description": "Individual image annotation requests for thi
s batch.", | 790 "description": "Individual image annotation requests for thi
s batch.", |
791 "items": { | 791 "items": { |
792 "$ref": "AnnotateImageRequest" | 792 "$ref": "AnnotateImageRequest" |
793 }, | 793 }, |
794 "type": "array" | 794 "type": "array" |
795 } | 795 } |
796 }, | 796 }, |
797 "type": "object" | 797 "type": "object" |
798 }, | 798 }, |
799 "DetectedBreak": { | 799 "DetectedBreak": { |
800 "description": "Detected start or end of a structural component.", | 800 "description": "Detected start or end of a structural component.", |
801 "id": "DetectedBreak", | 801 "id": "DetectedBreak", |
802 "properties": { | 802 "properties": { |
803 "isPrefix": { | |
804 "description": "True if break prepends the element.", | |
805 "type": "boolean" | |
806 }, | |
807 "type": { | 803 "type": { |
808 "description": "Detected break type.", | 804 "description": "Detected break type.", |
809 "enum": [ | 805 "enum": [ |
810 "UNKNOWN", | 806 "UNKNOWN", |
811 "SPACE", | 807 "SPACE", |
812 "SURE_SPACE", | 808 "SURE_SPACE", |
813 "EOL_SURE_SPACE", | 809 "EOL_SURE_SPACE", |
814 "HYPHEN", | 810 "HYPHEN", |
815 "LINE_BREAK" | 811 "LINE_BREAK" |
816 ], | 812 ], |
817 "enumDescriptions": [ | 813 "enumDescriptions": [ |
818 "Unknown break label type.", | 814 "Unknown break label type.", |
819 "Regular space.", | 815 "Regular space.", |
820 "Sure space (very wide).", | 816 "Sure space (very wide).", |
821 "Line-wrapping break.", | 817 "Line-wrapping break.", |
822 "End-line hyphen that is not present in text; does", | 818 "End-line hyphen that is not present in text; does", |
823 "not co-occur with SPACE, LEADER_SPACE, or\nLINE_BREAK.\
nLine break that ends a paragraph." | 819 "not co-occur with SPACE, LEADER_SPACE, or\nLINE_BREAK.\
nLine break that ends a paragraph." |
824 ], | 820 ], |
825 "type": "string" | 821 "type": "string" |
| 822 }, |
| 823 "isPrefix": { |
| 824 "description": "True if break prepends the element.", |
| 825 "type": "boolean" |
826 } | 826 } |
827 }, | 827 }, |
828 "type": "object" | 828 "type": "object" |
829 }, | 829 }, |
830 "ImageContext": { | 830 "ImageContext": { |
831 "description": "Image context and/or feature-specific parameters.", | 831 "description": "Image context and/or feature-specific parameters.", |
832 "id": "ImageContext", | 832 "id": "ImageContext", |
833 "properties": { | 833 "properties": { |
834 "latLongRect": { | 834 "latLongRect": { |
835 "$ref": "LatLongRect", | 835 "$ref": "LatLongRect", |
(...skipping 10 matching lines...) Expand all Loading... |
846 }, | 846 }, |
847 "type": "array" | 847 "type": "array" |
848 } | 848 } |
849 }, | 849 }, |
850 "type": "object" | 850 "type": "object" |
851 }, | 851 }, |
852 "Page": { | 852 "Page": { |
853 "description": "Detected page from OCR.", | 853 "description": "Detected page from OCR.", |
854 "id": "Page", | 854 "id": "Page", |
855 "properties": { | 855 "properties": { |
| 856 "height": { |
| 857 "description": "Page height in pixels.", |
| 858 "format": "int32", |
| 859 "type": "integer" |
| 860 }, |
856 "width": { | 861 "width": { |
857 "description": "Page width in pixels.", | 862 "description": "Page width in pixels.", |
858 "format": "int32", | 863 "format": "int32", |
859 "type": "integer" | 864 "type": "integer" |
860 }, | 865 }, |
861 "blocks": { | 866 "blocks": { |
862 "description": "List of blocks of text, images etc on this p
age.", | 867 "description": "List of blocks of text, images etc on this p
age.", |
863 "items": { | 868 "items": { |
864 "$ref": "Block" | 869 "$ref": "Block" |
865 }, | 870 }, |
866 "type": "array" | 871 "type": "array" |
867 }, | 872 }, |
868 "property": { | 873 "property": { |
869 "$ref": "TextProperty", | 874 "$ref": "TextProperty", |
870 "description": "Additional information detected on the page.
" | 875 "description": "Additional information detected on the page.
" |
871 }, | |
872 "height": { | |
873 "description": "Page height in pixels.", | |
874 "format": "int32", | |
875 "type": "integer" | |
876 } | 876 } |
877 }, | 877 }, |
878 "type": "object" | 878 "type": "object" |
879 }, | 879 }, |
880 "AnnotateImageRequest": { | 880 "AnnotateImageRequest": { |
881 "description": "Request for performing Google Cloud Vision API tasks
over a user-provided\nimage, with user-requested features.", | 881 "description": "Request for performing Google Cloud Vision API tasks
over a user-provided\nimage, with user-requested features.", |
882 "id": "AnnotateImageRequest", | 882 "id": "AnnotateImageRequest", |
883 "properties": { | 883 "properties": { |
884 "image": { | 884 "image": { |
885 "$ref": "Image", | 885 "$ref": "Image", |
(...skipping 10 matching lines...) Expand all Loading... |
896 "$ref": "ImageContext", | 896 "$ref": "ImageContext", |
897 "description": "Additional context that may accompany the im
age." | 897 "description": "Additional context that may accompany the im
age." |
898 } | 898 } |
899 }, | 899 }, |
900 "type": "object" | 900 "type": "object" |
901 }, | 901 }, |
902 "Status": { | 902 "Status": { |
903 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", | 903 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", |
904 "id": "Status", | 904 "id": "Status", |
905 "properties": { | 905 "properties": { |
| 906 "message": { |
| 907 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
| 908 "type": "string" |
| 909 }, |
906 "details": { | 910 "details": { |
907 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", | 911 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", |
908 "items": { | 912 "items": { |
909 "additionalProperties": { | 913 "additionalProperties": { |
910 "description": "Properties of the object. Contains f
ield @type with type URL.", | 914 "description": "Properties of the object. Contains f
ield @type with type URL.", |
911 "type": "any" | 915 "type": "any" |
912 }, | 916 }, |
913 "type": "object" | 917 "type": "object" |
914 }, | 918 }, |
915 "type": "array" | 919 "type": "array" |
916 }, | 920 }, |
917 "code": { | 921 "code": { |
918 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | 922 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
919 "format": "int32", | 923 "format": "int32", |
920 "type": "integer" | 924 "type": "integer" |
921 }, | |
922 "message": { | |
923 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", | |
924 "type": "string" | |
925 } | 925 } |
926 }, | 926 }, |
927 "type": "object" | 927 "type": "object" |
928 }, | |
929 "LatLongRect": { | |
930 "description": "Rectangle determined by min and max `LatLng` pairs."
, | |
931 "id": "LatLongRect", | |
932 "properties": { | |
933 "maxLatLng": { | |
934 "$ref": "LatLng", | |
935 "description": "Max lat/long pair." | |
936 }, | |
937 "minLatLng": { | |
938 "$ref": "LatLng", | |
939 "description": "Min lat/long pair." | |
940 } | |
941 }, | |
942 "type": "object" | |
943 }, | 928 }, |
944 "Symbol": { | 929 "Symbol": { |
945 "description": "A single symbol representation.", | 930 "description": "A single symbol representation.", |
946 "id": "Symbol", | 931 "id": "Symbol", |
947 "properties": { | 932 "properties": { |
948 "property": { | 933 "property": { |
949 "$ref": "TextProperty", | 934 "$ref": "TextProperty", |
950 "description": "Additional information detected for the symb
ol." | 935 "description": "Additional information detected for the symb
ol." |
951 }, | 936 }, |
952 "boundingBox": { | 937 "boundingBox": { |
953 "$ref": "BoundingPoly", | 938 "$ref": "BoundingPoly", |
954 "description": "The bounding box for the symbol.\nThe vertic
es are in the order of top-left, top-right, bottom-right,\nbottom-left. When a r
otation of the bounding box is detected the rotation\nis represented as around t
he top-left corner as defined when the text is\nread in the 'natural' orientatio
n.\nFor example:\n * when the text is horizontal it might look like:\n 0---
-1\n | |\n 3----2\n * when it's rotated 180 degrees around the top-l
eft corner it becomes:\n 2----3\n | |\n 1----0\n and the vertice
order will still be (0, 1, 2, 3)." | 939 "description": "The bounding box for the symbol.\nThe vertic
es are in the order of top-left, top-right, bottom-right,\nbottom-left. When a r
otation of the bounding box is detected the rotation\nis represented as around t
he top-left corner as defined when the text is\nread in the 'natural' orientatio
n.\nFor example:\n * when the text is horizontal it might look like:\n 0---
-1\n | |\n 3----2\n * when it's rotated 180 degrees around the top-l
eft corner it becomes:\n 2----3\n | |\n 1----0\n and the vertice
order will still be (0, 1, 2, 3)." |
955 }, | 940 }, |
956 "text": { | 941 "text": { |
957 "description": "The actual UTF-8 representation of the symbo
l.", | 942 "description": "The actual UTF-8 representation of the symbo
l.", |
958 "type": "string" | 943 "type": "string" |
959 } | 944 } |
960 }, | 945 }, |
961 "type": "object" | 946 "type": "object" |
962 }, | 947 }, |
| 948 "LatLongRect": { |
| 949 "description": "Rectangle determined by min and max `LatLng` pairs."
, |
| 950 "id": "LatLongRect", |
| 951 "properties": { |
| 952 "maxLatLng": { |
| 953 "$ref": "LatLng", |
| 954 "description": "Max lat/long pair." |
| 955 }, |
| 956 "minLatLng": { |
| 957 "$ref": "LatLng", |
| 958 "description": "Min lat/long pair." |
| 959 } |
| 960 }, |
| 961 "type": "object" |
| 962 }, |
963 "CropHintsAnnotation": { | 963 "CropHintsAnnotation": { |
964 "description": "Set of crop hints that are used to generate new crop
s when serving images.", | 964 "description": "Set of crop hints that are used to generate new crop
s when serving images.", |
965 "id": "CropHintsAnnotation", | 965 "id": "CropHintsAnnotation", |
966 "properties": { | 966 "properties": { |
967 "cropHints": { | 967 "cropHints": { |
968 "description": "Crop hint results.", | 968 "description": "Crop hint results.", |
969 "items": { | 969 "items": { |
970 "$ref": "CropHint" | 970 "$ref": "CropHint" |
971 }, | 971 }, |
972 "type": "array" | 972 "type": "array" |
(...skipping 15 matching lines...) Expand all Loading... |
988 "format": "double", | 988 "format": "double", |
989 "type": "number" | 989 "type": "number" |
990 } | 990 } |
991 }, | 991 }, |
992 "type": "object" | 992 "type": "object" |
993 }, | 993 }, |
994 "Color": { | 994 "Color": { |
995 "description": "Represents a color in the RGBA color space. This rep
resentation is designed\nfor simplicity of conversion to/from color representati
ons in various\nlanguages over compactness; for example, the fields of this repr
esentation\ncan be trivially provided to the constructor of \"java.awt.Color\" i
n Java; it\ncan also be trivially provided to UIColor's \"+colorWithRed:green:bl
ue:alpha\"\nmethod in iOS; and, with just a little work, it can be easily format
ted into\na CSS \"rgba()\" string in JavaScript, as well. Here are some examples
:\n\nExample (Java):\n\n import com.google.type.Color;\n\n // ...\n
public static java.awt.Color fromProto(Color protocolor) {\n float alpha =
protocolor.hasAlpha()\n ? protocolor.getAlpha().getValue()\n
: 1.0;\n\n return new java.awt.Color(\n protocolor.getRed(),\n
protocolor.getGreen(),\n protocolor.getBlue(),\n
alpha);\n }\n\n public static Color toProto(java.awt.Color color) {\n
float red = (float) color.getRed();\n float green = (float) color.getG
reen();\n float blue = (float) color.getBlue();\n float denominator
= 255.0;\n Color.Builder resultBuilder =\n Color\n
.newBuilder()\n .setRed(red / denominator)\n .setGr
een(green / denominator)\n .setBlue(blue / denominator);\n i
nt alpha = color.getAlpha();\n if (alpha != 255) {\n result.setAlp
ha(\n FloatValue\n .newBuilder()\n .
setValue(((float) alpha) / denominator)\n .build());\n }\n
return resultBuilder.build();\n }\n // ...\n\nExample (iOS / Obj-
C):\n\n // ...\n static UIColor* fromProto(Color* protocolor) {\n
float red = [protocolor red];\n float green = [protocolor green];\n
float blue = [protocolor blue];\n FloatValue* alpha_wrapper = [protoco
lor alpha];\n float alpha = 1.0;\n if (alpha_wrapper != nil) {\n
alpha = [alpha_wrapper value];\n }\n return [UIColor color
WithRed:red green:green blue:blue alpha:alpha];\n }\n\n static Color* to
Proto(UIColor* color) {\n CGFloat red, green, blue, alpha;\n if
(![color getRed:&red green:&green blue:&blue alpha:&alpha]) {\n return
nil;\n }\n Color* result = [Color alloc] init];\n [resu
lt setRed:red];\n [result setGreen:green];\n [result setBlue:blu
e];\n if (alpha <= 0.9999) {\n [result setAlpha:floatWrapperWi
thValue(alpha)];\n }\n [result autorelease];\n return re
sult;\n }\n // ...\n\n Example (JavaScript):\n\n // ...\n\n var prot
oToCssColor = function(rgb_color) {\n var redFrac = rgb_color.red || 0.0;\
n var greenFrac = rgb_color.green || 0.0;\n var blueFrac = rgb_color
.blue || 0.0;\n var red = Math.floor(redFrac * 255);\n var green = M
ath.floor(greenFrac * 255);\n var blue = Math.floor(blueFrac * 255);\n\n
if (!('alpha' in rgb_color)) {\n return rgbToCssColor_(red, green,
blue);\n }\n\n var alphaFrac = rgb_color.alpha.value || 0.0;\n
var rgbParams = [red, green, blue].join(',');\n return ['rgba(', rgbPara
ms, ',', alphaFrac, ')'].join('');\n };\n\n var rgbToCssColor_ = function(
red, green, blue) {\n var rgbNumber = new Number((red << 16) | (green << 8)
| blue);\n var hexString = rgbNumber.toString(16);\n var missingZeros
= 6 - hexString.length;\n var resultBuilder = ['#'];\n for (var i = 0
; i < missingZeros; i++) {\n resultBuilder.push('0');\n }\n re
sultBuilder.push(hexString);\n return resultBuilder.join('');\n };\n\n
// ...", | 995 "description": "Represents a color in the RGBA color space. This rep
resentation is designed\nfor simplicity of conversion to/from color representati
ons in various\nlanguages over compactness; for example, the fields of this repr
esentation\ncan be trivially provided to the constructor of \"java.awt.Color\" i
n Java; it\ncan also be trivially provided to UIColor's \"+colorWithRed:green:bl
ue:alpha\"\nmethod in iOS; and, with just a little work, it can be easily format
ted into\na CSS \"rgba()\" string in JavaScript, as well. Here are some examples
:\n\nExample (Java):\n\n import com.google.type.Color;\n\n // ...\n
public static java.awt.Color fromProto(Color protocolor) {\n float alpha =
protocolor.hasAlpha()\n ? protocolor.getAlpha().getValue()\n
: 1.0;\n\n return new java.awt.Color(\n protocolor.getRed(),\n
protocolor.getGreen(),\n protocolor.getBlue(),\n
alpha);\n }\n\n public static Color toProto(java.awt.Color color) {\n
float red = (float) color.getRed();\n float green = (float) color.getG
reen();\n float blue = (float) color.getBlue();\n float denominator
= 255.0;\n Color.Builder resultBuilder =\n Color\n
.newBuilder()\n .setRed(red / denominator)\n .setGr
een(green / denominator)\n .setBlue(blue / denominator);\n i
nt alpha = color.getAlpha();\n if (alpha != 255) {\n result.setAlp
ha(\n FloatValue\n .newBuilder()\n .
setValue(((float) alpha) / denominator)\n .build());\n }\n
return resultBuilder.build();\n }\n // ...\n\nExample (iOS / Obj-
C):\n\n // ...\n static UIColor* fromProto(Color* protocolor) {\n
float red = [protocolor red];\n float green = [protocolor green];\n
float blue = [protocolor blue];\n FloatValue* alpha_wrapper = [protoco
lor alpha];\n float alpha = 1.0;\n if (alpha_wrapper != nil) {\n
alpha = [alpha_wrapper value];\n }\n return [UIColor color
WithRed:red green:green blue:blue alpha:alpha];\n }\n\n static Color* to
Proto(UIColor* color) {\n CGFloat red, green, blue, alpha;\n if
(![color getRed:&red green:&green blue:&blue alpha:&alpha]) {\n return
nil;\n }\n Color* result = [Color alloc] init];\n [resu
lt setRed:red];\n [result setGreen:green];\n [result setBlue:blu
e];\n if (alpha <= 0.9999) {\n [result setAlpha:floatWrapperWi
thValue(alpha)];\n }\n [result autorelease];\n return re
sult;\n }\n // ...\n\n Example (JavaScript):\n\n // ...\n\n var prot
oToCssColor = function(rgb_color) {\n var redFrac = rgb_color.red || 0.0;\
n var greenFrac = rgb_color.green || 0.0;\n var blueFrac = rgb_color
.blue || 0.0;\n var red = Math.floor(redFrac * 255);\n var green = M
ath.floor(greenFrac * 255);\n var blue = Math.floor(blueFrac * 255);\n\n
if (!('alpha' in rgb_color)) {\n return rgbToCssColor_(red, green,
blue);\n }\n\n var alphaFrac = rgb_color.alpha.value || 0.0;\n
var rgbParams = [red, green, blue].join(',');\n return ['rgba(', rgbPara
ms, ',', alphaFrac, ')'].join('');\n };\n\n var rgbToCssColor_ = function(
red, green, blue) {\n var rgbNumber = new Number((red << 16) | (green << 8)
| blue);\n var hexString = rgbNumber.toString(16);\n var missingZeros
= 6 - hexString.length;\n var resultBuilder = ['#'];\n for (var i = 0
; i < missingZeros; i++) {\n resultBuilder.push('0');\n }\n re
sultBuilder.push(hexString);\n return resultBuilder.join('');\n };\n\n
// ...", |
996 "id": "Color", | 996 "id": "Color", |
997 "properties": { | 997 "properties": { |
998 "red": { | |
999 "description": "The amount of red in the color as a value in
the interval [0, 1].", | |
1000 "format": "float", | |
1001 "type": "number" | |
1002 }, | |
1003 "green": { | 998 "green": { |
1004 "description": "The amount of green in the color as a value
in the interval [0, 1].", | 999 "description": "The amount of green in the color as a value
in the interval [0, 1].", |
1005 "format": "float", | 1000 "format": "float", |
1006 "type": "number" | 1001 "type": "number" |
1007 }, | 1002 }, |
1008 "blue": { | 1003 "blue": { |
1009 "description": "The amount of blue in the color as a value i
n the interval [0, 1].", | 1004 "description": "The amount of blue in the color as a value i
n the interval [0, 1].", |
1010 "format": "float", | 1005 "format": "float", |
1011 "type": "number" | 1006 "type": "number" |
1012 }, | 1007 }, |
1013 "alpha": { | 1008 "alpha": { |
1014 "description": "The fraction of this color that should be ap
plied to the pixel. That is,\nthe final pixel color is defined by the equation:\
n\n pixel color = alpha * (this color) + (1.0 - alpha) * (background color)\n\n
This means that a value of 1.0 corresponds to a solid color, whereas\na value of
0.0 corresponds to a completely transparent color. This\nuses a wrapper message
rather than a simple float scalar so that it is\npossible to distinguish betwee
n a default value and the value being unset.\nIf omitted, this color object is t
o be rendered as a solid color\n(as if the alpha value had been explicitly given
with a value of 1.0).", | 1009 "description": "The fraction of this color that should be ap
plied to the pixel. That is,\nthe final pixel color is defined by the equation:\
n\n pixel color = alpha * (this color) + (1.0 - alpha) * (background color)\n\n
This means that a value of 1.0 corresponds to a solid color, whereas\na value of
0.0 corresponds to a completely transparent color. This\nuses a wrapper message
rather than a simple float scalar so that it is\npossible to distinguish betwee
n a default value and the value being unset.\nIf omitted, this color object is t
o be rendered as a solid color\n(as if the alpha value had been explicitly given
with a value of 1.0).", |
1015 "format": "float", | 1010 "format": "float", |
1016 "type": "number" | 1011 "type": "number" |
| 1012 }, |
| 1013 "red": { |
| 1014 "description": "The amount of red in the color as a value in
the interval [0, 1].", |
| 1015 "format": "float", |
| 1016 "type": "number" |
1017 } | 1017 } |
1018 }, | 1018 }, |
1019 "type": "object" | 1019 "type": "object" |
1020 }, | 1020 }, |
1021 "Feature": { | 1021 "Feature": { |
1022 "description": "Users describe the type of Google Cloud Vision API t
asks to perform over\nimages by using *Feature*s. Each Feature indicates a type
of image\ndetection task to perform. Features encode the Cloud Vision API\nverti
cal to operate on and the number of top-scoring results to return.", | 1022 "description": "Users describe the type of Google Cloud Vision API t
asks to perform over\nimages by using *Feature*s. Each Feature indicates a type
of image\ndetection task to perform. Features encode the Cloud Vision API\nverti
cal to operate on and the number of top-scoring results to return.", |
1023 "id": "Feature", | 1023 "id": "Feature", |
1024 "properties": { | 1024 "properties": { |
1025 "type": { | 1025 "type": { |
1026 "description": "The feature type.", | 1026 "description": "The feature type.", |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 "$ref": "DominantColorsAnnotation", | 1068 "$ref": "DominantColorsAnnotation", |
1069 "description": "If present, dominant colors completed succes
sfully." | 1069 "description": "If present, dominant colors completed succes
sfully." |
1070 } | 1070 } |
1071 }, | 1071 }, |
1072 "type": "object" | 1072 "type": "object" |
1073 }, | 1073 }, |
1074 "SafeSearchAnnotation": { | 1074 "SafeSearchAnnotation": { |
1075 "description": "Set of features pertaining to the image, computed by
computer vision\nmethods over safe-search verticals (for example, adult, spoof,
medical,\nviolence).", | 1075 "description": "Set of features pertaining to the image, computed by
computer vision\nmethods over safe-search verticals (for example, adult, spoof,
medical,\nviolence).", |
1076 "id": "SafeSearchAnnotation", | 1076 "id": "SafeSearchAnnotation", |
1077 "properties": { | 1077 "properties": { |
1078 "spoof": { | 1078 "medical": { |
1079 "description": "Spoof likelihood. The likelihood that an mod
ification\nwas made to the image's canonical version to make it appear\nfunny or
offensive.", | 1079 "description": "Likelihood that this is a medical image.", |
1080 "enum": [ | 1080 "enum": [ |
1081 "UNKNOWN", | 1081 "UNKNOWN", |
1082 "VERY_UNLIKELY", | 1082 "VERY_UNLIKELY", |
1083 "UNLIKELY", | 1083 "UNLIKELY", |
1084 "POSSIBLE", | 1084 "POSSIBLE", |
1085 "LIKELY", | 1085 "LIKELY", |
1086 "VERY_LIKELY" | 1086 "VERY_LIKELY" |
1087 ], | 1087 ], |
1088 "enumDescriptions": [ | 1088 "enumDescriptions": [ |
1089 "Unknown likelihood.", | 1089 "Unknown likelihood.", |
1090 "It is very unlikely that the image belongs to the speci
fied vertical.", | 1090 "It is very unlikely that the image belongs to the speci
fied vertical.", |
1091 "It is unlikely that the image belongs to the specified
vertical.", | 1091 "It is unlikely that the image belongs to the specified
vertical.", |
1092 "It is possible that the image belongs to the specified
vertical.", | 1092 "It is possible that the image belongs to the specified
vertical.", |
1093 "It is likely that the image belongs to the specified ve
rtical.", | 1093 "It is likely that the image belongs to the specified ve
rtical.", |
1094 "It is very likely that the image belongs to the specifi
ed vertical." | 1094 "It is very likely that the image belongs to the specifi
ed vertical." |
1095 ], | 1095 ], |
1096 "type": "string" | 1096 "type": "string" |
1097 }, | 1097 }, |
1098 "medical": { | 1098 "violence": { |
1099 "description": "Likelihood that this is a medical image.", | 1099 "description": "Violence likelihood.", |
1100 "enum": [ | 1100 "enum": [ |
1101 "UNKNOWN", | 1101 "UNKNOWN", |
1102 "VERY_UNLIKELY", | 1102 "VERY_UNLIKELY", |
1103 "UNLIKELY", | 1103 "UNLIKELY", |
1104 "POSSIBLE", | 1104 "POSSIBLE", |
1105 "LIKELY", | 1105 "LIKELY", |
1106 "VERY_LIKELY" | 1106 "VERY_LIKELY" |
1107 ], | 1107 ], |
1108 "enumDescriptions": [ | 1108 "enumDescriptions": [ |
1109 "Unknown likelihood.", | 1109 "Unknown likelihood.", |
1110 "It is very unlikely that the image belongs to the speci
fied vertical.", | 1110 "It is very unlikely that the image belongs to the speci
fied vertical.", |
1111 "It is unlikely that the image belongs to the specified
vertical.", | 1111 "It is unlikely that the image belongs to the specified
vertical.", |
1112 "It is possible that the image belongs to the specified
vertical.", | 1112 "It is possible that the image belongs to the specified
vertical.", |
1113 "It is likely that the image belongs to the specified ve
rtical.", | 1113 "It is likely that the image belongs to the specified ve
rtical.", |
1114 "It is very likely that the image belongs to the specifi
ed vertical." | 1114 "It is very likely that the image belongs to the specifi
ed vertical." |
1115 ], | 1115 ], |
1116 "type": "string" | 1116 "type": "string" |
1117 }, | 1117 }, |
1118 "violence": { | 1118 "adult": { |
1119 "description": "Violence likelihood.", | 1119 "description": "Represents the adult content likelihood for
the image.", |
1120 "enum": [ | 1120 "enum": [ |
1121 "UNKNOWN", | 1121 "UNKNOWN", |
1122 "VERY_UNLIKELY", | 1122 "VERY_UNLIKELY", |
1123 "UNLIKELY", | 1123 "UNLIKELY", |
1124 "POSSIBLE", | 1124 "POSSIBLE", |
1125 "LIKELY", | 1125 "LIKELY", |
1126 "VERY_LIKELY" | 1126 "VERY_LIKELY" |
1127 ], | 1127 ], |
1128 "enumDescriptions": [ | 1128 "enumDescriptions": [ |
1129 "Unknown likelihood.", | 1129 "Unknown likelihood.", |
1130 "It is very unlikely that the image belongs to the speci
fied vertical.", | 1130 "It is very unlikely that the image belongs to the speci
fied vertical.", |
1131 "It is unlikely that the image belongs to the specified
vertical.", | 1131 "It is unlikely that the image belongs to the specified
vertical.", |
1132 "It is possible that the image belongs to the specified
vertical.", | 1132 "It is possible that the image belongs to the specified
vertical.", |
1133 "It is likely that the image belongs to the specified ve
rtical.", | 1133 "It is likely that the image belongs to the specified ve
rtical.", |
1134 "It is very likely that the image belongs to the specifi
ed vertical." | 1134 "It is very likely that the image belongs to the specifi
ed vertical." |
1135 ], | 1135 ], |
1136 "type": "string" | 1136 "type": "string" |
1137 }, | 1137 }, |
1138 "adult": { | 1138 "spoof": { |
1139 "description": "Represents the adult content likelihood for
the image.", | 1139 "description": "Spoof likelihood. The likelihood that an mod
ification\nwas made to the image's canonical version to make it appear\nfunny or
offensive.", |
1140 "enum": [ | 1140 "enum": [ |
1141 "UNKNOWN", | 1141 "UNKNOWN", |
1142 "VERY_UNLIKELY", | 1142 "VERY_UNLIKELY", |
1143 "UNLIKELY", | 1143 "UNLIKELY", |
1144 "POSSIBLE", | 1144 "POSSIBLE", |
1145 "LIKELY", | 1145 "LIKELY", |
1146 "VERY_LIKELY" | 1146 "VERY_LIKELY" |
1147 ], | 1147 ], |
1148 "enumDescriptions": [ | 1148 "enumDescriptions": [ |
1149 "Unknown likelihood.", | 1149 "Unknown likelihood.", |
(...skipping 19 matching lines...) Expand all Loading... |
1169 }, | 1169 }, |
1170 "type": "array" | 1170 "type": "array" |
1171 } | 1171 } |
1172 }, | 1172 }, |
1173 "type": "object" | 1173 "type": "object" |
1174 }, | 1174 }, |
1175 "TextAnnotation": { | 1175 "TextAnnotation": { |
1176 "description": "TextAnnotation contains a structured representation
of OCR extracted text.\nThe hierarchy of an OCR extracted text structure is like
this:\n TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol\nEach
structural component, starting from Page, may further have their own\npropertie
s. Properties describe detected languages, breaks etc.. Please\nrefer to the goo
gle.cloud.vision.v1.TextAnnotation.TextProperty message\ndefinition below for mo
re detail.", | 1176 "description": "TextAnnotation contains a structured representation
of OCR extracted text.\nThe hierarchy of an OCR extracted text structure is like
this:\n TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol\nEach
structural component, starting from Page, may further have their own\npropertie
s. Properties describe detected languages, breaks etc.. Please\nrefer to the goo
gle.cloud.vision.v1.TextAnnotation.TextProperty message\ndefinition below for mo
re detail.", |
1177 "id": "TextAnnotation", | 1177 "id": "TextAnnotation", |
1178 "properties": { | 1178 "properties": { |
| 1179 "text": { |
| 1180 "description": "UTF-8 text detected on the pages.", |
| 1181 "type": "string" |
| 1182 }, |
1179 "pages": { | 1183 "pages": { |
1180 "description": "List of pages detected by OCR.", | 1184 "description": "List of pages detected by OCR.", |
1181 "items": { | 1185 "items": { |
1182 "$ref": "Page" | 1186 "$ref": "Page" |
1183 }, | 1187 }, |
1184 "type": "array" | 1188 "type": "array" |
1185 }, | |
1186 "text": { | |
1187 "description": "UTF-8 text detected on the pages.", | |
1188 "type": "string" | |
1189 } | 1189 } |
1190 }, | 1190 }, |
1191 "type": "object" | 1191 "type": "object" |
1192 }, | |
1193 "DetectedLanguage": { | |
1194 "description": "Detected language for a structural component.", | |
1195 "id": "DetectedLanguage", | |
1196 "properties": { | |
1197 "languageCode": { | |
1198 "description": "The BCP-47 language code, such as \"en-US\"
or \"sr-Latn\". For more\ninformation, see\nhttp://www.unicode.org/reports/tr35/
#Unicode_locale_identifier.", | |
1199 "type": "string" | |
1200 }, | |
1201 "confidence": { | |
1202 "description": "Confidence of detected language. Range [0, 1
].", | |
1203 "format": "float", | |
1204 "type": "number" | |
1205 } | |
1206 }, | |
1207 "type": "object" | |
1208 }, | 1192 }, |
1209 "Vertex": { | 1193 "Vertex": { |
1210 "description": "A vertex represents a 2D point in the image.\nNOTE:
the vertex coordinates are in the same scale as the original image.", | 1194 "description": "A vertex represents a 2D point in the image.\nNOTE:
the vertex coordinates are in the same scale as the original image.", |
1211 "id": "Vertex", | 1195 "id": "Vertex", |
1212 "properties": { | 1196 "properties": { |
1213 "y": { | 1197 "y": { |
1214 "description": "Y coordinate.", | 1198 "description": "Y coordinate.", |
1215 "format": "int32", | 1199 "format": "int32", |
1216 "type": "integer" | 1200 "type": "integer" |
1217 }, | 1201 }, |
1218 "x": { | 1202 "x": { |
1219 "description": "X coordinate.", | 1203 "description": "X coordinate.", |
1220 "format": "int32", | 1204 "format": "int32", |
1221 "type": "integer" | 1205 "type": "integer" |
1222 } | 1206 } |
1223 }, | 1207 }, |
1224 "type": "object" | 1208 "type": "object" |
1225 }, | 1209 }, |
| 1210 "DetectedLanguage": { |
| 1211 "description": "Detected language for a structural component.", |
| 1212 "id": "DetectedLanguage", |
| 1213 "properties": { |
| 1214 "languageCode": { |
| 1215 "description": "The BCP-47 language code, such as \"en-US\"
or \"sr-Latn\". For more\ninformation, see\nhttp://www.unicode.org/reports/tr35/
#Unicode_locale_identifier.", |
| 1216 "type": "string" |
| 1217 }, |
| 1218 "confidence": { |
| 1219 "description": "Confidence of detected language. Range [0, 1
].", |
| 1220 "format": "float", |
| 1221 "type": "number" |
| 1222 } |
| 1223 }, |
| 1224 "type": "object" |
| 1225 }, |
1226 "WebEntity": { | 1226 "WebEntity": { |
1227 "description": "Entity deduced from similar images on the Internet."
, | 1227 "description": "Entity deduced from similar images on the Internet."
, |
1228 "id": "WebEntity", | 1228 "id": "WebEntity", |
1229 "properties": { | 1229 "properties": { |
1230 "entityId": { | 1230 "entityId": { |
1231 "description": "Opaque entity ID.", | 1231 "description": "Opaque entity ID.", |
1232 "type": "string" | 1232 "type": "string" |
1233 }, | 1233 }, |
1234 "description": { | 1234 "description": { |
1235 "description": "Canonical description of the entity, in Engl
ish.", | 1235 "description": "Canonical description of the entity, in Engl
ish.", |
1236 "type": "string" | 1236 "type": "string" |
1237 }, | 1237 }, |
1238 "score": { | 1238 "score": { |
1239 "description": "Overall relevancy score for the entity.\nNot
normalized and not comparable across different image queries.", | 1239 "description": "Overall relevancy score for the entity.\nNot
normalized and not comparable across different image queries.", |
1240 "format": "float", | 1240 "format": "float", |
1241 "type": "number" | 1241 "type": "number" |
1242 } | 1242 } |
1243 }, | 1243 }, |
1244 "type": "object" | 1244 "type": "object" |
1245 }, | 1245 }, |
1246 "TextProperty": { | 1246 "TextProperty": { |
1247 "description": "Additional information detected on the structural co
mponent.", | 1247 "description": "Additional information detected on the structural co
mponent.", |
1248 "id": "TextProperty", | 1248 "id": "TextProperty", |
1249 "properties": { | 1249 "properties": { |
| 1250 "detectedBreak": { |
| 1251 "$ref": "DetectedBreak", |
| 1252 "description": "Detected start or end of a text segment." |
| 1253 }, |
1250 "detectedLanguages": { | 1254 "detectedLanguages": { |
1251 "description": "A list of detected languages together with c
onfidence.", | 1255 "description": "A list of detected languages together with c
onfidence.", |
1252 "items": { | 1256 "items": { |
1253 "$ref": "DetectedLanguage" | 1257 "$ref": "DetectedLanguage" |
1254 }, | 1258 }, |
1255 "type": "array" | 1259 "type": "array" |
1256 }, | |
1257 "detectedBreak": { | |
1258 "$ref": "DetectedBreak", | |
1259 "description": "Detected start or end of a text segment." | |
1260 } | 1260 } |
1261 }, | 1261 }, |
1262 "type": "object" | 1262 "type": "object" |
1263 }, | 1263 }, |
1264 "BoundingPoly": { | 1264 "BoundingPoly": { |
1265 "description": "A bounding polygon for the detected image annotation
.", | 1265 "description": "A bounding polygon for the detected image annotation
.", |
1266 "id": "BoundingPoly", | 1266 "id": "BoundingPoly", |
1267 "properties": { | 1267 "properties": { |
1268 "vertices": { | 1268 "vertices": { |
1269 "description": "The bounding polygon vertices.", | 1269 "description": "The bounding polygon vertices.", |
1270 "items": { | 1270 "items": { |
1271 "$ref": "Vertex" | 1271 "$ref": "Vertex" |
1272 }, | 1272 }, |
1273 "type": "array" | 1273 "type": "array" |
1274 } | 1274 } |
1275 }, | 1275 }, |
1276 "type": "object" | 1276 "type": "object" |
1277 }, | 1277 }, |
1278 "AnnotateImageResponse": { | 1278 "AnnotateImageResponse": { |
1279 "description": "Response to an image annotation request.", | 1279 "description": "Response to an image annotation request.", |
1280 "id": "AnnotateImageResponse", | 1280 "id": "AnnotateImageResponse", |
1281 "properties": { | 1281 "properties": { |
1282 "error": { | |
1283 "$ref": "Status", | |
1284 "description": "If set, represents the error message for the
operation.\nNote that filled-in image annotations are guaranteed to be\ncorrect
, even when `error` is set." | |
1285 }, | |
1286 "fullTextAnnotation": { | 1282 "fullTextAnnotation": { |
1287 "$ref": "TextAnnotation", | 1283 "$ref": "TextAnnotation", |
1288 "description": "If present, text (OCR) detection or document
(OCR) text detection has\ncompleted successfully.\nThis annotation provides the
structural hierarchy for the OCR detected\ntext." | 1284 "description": "If present, text (OCR) detection or document
(OCR) text detection has\ncompleted successfully.\nThis annotation provides the
structural hierarchy for the OCR detected\ntext." |
1289 }, | 1285 }, |
1290 "landmarkAnnotations": { | 1286 "landmarkAnnotations": { |
1291 "description": "If present, landmark detection has completed
successfully.", | 1287 "description": "If present, landmark detection has completed
successfully.", |
1292 "items": { | 1288 "items": { |
1293 "$ref": "EntityAnnotation" | 1289 "$ref": "EntityAnnotation" |
1294 }, | 1290 }, |
1295 "type": "array" | 1291 "type": "array" |
(...skipping 16 matching lines...) Expand all Loading... |
1312 "$ref": "ImageProperties", | 1308 "$ref": "ImageProperties", |
1313 "description": "If present, image properties were extracted
successfully." | 1309 "description": "If present, image properties were extracted
successfully." |
1314 }, | 1310 }, |
1315 "logoAnnotations": { | 1311 "logoAnnotations": { |
1316 "description": "If present, logo detection has completed suc
cessfully.", | 1312 "description": "If present, logo detection has completed suc
cessfully.", |
1317 "items": { | 1313 "items": { |
1318 "$ref": "EntityAnnotation" | 1314 "$ref": "EntityAnnotation" |
1319 }, | 1315 }, |
1320 "type": "array" | 1316 "type": "array" |
1321 }, | 1317 }, |
| 1318 "cropHintsAnnotation": { |
| 1319 "$ref": "CropHintsAnnotation", |
| 1320 "description": "If present, crop hints have completed succes
sfully." |
| 1321 }, |
1322 "webDetection": { | 1322 "webDetection": { |
1323 "$ref": "WebDetection", | 1323 "$ref": "WebDetection", |
1324 "description": "If present, web detection has completed succ
essfully." | 1324 "description": "If present, web detection has completed succ
essfully." |
1325 }, | 1325 }, |
1326 "cropHintsAnnotation": { | |
1327 "$ref": "CropHintsAnnotation", | |
1328 "description": "If present, crop hints have completed succes
sfully." | |
1329 }, | |
1330 "safeSearchAnnotation": { | 1326 "safeSearchAnnotation": { |
1331 "$ref": "SafeSearchAnnotation", | 1327 "$ref": "SafeSearchAnnotation", |
1332 "description": "If present, safe-search annotation has compl
eted successfully." | 1328 "description": "If present, safe-search annotation has compl
eted successfully." |
1333 }, | 1329 }, |
1334 "labelAnnotations": { | 1330 "labelAnnotations": { |
1335 "description": "If present, label detection has completed su
ccessfully.", | 1331 "description": "If present, label detection has completed su
ccessfully.", |
1336 "items": { | 1332 "items": { |
1337 "$ref": "EntityAnnotation" | 1333 "$ref": "EntityAnnotation" |
1338 }, | 1334 }, |
1339 "type": "array" | 1335 "type": "array" |
| 1336 }, |
| 1337 "error": { |
| 1338 "$ref": "Status", |
| 1339 "description": "If set, represents the error message for the
operation.\nNote that filled-in image annotations are guaranteed to be\ncorrect
, even when `error` is set." |
1340 } | 1340 } |
1341 }, | 1341 }, |
1342 "type": "object" | 1342 "type": "object" |
1343 } | 1343 } |
1344 }, | 1344 }, |
1345 "servicePath": "", | 1345 "servicePath": "", |
1346 "title": "Google Cloud Vision API", | 1346 "title": "Google Cloud Vision API", |
1347 "version": "v1" | 1347 "version": "v1" |
1348 } | 1348 } |
OLD | NEW |