Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: discovery/googleapis/vision__v1.json

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/vault__v1.json ('k') | discovery/googleapis/youtubeAnalytics__v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-vision": { 5 "https://www.googleapis.com/auth/cloud-vision": {
6 "description": "Apply machine learning models to understand and label images" 6 "description": "Apply machine learning models to understand and label images"
7 }, 7 },
8 "https://www.googleapis.com/auth/cloud-platform": { 8 "https://www.googleapis.com/auth/cloud-platform": {
9 "description": "View and manage your data across Google Clou d Platform services" 9 "description": "View and manage your data across Google Clou d Platform services"
10 } 10 }
(...skipping 10 matching lines...) Expand all
21 "icons": { 21 "icons": {
22 "x16": "http://www.google.com/images/icons/product/search-16.gif", 22 "x16": "http://www.google.com/images/icons/product/search-16.gif",
23 "x32": "http://www.google.com/images/icons/product/search-32.gif" 23 "x32": "http://www.google.com/images/icons/product/search-32.gif"
24 }, 24 },
25 "id": "vision:v1", 25 "id": "vision:v1",
26 "kind": "discovery#restDescription", 26 "kind": "discovery#restDescription",
27 "name": "vision", 27 "name": "vision",
28 "ownerDomain": "google.com", 28 "ownerDomain": "google.com",
29 "ownerName": "Google", 29 "ownerName": "Google",
30 "parameters": { 30 "parameters": {
31 "$.xgafv": {
32 "description": "V1 error format.",
33 "enum": [
34 "1",
35 "2"
36 ],
37 "enumDescriptions": [
38 "v1 error format",
39 "v2 error format"
40 ],
41 "location": "query",
42 "type": "string"
43 },
44 "callback": {
45 "description": "JSONP",
46 "location": "query",
47 "type": "string"
48 },
49 "alt": {
50 "default": "json",
51 "description": "Data format for response.",
52 "enum": [
53 "json",
54 "media",
55 "proto"
56 ],
57 "enumDescriptions": [
58 "Responses with Content-Type of application/json",
59 "Media download with context-dependent Content-Type",
60 "Responses with Content-Type of application/x-protobuf"
61 ],
62 "location": "query",
63 "type": "string"
64 },
65 "access_token": {
66 "description": "OAuth access token.",
67 "location": "query",
68 "type": "string"
69 },
70 "key": {
71 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
72 "location": "query",
73 "type": "string"
74 },
31 "quotaUser": { 75 "quotaUser": {
32 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.", 76 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
33 "location": "query", 77 "location": "query",
34 "type": "string" 78 "type": "string"
35 }, 79 },
36 "pp": { 80 "pp": {
37 "default": "true", 81 "default": "true",
38 "description": "Pretty-print response.", 82 "description": "Pretty-print response.",
39 "location": "query", 83 "location": "query",
40 "type": "boolean" 84 "type": "boolean"
41 }, 85 },
86 "bearer_token": {
87 "description": "OAuth bearer token.",
88 "location": "query",
89 "type": "string"
90 },
42 "oauth_token": { 91 "oauth_token": {
43 "description": "OAuth 2.0 token for the current user.", 92 "description": "OAuth 2.0 token for the current user.",
44 "location": "query", 93 "location": "query",
45 "type": "string" 94 "type": "string"
46 }, 95 },
47 "bearer_token": {
48 "description": "OAuth bearer token.",
49 "location": "query",
50 "type": "string"
51 },
52 "upload_protocol": { 96 "upload_protocol": {
53 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 97 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
54 "location": "query", 98 "location": "query",
55 "type": "string" 99 "type": "string"
56 }, 100 },
57 "prettyPrint": { 101 "prettyPrint": {
58 "default": "true", 102 "default": "true",
59 "description": "Returns response with indentations and line breaks." , 103 "description": "Returns response with indentations and line breaks." ,
60 "location": "query", 104 "location": "query",
61 "type": "boolean" 105 "type": "boolean"
62 }, 106 },
63 "uploadType": { 107 "uploadType": {
64 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 108 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
65 "location": "query", 109 "location": "query",
66 "type": "string" 110 "type": "string"
67 }, 111 },
68 "fields": { 112 "fields": {
69 "description": "Selector specifying which fields to include in a par tial response.", 113 "description": "Selector specifying which fields to include in a par tial response.",
70 "location": "query", 114 "location": "query",
71 "type": "string" 115 "type": "string"
72 },
73 "callback": {
74 "description": "JSONP",
75 "location": "query",
76 "type": "string"
77 },
78 "$.xgafv": {
79 "description": "V1 error format.",
80 "enum": [
81 "1",
82 "2"
83 ],
84 "enumDescriptions": [
85 "v1 error format",
86 "v2 error format"
87 ],
88 "location": "query",
89 "type": "string"
90 },
91 "alt": {
92 "default": "json",
93 "description": "Data format for response.",
94 "enum": [
95 "json",
96 "media",
97 "proto"
98 ],
99 "enumDescriptions": [
100 "Responses with Content-Type of application/json",
101 "Media download with context-dependent Content-Type",
102 "Responses with Content-Type of application/x-protobuf"
103 ],
104 "location": "query",
105 "type": "string"
106 },
107 "key": {
108 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
109 "location": "query",
110 "type": "string"
111 },
112 "access_token": {
113 "description": "OAuth access token.",
114 "location": "query",
115 "type": "string"
116 } 116 }
117 }, 117 },
118 "protocol": "rest", 118 "protocol": "rest",
119 "resources": { 119 "resources": {
120 "images": { 120 "images": {
121 "methods": { 121 "methods": {
122 "annotate": { 122 "annotate": {
123 "description": "Run image detection and annotation for a bat ch of images.", 123 "description": "Run image detection and annotation for a bat ch of images.",
124 "httpMethod": "POST", 124 "httpMethod": "POST",
125 "id": "vision.images.annotate", 125 "id": "vision.images.annotate",
126 "parameterOrder": [], 126 "parameterOrder": [],
127 "parameters": {}, 127 "parameters": {},
128 "path": "v1/images:annotate", 128 "path": "v1/images:annotate",
129 "request": { 129 "request": {
130 "$ref": "BatchAnnotateImagesRequest" 130 "$ref": "BatchAnnotateImagesRequest"
131 }, 131 },
132 "response": { 132 "response": {
133 "$ref": "BatchAnnotateImagesResponse" 133 "$ref": "BatchAnnotateImagesResponse"
134 }, 134 },
135 "scopes": [ 135 "scopes": [
136 "https://www.googleapis.com/auth/cloud-platform", 136 "https://www.googleapis.com/auth/cloud-platform",
137 "https://www.googleapis.com/auth/cloud-vision" 137 "https://www.googleapis.com/auth/cloud-vision"
138 ] 138 ]
139 } 139 }
140 } 140 }
141 } 141 }
142 }, 142 },
143 "revision": "20170626", 143 "revision": "20170725",
144 "rootUrl": "https://vision.googleapis.com/", 144 "rootUrl": "https://vision.googleapis.com/",
145 "schemas": { 145 "schemas": {
146 "AnnotateImageResponse": {
147 "description": "Response to an image annotation request.",
148 "id": "AnnotateImageResponse",
149 "properties": {
150 "error": {
151 "$ref": "Status",
152 "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."
153 },
154 "fullTextAnnotation": {
155 "$ref": "TextAnnotation",
156 "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."
157 },
158 "landmarkAnnotations": {
159 "description": "If present, landmark detection has completed successfully.",
160 "items": {
161 "$ref": "EntityAnnotation"
162 },
163 "type": "array"
164 },
165 "textAnnotations": {
166 "description": "If present, text (OCR) detection has complet ed successfully.",
167 "items": {
168 "$ref": "EntityAnnotation"
169 },
170 "type": "array"
171 },
172 "imagePropertiesAnnotation": {
173 "$ref": "ImageProperties",
174 "description": "If present, image properties were extracted successfully."
175 },
176 "faceAnnotations": {
177 "description": "If present, face detection has completed suc cessfully.",
178 "items": {
179 "$ref": "FaceAnnotation"
180 },
181 "type": "array"
182 },
183 "logoAnnotations": {
184 "description": "If present, logo detection has completed suc cessfully.",
185 "items": {
186 "$ref": "EntityAnnotation"
187 },
188 "type": "array"
189 },
190 "webDetection": {
191 "$ref": "WebDetection",
192 "description": "If present, web detection has completed succ essfully."
193 },
194 "cropHintsAnnotation": {
195 "$ref": "CropHintsAnnotation",
196 "description": "If present, crop hints have completed succes sfully."
197 },
198 "safeSearchAnnotation": {
199 "$ref": "SafeSearchAnnotation",
200 "description": "If present, safe-search annotation has compl eted successfully."
201 },
202 "labelAnnotations": {
203 "description": "If present, label detection has completed su ccessfully.",
204 "items": {
205 "$ref": "EntityAnnotation"
206 },
207 "type": "array"
208 }
209 },
210 "type": "object"
211 },
212 "CropHintsParams": {
213 "description": "Parameters for crop hints annotation request.",
214 "id": "CropHintsParams",
215 "properties": {
216 "aspectRatios": {
217 "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.",
218 "items": {
219 "format": "float",
220 "type": "number"
221 },
222 "type": "array"
223 }
224 },
225 "type": "object"
226 },
227 "Block": {
228 "description": "Logical element on the page.",
229 "id": "Block",
230 "properties": {
231 "boundingBox": {
232 "$ref": "BoundingPoly",
233 "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)."
234 },
235 "paragraphs": {
236 "description": "List of paragraphs in this block (if this bl ocks is of type text).",
237 "items": {
238 "$ref": "Paragraph"
239 },
240 "type": "array"
241 },
242 "property": {
243 "$ref": "TextProperty",
244 "description": "Additional information detected for the bloc k."
245 },
246 "blockType": {
247 "description": "Detected block type (text, image etc) for th is block.",
248 "enum": [
249 "UNKNOWN",
250 "TEXT",
251 "TABLE",
252 "PICTURE",
253 "RULER",
254 "BARCODE"
255 ],
256 "enumDescriptions": [
257 "Unknown block type.",
258 "Regular text block.",
259 "Table block.",
260 "Image block.",
261 "Horizontal/vertical line box.",
262 "Barcode block."
263 ],
264 "type": "string"
265 }
266 },
267 "type": "object"
268 },
269 "WebDetection": {
270 "description": "Relevant information for the image from the Internet .",
271 "id": "WebDetection",
272 "properties": {
273 "fullMatchingImages": {
274 "description": "Fully matching images from the Internet.\nCa n include resized copies of the query image.",
275 "items": {
276 "$ref": "WebImage"
277 },
278 "type": "array"
279 },
280 "webEntities": {
281 "description": "Deduced entities from similar images on the Internet.",
282 "items": {
283 "$ref": "WebEntity"
284 },
285 "type": "array"
286 },
287 "pagesWithMatchingImages": {
288 "description": "Web pages containing the matching images fro m the Internet.",
289 "items": {
290 "$ref": "WebPage"
291 },
292 "type": "array"
293 },
294 "visuallySimilarImages": {
295 "description": "The visually similar image results.",
296 "items": {
297 "$ref": "WebImage"
298 },
299 "type": "array"
300 },
301 "partialMatchingImages": {
302 "description": "Partial matching images from the Internet.\n Those images are similar enough to share some key-point features. For\nexample a n original image will likely have partial matching for its crops.",
303 "items": {
304 "$ref": "WebImage"
305 },
306 "type": "array"
307 }
308 },
309 "type": "object"
310 },
311 "BatchAnnotateImagesResponse": {
312 "description": "Response to a batch image annotation request.",
313 "id": "BatchAnnotateImagesResponse",
314 "properties": {
315 "responses": {
316 "description": "Individual responses to image annotation req uests within the batch.",
317 "items": {
318 "$ref": "AnnotateImageResponse"
319 },
320 "type": "array"
321 }
322 },
323 "type": "object"
324 },
325 "ImageSource": {
326 "description": "External image source (Google Cloud Storage image lo cation).",
327 "id": "ImageSource",
328 "properties": {
329 "gcsImageUri": {
330 "description": "NOTE: For new code `image_uri` below is pref erred.\nGoogle Cloud Storage image URI, which must be in the following form:\n`g s://bucket_name/object_name` (for details, see\n[Google Cloud Storage Request\nU RIs](https://cloud.google.com/storage/docs/reference-uris)).\nNOTE: Cloud Storag e object versioning is not supported.",
331 "type": "string"
332 },
333 "imageUri": {
334 "description": "Image URI which supports:\n1) Google Cloud S torage image URI, which must be in the following form:\n`gs://bucket_name/object _name` (for details, see\n[Google Cloud Storage Request\nURIs](https://cloud.goo gle.com/storage/docs/reference-uris)).\nNOTE: Cloud Storage object versioning is not supported.\n2) Publicly accessible image HTTP/HTTPS URL.\nThis is preferred over the legacy `gcs_image_uri` above. When both\n`gcs_image_uri` and `image_ur i` are specified, `image_uri` takes\nprecedence.",
335 "type": "string"
336 }
337 },
338 "type": "object"
339 },
340 "LocationInfo": {
341 "description": "Detected entity location information.",
342 "id": "LocationInfo",
343 "properties": {
344 "latLng": {
345 "$ref": "LatLng",
346 "description": "lat/long location coordinates."
347 }
348 },
349 "type": "object"
350 },
351 "Property": {
352 "description": "A `Property` consists of a user-supplied name/value pair.",
353 "id": "Property",
354 "properties": {
355 "value": {
356 "description": "Value of the property.",
357 "type": "string"
358 },
359 "uint64Value": {
360 "description": "Value of numeric properties.",
361 "format": "uint64",
362 "type": "string"
363 },
364 "name": {
365 "description": "Name of the property.",
366 "type": "string"
367 }
368 },
369 "type": "object"
370 },
371 "Position": {
372 "description": "A 3D position in the image, used primarily for Face detection landmarks.\nA valid Position must have both x and y coordinates.\nThe position coordinates are in the same scale as the original image.",
373 "id": "Position",
374 "properties": {
375 "z": {
376 "description": "Z coordinate (or depth).",
377 "format": "float",
378 "type": "number"
379 },
380 "x": {
381 "description": "X coordinate.",
382 "format": "float",
383 "type": "number"
384 },
385 "y": {
386 "description": "Y coordinate.",
387 "format": "float",
388 "type": "number"
389 }
390 },
391 "type": "object"
392 },
393 "ColorInfo": {
394 "description": "Color information consists of RGB channels, score, a nd the fraction of\nthe image that the color occupies in the image.",
395 "id": "ColorInfo",
396 "properties": {
397 "pixelFraction": {
398 "description": "The fraction of pixels the color occupies in the image.\nValue in range [0, 1].",
399 "format": "float",
400 "type": "number"
401 },
402 "color": {
403 "$ref": "Color",
404 "description": "RGB components of the color."
405 },
406 "score": {
407 "description": "Image-specific score for this color. Value i n range [0, 1].",
408 "format": "float",
409 "type": "number"
410 }
411 },
412 "type": "object"
413 },
414 "WebPage": {
415 "description": "Metadata for web pages.",
416 "id": "WebPage",
417 "properties": {
418 "score": {
419 "description": "Overall relevancy score for the web page.\nN ot normalized and not comparable across different image queries.",
420 "format": "float",
421 "type": "number"
422 },
423 "url": {
424 "description": "The result web page URL.",
425 "type": "string"
426 }
427 },
428 "type": "object"
429 },
430 "EntityAnnotation": {
431 "description": "Set of detected entity features.",
432 "id": "EntityAnnotation",
433 "properties": {
434 "score": {
435 "description": "Overall score of the result. Range [0, 1].",
436 "format": "float",
437 "type": "number"
438 },
439 "locations": {
440 "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.",
441 "items": {
442 "$ref": "LocationInfo"
443 },
444 "type": "array"
445 },
446 "mid": {
447 "description": "Opaque entity ID. Some IDs may be available in\n[Google Knowledge Graph Search API](https://developers.google.com/knowledge- graph/).",
448 "type": "string"
449 },
450 "confidence": {
451 "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].",
452 "format": "float",
453 "type": "number"
454 },
455 "locale": {
456 "description": "The language code for the locale in which th e entity textual\n`description` is expressed.",
457 "type": "string"
458 },
459 "boundingPoly": {
460 "$ref": "BoundingPoly",
461 "description": "Image region to which this entity belongs. N ot produced\nfor `LABEL_DETECTION` features."
462 },
463 "topicality": {
464 "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].",
465 "format": "float",
466 "type": "number"
467 },
468 "description": {
469 "description": "Entity textual description, expressed in its `locale` language.",
470 "type": "string"
471 },
472 "properties": {
473 "description": "Some entities may have optional user-supplie d `Property` (name/value)\nfields, such a score or string that qualifies the ent ity.",
474 "items": {
475 "$ref": "Property"
476 },
477 "type": "array"
478 }
479 },
480 "type": "object"
481 },
146 "CropHint": { 482 "CropHint": {
147 "description": "Single crop hint that is used to generate a new crop when serving an image.", 483 "description": "Single crop hint that is used to generate a new crop when serving an image.",
148 "id": "CropHint", 484 "id": "CropHint",
149 "properties": { 485 "properties": {
150 "importanceFraction": { 486 "importanceFraction": {
151 "description": "Fraction of importance of this salient regio n with respect to the original\nimage.", 487 "description": "Fraction of importance of this salient regio n with respect to the original\nimage.",
152 "format": "float", 488 "format": "float",
153 "type": "number" 489 "type": "number"
154 }, 490 },
155 "confidence": { 491 "confidence": {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 "format": "byte", 662 "format": "byte",
327 "type": "string" 663 "type": "string"
328 } 664 }
329 }, 665 },
330 "type": "object" 666 "type": "object"
331 }, 667 },
332 "FaceAnnotation": { 668 "FaceAnnotation": {
333 "description": "A face annotation object contains the results of fac e detection.", 669 "description": "A face annotation object contains the results of fac e detection.",
334 "id": "FaceAnnotation", 670 "id": "FaceAnnotation",
335 "properties": { 671 "properties": {
336 "tiltAngle": { 672 "angerLikelihood": {
337 "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].", 673 "description": "Anger likelihood.",
338 "format": "float",
339 "type": "number"
340 },
341 "fdBoundingPoly": {
342 "$ref": "BoundingPoly",
343 "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."
344 },
345 "surpriseLikelihood": {
346 "description": "Surprise likelihood.",
347 "enum": [ 674 "enum": [
348 "UNKNOWN", 675 "UNKNOWN",
349 "VERY_UNLIKELY", 676 "VERY_UNLIKELY",
350 "UNLIKELY", 677 "UNLIKELY",
351 "POSSIBLE", 678 "POSSIBLE",
352 "LIKELY", 679 "LIKELY",
353 "VERY_LIKELY" 680 "VERY_LIKELY"
354 ], 681 ],
355 "enumDescriptions": [ 682 "enumDescriptions": [
356 "Unknown likelihood.", 683 "Unknown likelihood.",
357 "It is very unlikely that the image belongs to the speci fied vertical.", 684 "It is very unlikely that the image belongs to the speci fied vertical.",
358 "It is unlikely that the image belongs to the specified vertical.", 685 "It is unlikely that the image belongs to the specified vertical.",
359 "It is possible that the image belongs to the specified vertical.", 686 "It is possible that the image belongs to the specified vertical.",
360 "It is likely that the image belongs to the specified ve rtical.", 687 "It is likely that the image belongs to the specified ve rtical.",
361 "It is very likely that the image belongs to the specifi ed vertical." 688 "It is very likely that the image belongs to the specifi ed vertical."
362 ], 689 ],
363 "type": "string" 690 "type": "string"
364 }, 691 },
365 "landmarks": { 692 "landmarks": {
366 "description": "Detected face landmarks.", 693 "description": "Detected face landmarks.",
367 "items": { 694 "items": {
368 "$ref": "Landmark" 695 "$ref": "Landmark"
369 }, 696 },
370 "type": "array" 697 "type": "array"
371 }, 698 },
372 "angerLikelihood": { 699 "surpriseLikelihood": {
373 "description": "Anger likelihood.", 700 "description": "Surprise likelihood.",
374 "enum": [ 701 "enum": [
375 "UNKNOWN", 702 "UNKNOWN",
376 "VERY_UNLIKELY", 703 "VERY_UNLIKELY",
377 "UNLIKELY", 704 "UNLIKELY",
378 "POSSIBLE", 705 "POSSIBLE",
379 "LIKELY", 706 "LIKELY",
380 "VERY_LIKELY" 707 "VERY_LIKELY"
381 ], 708 ],
382 "enumDescriptions": [ 709 "enumDescriptions": [
383 "Unknown likelihood.", 710 "Unknown likelihood.",
384 "It is very unlikely that the image belongs to the speci fied vertical.", 711 "It is very unlikely that the image belongs to the speci fied vertical.",
385 "It is unlikely that the image belongs to the specified vertical.", 712 "It is unlikely that the image belongs to the specified vertical.",
386 "It is possible that the image belongs to the specified vertical.", 713 "It is possible that the image belongs to the specified vertical.",
387 "It is likely that the image belongs to the specified ve rtical.", 714 "It is likely that the image belongs to the specified ve rtical.",
388 "It is very likely that the image belongs to the specifi ed vertical." 715 "It is very likely that the image belongs to the specifi ed vertical."
389 ], 716 ],
390 "type": "string" 717 "type": "string"
391 }, 718 },
719 "landmarkingConfidence": {
720 "description": "Face landmarking confidence. Range [0, 1].",
721 "format": "float",
722 "type": "number"
723 },
392 "joyLikelihood": { 724 "joyLikelihood": {
393 "description": "Joy likelihood.", 725 "description": "Joy likelihood.",
394 "enum": [ 726 "enum": [
395 "UNKNOWN", 727 "UNKNOWN",
396 "VERY_UNLIKELY", 728 "VERY_UNLIKELY",
397 "UNLIKELY", 729 "UNLIKELY",
398 "POSSIBLE", 730 "POSSIBLE",
399 "LIKELY", 731 "LIKELY",
400 "VERY_LIKELY" 732 "VERY_LIKELY"
401 ], 733 ],
402 "enumDescriptions": [ 734 "enumDescriptions": [
403 "Unknown likelihood.", 735 "Unknown likelihood.",
404 "It is very unlikely that the image belongs to the speci fied vertical.", 736 "It is very unlikely that the image belongs to the speci fied vertical.",
405 "It is unlikely that the image belongs to the specified vertical.", 737 "It is unlikely that the image belongs to the specified vertical.",
406 "It is possible that the image belongs to the specified vertical.", 738 "It is possible that the image belongs to the specified vertical.",
407 "It is likely that the image belongs to the specified ve rtical.", 739 "It is likely that the image belongs to the specified ve rtical.",
408 "It is very likely that the image belongs to the specifi ed vertical." 740 "It is very likely that the image belongs to the specifi ed vertical."
409 ], 741 ],
410 "type": "string" 742 "type": "string"
411 }, 743 },
412 "landmarkingConfidence": {
413 "description": "Face landmarking confidence. Range [0, 1].",
414 "format": "float",
415 "type": "number"
416 },
417 "detectionConfidence": { 744 "detectionConfidence": {
418 "description": "Detection confidence. Range [0, 1].", 745 "description": "Detection confidence. Range [0, 1].",
419 "format": "float", 746 "format": "float",
420 "type": "number" 747 "type": "number"
421 }, 748 },
422 "panAngle": { 749 "panAngle": {
423 "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].", 750 "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].",
424 "format": "float", 751 "format": "float",
425 "type": "number" 752 "type": "number"
426 }, 753 },
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 ], 832 ],
506 "enumDescriptions": [ 833 "enumDescriptions": [
507 "Unknown likelihood.", 834 "Unknown likelihood.",
508 "It is very unlikely that the image belongs to the speci fied vertical.", 835 "It is very unlikely that the image belongs to the speci fied vertical.",
509 "It is unlikely that the image belongs to the specified vertical.", 836 "It is unlikely that the image belongs to the specified vertical.",
510 "It is possible that the image belongs to the specified vertical.", 837 "It is possible that the image belongs to the specified vertical.",
511 "It is likely that the image belongs to the specified ve rtical.", 838 "It is likely that the image belongs to the specified ve rtical.",
512 "It is very likely that the image belongs to the specifi ed vertical." 839 "It is very likely that the image belongs to the specifi ed vertical."
513 ], 840 ],
514 "type": "string" 841 "type": "string"
842 },
843 "tiltAngle": {
844 "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].",
845 "format": "float",
846 "type": "number"
847 },
848 "fdBoundingPoly": {
849 "$ref": "BoundingPoly",
850 "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."
515 } 851 }
516 }, 852 },
517 "type": "object" 853 "type": "object"
518 }, 854 },
519 "BatchAnnotateImagesRequest": { 855 "BatchAnnotateImagesRequest": {
520 "description": "Multiple image annotation requests are batched into a single service call.", 856 "description": "Multiple image annotation requests are batched into a single service call.",
521 "id": "BatchAnnotateImagesRequest", 857 "id": "BatchAnnotateImagesRequest",
522 "properties": { 858 "properties": {
523 "requests": { 859 "requests": {
524 "description": "Individual image annotation requests for thi s batch.", 860 "description": "Individual image annotation requests for thi s batch.",
525 "items": { 861 "items": {
526 "$ref": "AnnotateImageRequest" 862 "$ref": "AnnotateImageRequest"
527 }, 863 },
528 "type": "array" 864 "type": "array"
529 } 865 }
530 }, 866 },
531 "type": "object" 867 "type": "object"
532 }, 868 },
533 "DetectedBreak": { 869 "DetectedBreak": {
534 "description": "Detected start or end of a structural component.", 870 "description": "Detected start or end of a structural component.",
535 "id": "DetectedBreak", 871 "id": "DetectedBreak",
536 "properties": { 872 "properties": {
537 "isPrefix": {
538 "description": "True if break prepends the element.",
539 "type": "boolean"
540 },
541 "type": { 873 "type": {
542 "description": "Detected break type.", 874 "description": "Detected break type.",
543 "enum": [ 875 "enum": [
544 "UNKNOWN", 876 "UNKNOWN",
545 "SPACE", 877 "SPACE",
546 "SURE_SPACE", 878 "SURE_SPACE",
547 "EOL_SURE_SPACE", 879 "EOL_SURE_SPACE",
548 "HYPHEN", 880 "HYPHEN",
549 "LINE_BREAK" 881 "LINE_BREAK"
550 ], 882 ],
551 "enumDescriptions": [ 883 "enumDescriptions": [
552 "Unknown break label type.", 884 "Unknown break label type.",
553 "Regular space.", 885 "Regular space.",
554 "Sure space (very wide).", 886 "Sure space (very wide).",
555 "Line-wrapping break.", 887 "Line-wrapping break.",
556 "End-line hyphen that is not present in text; does not c o-occur with\n`SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.", 888 "End-line hyphen that is not present in text; does not c o-occur with\n`SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.",
557 "Line break that ends a paragraph." 889 "Line break that ends a paragraph."
558 ], 890 ],
559 "type": "string" 891 "type": "string"
892 },
893 "isPrefix": {
894 "description": "True if break prepends the element.",
895 "type": "boolean"
560 } 896 }
561 }, 897 },
562 "type": "object" 898 "type": "object"
563 }, 899 },
564 "ImageContext": { 900 "ImageContext": {
565 "description": "Image context and/or feature-specific parameters.", 901 "description": "Image context and/or feature-specific parameters.",
566 "id": "ImageContext", 902 "id": "ImageContext",
567 "properties": { 903 "properties": {
568 "latLongRect": { 904 "latLongRect": {
569 "$ref": "LatLongRect", 905 "$ref": "LatLongRect",
(...skipping 10 matching lines...) Expand all
580 }, 916 },
581 "type": "array" 917 "type": "array"
582 } 918 }
583 }, 919 },
584 "type": "object" 920 "type": "object"
585 }, 921 },
586 "Page": { 922 "Page": {
587 "description": "Detected page from OCR.", 923 "description": "Detected page from OCR.",
588 "id": "Page", 924 "id": "Page",
589 "properties": { 925 "properties": {
926 "height": {
927 "description": "Page height in pixels.",
928 "format": "int32",
929 "type": "integer"
930 },
590 "width": { 931 "width": {
591 "description": "Page width in pixels.", 932 "description": "Page width in pixels.",
592 "format": "int32", 933 "format": "int32",
593 "type": "integer" 934 "type": "integer"
594 }, 935 },
595 "blocks": { 936 "blocks": {
596 "description": "List of blocks of text, images etc on this p age.", 937 "description": "List of blocks of text, images etc on this p age.",
597 "items": { 938 "items": {
598 "$ref": "Block" 939 "$ref": "Block"
599 }, 940 },
600 "type": "array" 941 "type": "array"
601 }, 942 },
602 "property": { 943 "property": {
603 "$ref": "TextProperty", 944 "$ref": "TextProperty",
604 "description": "Additional information detected on the page. " 945 "description": "Additional information detected on the page. "
605 },
606 "height": {
607 "description": "Page height in pixels.",
608 "format": "int32",
609 "type": "integer"
610 } 946 }
611 }, 947 },
612 "type": "object" 948 "type": "object"
613 }, 949 },
614 "AnnotateImageRequest": { 950 "AnnotateImageRequest": {
615 "description": "Request for performing Google Cloud Vision API tasks over a user-provided\nimage, with user-requested features.", 951 "description": "Request for performing Google Cloud Vision API tasks over a user-provided\nimage, with user-requested features.",
616 "id": "AnnotateImageRequest", 952 "id": "AnnotateImageRequest",
617 "properties": { 953 "properties": {
618 "features": { 954 "features": {
619 "description": "Requested features.", 955 "description": "Requested features.",
(...skipping 10 matching lines...) Expand all
630 "$ref": "ImageContext", 966 "$ref": "ImageContext",
631 "description": "Additional context that may accompany the im age." 967 "description": "Additional context that may accompany the im age."
632 } 968 }
633 }, 969 },
634 "type": "object" 970 "type": "object"
635 }, 971 },
636 "Status": { 972 "Status": {
637 "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` that can be used for common error conditions.\n\n# Lang uage 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` mess age is\nexposed in different client libraries and different wire protocols, it c an be\nmapped differently. For example, it will likely be mapped to some excepti ons\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\nenvironm ents, either with or without APIs, to provide a\nconsistent developer experience 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 m ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\ n- Asynchronous operations. If an API call embeds asynchronous operation\n re sults in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are store d in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.", 973 "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` that can be used for common error conditions.\n\n# Lang uage 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` mess age is\nexposed in different client libraries and different wire protocols, it c an be\nmapped differently. For example, it will likely be mapped to some excepti ons\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\nenvironm ents, either with or without APIs, to provide a\nconsistent developer experience 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 m ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\ n- Asynchronous operations. If an API call embeds asynchronous operation\n re sults in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are store d in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
638 "id": "Status", 974 "id": "Status",
639 "properties": { 975 "properties": {
640 "code": {
641 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
642 "format": "int32",
643 "type": "integer"
644 },
645 "message": { 976 "message": {
646 "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.", 977 "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.",
647 "type": "string" 978 "type": "string"
648 }, 979 },
649 "details": { 980 "details": {
650 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.", 981 "description": "A list of messages that carry the error deta ils. There is a common set of\nmessage types for APIs to use.",
651 "items": { 982 "items": {
652 "additionalProperties": { 983 "additionalProperties": {
653 "description": "Properties of the object. Contains f ield @type with type URL.", 984 "description": "Properties of the object. Contains f ield @type with type URL.",
654 "type": "any" 985 "type": "any"
655 }, 986 },
656 "type": "object" 987 "type": "object"
657 }, 988 },
658 "type": "array" 989 "type": "array"
990 },
991 "code": {
992 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
993 "format": "int32",
994 "type": "integer"
659 } 995 }
660 }, 996 },
661 "type": "object" 997 "type": "object"
662 },
663 "LatLongRect": {
664 "description": "Rectangle determined by min and max `LatLng` pairs." ,
665 "id": "LatLongRect",
666 "properties": {
667 "minLatLng": {
668 "$ref": "LatLng",
669 "description": "Min lat/long pair."
670 },
671 "maxLatLng": {
672 "$ref": "LatLng",
673 "description": "Max lat/long pair."
674 }
675 },
676 "type": "object"
677 }, 998 },
678 "Symbol": { 999 "Symbol": {
679 "description": "A single symbol representation.", 1000 "description": "A single symbol representation.",
680 "id": "Symbol", 1001 "id": "Symbol",
681 "properties": { 1002 "properties": {
1003 "property": {
1004 "$ref": "TextProperty",
1005 "description": "Additional information detected for the symb ol."
1006 },
682 "boundingBox": { 1007 "boundingBox": {
683 "$ref": "BoundingPoly", 1008 "$ref": "BoundingPoly",
684 "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)." 1009 "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)."
685 }, 1010 },
686 "text": { 1011 "text": {
687 "description": "The actual UTF-8 representation of the symbo l.", 1012 "description": "The actual UTF-8 representation of the symbo l.",
688 "type": "string" 1013 "type": "string"
689 },
690 "property": {
691 "$ref": "TextProperty",
692 "description": "Additional information detected for the symb ol."
693 } 1014 }
694 }, 1015 },
695 "type": "object" 1016 "type": "object"
1017 },
1018 "LatLongRect": {
1019 "description": "Rectangle determined by min and max `LatLng` pairs." ,
1020 "id": "LatLongRect",
1021 "properties": {
1022 "minLatLng": {
1023 "$ref": "LatLng",
1024 "description": "Min lat/long pair."
1025 },
1026 "maxLatLng": {
1027 "$ref": "LatLng",
1028 "description": "Max lat/long pair."
1029 }
1030 },
1031 "type": "object"
696 }, 1032 },
697 "CropHintsAnnotation": { 1033 "CropHintsAnnotation": {
698 "description": "Set of crop hints that are used to generate new crop s when serving images.", 1034 "description": "Set of crop hints that are used to generate new crop s when serving images.",
699 "id": "CropHintsAnnotation", 1035 "id": "CropHintsAnnotation",
700 "properties": { 1036 "properties": {
701 "cropHints": { 1037 "cropHints": {
702 "description": "Crop hint results.", 1038 "description": "Crop hint results.",
703 "items": { 1039 "items": {
704 "$ref": "CropHint" 1040 "$ref": "CropHint"
705 }, 1041 },
706 "type": "array" 1042 "type": "array"
707 } 1043 }
708 }, 1044 },
709 "type": "object" 1045 "type": "object"
710 }, 1046 },
711 "LatLng": { 1047 "LatLng": {
712 "description": "An object representing a latitude/longitude pair. Th is is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http ://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n \n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees long itude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n retur n r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], resp ectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 36 0, NormalizeLongitude(longitude)\n else:\n return 180 - r, Normalize Longitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLo ngitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == Normali zeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\ n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10. 0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng (-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n as sert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == N ormalizeLatLng(-270.0, 10.0)", 1048 "description": "An object representing a latitude/longitude pair. Th is is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http ://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n \n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees long itude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n retur n r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], resp ectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 36 0, NormalizeLongitude(longitude)\n else:\n return 180 - r, Normalize Longitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLo ngitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == Normali zeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\ n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10. 0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng (-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n as sert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == N ormalizeLatLng(-270.0, 10.0)",
713 "id": "LatLng", 1049 "id": "LatLng",
714 "properties": { 1050 "properties": {
1051 "longitude": {
1052 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
1053 "format": "double",
1054 "type": "number"
1055 },
715 "latitude": { 1056 "latitude": {
716 "description": "The latitude in degrees. It must be in the r ange [-90.0, +90.0].", 1057 "description": "The latitude in degrees. It must be in the r ange [-90.0, +90.0].",
717 "format": "double", 1058 "format": "double",
718 "type": "number" 1059 "type": "number"
719 },
720 "longitude": {
721 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
722 "format": "double",
723 "type": "number"
724 } 1060 }
725 }, 1061 },
726 "type": "object" 1062 "type": "object"
727 }, 1063 },
728 "Color": { 1064 "Color": {
729 "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 // ...", 1065 "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 // ...",
730 "id": "Color", 1066 "id": "Color",
731 "properties": { 1067 "properties": {
732 "red": {
733 "description": "The amount of red in the color as a value in the interval [0, 1].",
734 "format": "float",
735 "type": "number"
736 },
737 "alpha": { 1068 "alpha": {
738 "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).", 1069 "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).",
739 "format": "float", 1070 "format": "float",
740 "type": "number" 1071 "type": "number"
741 }, 1072 },
742 "blue": { 1073 "blue": {
743 "description": "The amount of blue in the color as a value i n the interval [0, 1].", 1074 "description": "The amount of blue in the color as a value i n the interval [0, 1].",
744 "format": "float", 1075 "format": "float",
745 "type": "number" 1076 "type": "number"
746 }, 1077 },
747 "green": { 1078 "green": {
748 "description": "The amount of green in the color as a value in the interval [0, 1].", 1079 "description": "The amount of green in the color as a value in the interval [0, 1].",
749 "format": "float", 1080 "format": "float",
750 "type": "number" 1081 "type": "number"
1082 },
1083 "red": {
1084 "description": "The amount of red in the color as a value in the interval [0, 1].",
1085 "format": "float",
1086 "type": "number"
751 } 1087 }
752 }, 1088 },
753 "type": "object" 1089 "type": "object"
1090 },
1091 "ImageProperties": {
1092 "description": "Stores image properties, such as dominant colors.",
1093 "id": "ImageProperties",
1094 "properties": {
1095 "dominantColors": {
1096 "$ref": "DominantColorsAnnotation",
1097 "description": "If present, dominant colors completed succes sfully."
1098 }
1099 },
1100 "type": "object"
754 }, 1101 },
755 "Feature": { 1102 "Feature": {
756 "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.", 1103 "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.",
757 "id": "Feature", 1104 "id": "Feature",
758 "properties": { 1105 "properties": {
759 "maxResults": { 1106 "maxResults": {
760 "description": "Maximum number of results of this type.", 1107 "description": "Maximum number of results of this type.",
761 "format": "int32", 1108 "format": "int32",
762 "type": "integer" 1109 "type": "integer"
763 }, 1110 },
(...skipping 22 matching lines...) Expand all
786 "Run dense text document OCR. Takes precedence when both \nDOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present.", 1133 "Run dense text document OCR. Takes precedence when both \nDOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present.",
787 "Run computer vision models to compute image safe-search properties.", 1134 "Run computer vision models to compute image safe-search properties.",
788 "Compute a set of image properties, such as the image's dominant colors.", 1135 "Compute a set of image properties, such as the image's dominant colors.",
789 "Run crop hints.", 1136 "Run crop hints.",
790 "Run web detection." 1137 "Run web detection."
791 ], 1138 ],
792 "type": "string" 1139 "type": "string"
793 } 1140 }
794 }, 1141 },
795 "type": "object" 1142 "type": "object"
796 },
797 "ImageProperties": {
798 "description": "Stores image properties, such as dominant colors.",
799 "id": "ImageProperties",
800 "properties": {
801 "dominantColors": {
802 "$ref": "DominantColorsAnnotation",
803 "description": "If present, dominant colors completed succes sfully."
804 }
805 },
806 "type": "object"
807 }, 1143 },
808 "SafeSearchAnnotation": { 1144 "SafeSearchAnnotation": {
809 "description": "Set of features pertaining to the image, computed by computer vision\nmethods over safe-search verticals (for example, adult, spoof, medical,\nviolence).", 1145 "description": "Set of features pertaining to the image, computed by computer vision\nmethods over safe-search verticals (for example, adult, spoof, medical,\nviolence).",
810 "id": "SafeSearchAnnotation", 1146 "id": "SafeSearchAnnotation",
811 "properties": { 1147 "properties": {
812 "spoof": { 1148 "spoof": {
813 "description": "Spoof likelihood. The likelihood that an mod ification\nwas made to the image's canonical version to make it appear\nfunny or offensive.", 1149 "description": "Spoof likelihood. The likelihood that an mod ification\nwas made to the image's canonical version to make it appear\nfunny or offensive.",
814 "enum": [ 1150 "enum": [
815 "UNKNOWN", 1151 "UNKNOWN",
816 "VERY_UNLIKELY", 1152 "VERY_UNLIKELY",
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 }, 1253 },
918 "type": "array" 1254 "type": "array"
919 }, 1255 },
920 "text": { 1256 "text": {
921 "description": "UTF-8 text detected on the pages.", 1257 "description": "UTF-8 text detected on the pages.",
922 "type": "string" 1258 "type": "string"
923 } 1259 }
924 }, 1260 },
925 "type": "object" 1261 "type": "object"
926 }, 1262 },
927 "DetectedLanguage": {
928 "description": "Detected language for a structural component.",
929 "id": "DetectedLanguage",
930 "properties": {
931 "languageCode": {
932 "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.",
933 "type": "string"
934 },
935 "confidence": {
936 "description": "Confidence of detected language. Range [0, 1 ].",
937 "format": "float",
938 "type": "number"
939 }
940 },
941 "type": "object"
942 },
943 "Vertex": { 1263 "Vertex": {
944 "description": "A vertex represents a 2D point in the image.\nNOTE: the vertex coordinates are in the same scale as the original image.", 1264 "description": "A vertex represents a 2D point in the image.\nNOTE: the vertex coordinates are in the same scale as the original image.",
945 "id": "Vertex", 1265 "id": "Vertex",
946 "properties": { 1266 "properties": {
947 "y": { 1267 "y": {
948 "description": "Y coordinate.", 1268 "description": "Y coordinate.",
949 "format": "int32", 1269 "format": "int32",
950 "type": "integer" 1270 "type": "integer"
951 }, 1271 },
952 "x": { 1272 "x": {
953 "description": "X coordinate.", 1273 "description": "X coordinate.",
954 "format": "int32", 1274 "format": "int32",
955 "type": "integer" 1275 "type": "integer"
956 } 1276 }
957 }, 1277 },
958 "type": "object" 1278 "type": "object"
959 }, 1279 },
960 "WebEntity": { 1280 "DetectedLanguage": {
961 "description": "Entity deduced from similar images on the Internet." , 1281 "description": "Detected language for a structural component.",
962 "id": "WebEntity", 1282 "id": "DetectedLanguage",
963 "properties": { 1283 "properties": {
964 "score": { 1284 "languageCode": {
965 "description": "Overall relevancy score for the entity.\nNot normalized and not comparable across different image queries.", 1285 "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.",
1286 "type": "string"
1287 },
1288 "confidence": {
1289 "description": "Confidence of detected language. Range [0, 1 ].",
966 "format": "float", 1290 "format": "float",
967 "type": "number" 1291 "type": "number"
968 },
969 "entityId": {
970 "description": "Opaque entity ID.",
971 "type": "string"
972 },
973 "description": {
974 "description": "Canonical description of the entity, in Engl ish.",
975 "type": "string"
976 }
977 },
978 "type": "object"
979 },
980 "BoundingPoly": {
981 "description": "A bounding polygon for the detected image annotation .",
982 "id": "BoundingPoly",
983 "properties": {
984 "vertices": {
985 "description": "The bounding polygon vertices.",
986 "items": {
987 "$ref": "Vertex"
988 },
989 "type": "array"
990 } 1292 }
991 }, 1293 },
992 "type": "object" 1294 "type": "object"
993 }, 1295 },
994 "TextProperty": { 1296 "TextProperty": {
995 "description": "Additional information detected on the structural co mponent.", 1297 "description": "Additional information detected on the structural co mponent.",
996 "id": "TextProperty", 1298 "id": "TextProperty",
997 "properties": { 1299 "properties": {
998 "detectedBreak": { 1300 "detectedBreak": {
999 "$ref": "DetectedBreak", 1301 "$ref": "DetectedBreak",
1000 "description": "Detected start or end of a text segment." 1302 "description": "Detected start or end of a text segment."
1001 }, 1303 },
1002 "detectedLanguages": { 1304 "detectedLanguages": {
1003 "description": "A list of detected languages together with c onfidence.", 1305 "description": "A list of detected languages together with c onfidence.",
1004 "items": { 1306 "items": {
1005 "$ref": "DetectedLanguage" 1307 "$ref": "DetectedLanguage"
1006 }, 1308 },
1007 "type": "array" 1309 "type": "array"
1008 } 1310 }
1009 }, 1311 },
1010 "type": "object" 1312 "type": "object"
1011 }, 1313 },
1012 "AnnotateImageResponse": { 1314 "BoundingPoly": {
1013 "description": "Response to an image annotation request.", 1315 "description": "A bounding polygon for the detected image annotation .",
1014 "id": "AnnotateImageResponse", 1316 "id": "BoundingPoly",
1015 "properties": { 1317 "properties": {
1016 "safeSearchAnnotation": { 1318 "vertices": {
1017 "$ref": "SafeSearchAnnotation", 1319 "description": "The bounding polygon vertices.",
1018 "description": "If present, safe-search annotation has compl eted successfully."
1019 },
1020 "labelAnnotations": {
1021 "description": "If present, label detection has completed su ccessfully.",
1022 "items": { 1320 "items": {
1023 "$ref": "EntityAnnotation" 1321 "$ref": "Vertex"
1024 },
1025 "type": "array"
1026 },
1027 "error": {
1028 "$ref": "Status",
1029 "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."
1030 },
1031 "fullTextAnnotation": {
1032 "$ref": "TextAnnotation",
1033 "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."
1034 },
1035 "landmarkAnnotations": {
1036 "description": "If present, landmark detection has completed successfully.",
1037 "items": {
1038 "$ref": "EntityAnnotation"
1039 },
1040 "type": "array"
1041 },
1042 "textAnnotations": {
1043 "description": "If present, text (OCR) detection has complet ed successfully.",
1044 "items": {
1045 "$ref": "EntityAnnotation"
1046 },
1047 "type": "array"
1048 },
1049 "faceAnnotations": {
1050 "description": "If present, face detection has completed suc cessfully.",
1051 "items": {
1052 "$ref": "FaceAnnotation"
1053 },
1054 "type": "array"
1055 },
1056 "imagePropertiesAnnotation": {
1057 "$ref": "ImageProperties",
1058 "description": "If present, image properties were extracted successfully."
1059 },
1060 "logoAnnotations": {
1061 "description": "If present, logo detection has completed suc cessfully.",
1062 "items": {
1063 "$ref": "EntityAnnotation"
1064 },
1065 "type": "array"
1066 },
1067 "webDetection": {
1068 "$ref": "WebDetection",
1069 "description": "If present, web detection has completed succ essfully."
1070 },
1071 "cropHintsAnnotation": {
1072 "$ref": "CropHintsAnnotation",
1073 "description": "If present, crop hints have completed succes sfully."
1074 }
1075 },
1076 "type": "object"
1077 },
1078 "CropHintsParams": {
1079 "description": "Parameters for crop hints annotation request.",
1080 "id": "CropHintsParams",
1081 "properties": {
1082 "aspectRatios": {
1083 "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.",
1084 "items": {
1085 "format": "float",
1086 "type": "number"
1087 }, 1322 },
1088 "type": "array" 1323 "type": "array"
1089 } 1324 }
1090 }, 1325 },
1091 "type": "object" 1326 "type": "object"
1092 }, 1327 },
1093 "Block": { 1328 "WebEntity": {
1094 "description": "Logical element on the page.", 1329 "description": "Entity deduced from similar images on the Internet." ,
1095 "id": "Block", 1330 "id": "WebEntity",
1096 "properties": { 1331 "properties": {
1097 "boundingBox": { 1332 "entityId": {
1098 "$ref": "BoundingPoly", 1333 "description": "Opaque entity ID.",
1099 "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)."
1100 },
1101 "paragraphs": {
1102 "description": "List of paragraphs in this block (if this bl ocks is of type text).",
1103 "items": {
1104 "$ref": "Paragraph"
1105 },
1106 "type": "array"
1107 },
1108 "property": {
1109 "$ref": "TextProperty",
1110 "description": "Additional information detected for the bloc k."
1111 },
1112 "blockType": {
1113 "description": "Detected block type (text, image etc) for th is block.",
1114 "enum": [
1115 "UNKNOWN",
1116 "TEXT",
1117 "TABLE",
1118 "PICTURE",
1119 "RULER",
1120 "BARCODE"
1121 ],
1122 "enumDescriptions": [
1123 "Unknown block type.",
1124 "Regular text block.",
1125 "Table block.",
1126 "Image block.",
1127 "Horizontal/vertical line box.",
1128 "Barcode block."
1129 ],
1130 "type": "string"
1131 }
1132 },
1133 "type": "object"
1134 },
1135 "Property": {
1136 "description": "A `Property` consists of a user-supplied name/value pair.",
1137 "id": "Property",
1138 "properties": {
1139 "name": {
1140 "description": "Name of the property.",
1141 "type": "string" 1334 "type": "string"
1142 }, 1335 },
1143 "value": { 1336 "description": {
1144 "description": "Value of the property.", 1337 "description": "Canonical description of the entity, in Engl ish.",
1145 "type": "string" 1338 "type": "string"
1146 }, 1339 },
1147 "uint64Value": { 1340 "score": {
1148 "description": "Value of numeric properties.", 1341 "description": "Overall relevancy score for the entity.\nNot normalized and not comparable across different image queries.",
1149 "format": "uint64",
1150 "type": "string"
1151 }
1152 },
1153 "type": "object"
1154 },
1155 "LocationInfo": {
1156 "description": "Detected entity location information.",
1157 "id": "LocationInfo",
1158 "properties": {
1159 "latLng": {
1160 "$ref": "LatLng",
1161 "description": "lat/long location coordinates."
1162 }
1163 },
1164 "type": "object"
1165 },
1166 "ImageSource": {
1167 "description": "External image source (Google Cloud Storage image lo cation).",
1168 "id": "ImageSource",
1169 "properties": {
1170 "gcsImageUri": {
1171 "description": "NOTE: For new code `image_uri` below is pref erred.\nGoogle Cloud Storage image URI, which must be in the following form:\n`g s://bucket_name/object_name` (for details, see\n[Google Cloud Storage Request\nU RIs](https://cloud.google.com/storage/docs/reference-uris)).\nNOTE: Cloud Storag e object versioning is not supported.",
1172 "type": "string"
1173 },
1174 "imageUri": {
1175 "description": "Image URI which supports:\n1) Google Cloud S torage image URI, which must be in the following form:\n`gs://bucket_name/object _name` (for details, see\n[Google Cloud Storage Request\nURIs](https://cloud.goo gle.com/storage/docs/reference-uris)).\nNOTE: Cloud Storage object versioning is not supported.\n2) Publicly accessible image HTTP/HTTPS URL.\nThis is preferred over the legacy `gcs_image_uri` above. When both\n`gcs_image_uri` and `image_ur i` are specified, `image_uri` takes\nprecedence.",
1176 "type": "string"
1177 }
1178 },
1179 "type": "object"
1180 },
1181 "BatchAnnotateImagesResponse": {
1182 "description": "Response to a batch image annotation request.",
1183 "id": "BatchAnnotateImagesResponse",
1184 "properties": {
1185 "responses": {
1186 "description": "Individual responses to image annotation req uests within the batch.",
1187 "items": {
1188 "$ref": "AnnotateImageResponse"
1189 },
1190 "type": "array"
1191 }
1192 },
1193 "type": "object"
1194 },
1195 "WebDetection": {
1196 "description": "Relevant information for the image from the Internet .",
1197 "id": "WebDetection",
1198 "properties": {
1199 "visuallySimilarImages": {
1200 "description": "The visually similar image results.",
1201 "items": {
1202 "$ref": "WebImage"
1203 },
1204 "type": "array"
1205 },
1206 "partialMatchingImages": {
1207 "description": "Partial matching images from the Internet.\n Those images are similar enough to share some key-point features. For\nexample a n original image will likely have partial matching for its crops.",
1208 "items": {
1209 "$ref": "WebImage"
1210 },
1211 "type": "array"
1212 },
1213 "fullMatchingImages": {
1214 "description": "Fully matching images from the Internet.\nCa n include resized copies of the query image.",
1215 "items": {
1216 "$ref": "WebImage"
1217 },
1218 "type": "array"
1219 },
1220 "webEntities": {
1221 "description": "Deduced entities from similar images on the Internet.",
1222 "items": {
1223 "$ref": "WebEntity"
1224 },
1225 "type": "array"
1226 },
1227 "pagesWithMatchingImages": {
1228 "description": "Web pages containing the matching images fro m the Internet.",
1229 "items": {
1230 "$ref": "WebPage"
1231 },
1232 "type": "array"
1233 }
1234 },
1235 "type": "object"
1236 },
1237 "Position": {
1238 "description": "A 3D position in the image, used primarily for Face detection landmarks.\nA valid Position must have both x and y coordinates.\nThe position coordinates are in the same scale as the original image.",
1239 "id": "Position",
1240 "properties": {
1241 "y": {
1242 "description": "Y coordinate.",
1243 "format": "float",
1244 "type": "number"
1245 },
1246 "z": {
1247 "description": "Z coordinate (or depth).",
1248 "format": "float",
1249 "type": "number"
1250 },
1251 "x": {
1252 "description": "X coordinate.",
1253 "format": "float", 1342 "format": "float",
1254 "type": "number" 1343 "type": "number"
1255 } 1344 }
1256 }, 1345 },
1257 "type": "object" 1346 "type": "object"
1258 },
1259 "WebPage": {
1260 "description": "Metadata for web pages.",
1261 "id": "WebPage",
1262 "properties": {
1263 "url": {
1264 "description": "The result web page URL.",
1265 "type": "string"
1266 },
1267 "score": {
1268 "description": "Overall relevancy score for the web page.\nN ot normalized and not comparable across different image queries.",
1269 "format": "float",
1270 "type": "number"
1271 }
1272 },
1273 "type": "object"
1274 },
1275 "ColorInfo": {
1276 "description": "Color information consists of RGB channels, score, a nd the fraction of\nthe image that the color occupies in the image.",
1277 "id": "ColorInfo",
1278 "properties": {
1279 "pixelFraction": {
1280 "description": "The fraction of pixels the color occupies in the image.\nValue in range [0, 1].",
1281 "format": "float",
1282 "type": "number"
1283 },
1284 "color": {
1285 "$ref": "Color",
1286 "description": "RGB components of the color."
1287 },
1288 "score": {
1289 "description": "Image-specific score for this color. Value i n range [0, 1].",
1290 "format": "float",
1291 "type": "number"
1292 }
1293 },
1294 "type": "object"
1295 },
1296 "EntityAnnotation": {
1297 "description": "Set of detected entity features.",
1298 "id": "EntityAnnotation",
1299 "properties": {
1300 "description": {
1301 "description": "Entity textual description, expressed in its `locale` language.",
1302 "type": "string"
1303 },
1304 "topicality": {
1305 "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].",
1306 "format": "float",
1307 "type": "number"
1308 },
1309 "properties": {
1310 "description": "Some entities may have optional user-supplie d `Property` (name/value)\nfields, such a score or string that qualifies the ent ity.",
1311 "items": {
1312 "$ref": "Property"
1313 },
1314 "type": "array"
1315 },
1316 "score": {
1317 "description": "Overall score of the result. Range [0, 1].",
1318 "format": "float",
1319 "type": "number"
1320 },
1321 "locations": {
1322 "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.",
1323 "items": {
1324 "$ref": "LocationInfo"
1325 },
1326 "type": "array"
1327 },
1328 "mid": {
1329 "description": "Opaque entity ID. Some IDs may be available in\n[Google Knowledge Graph Search API](https://developers.google.com/knowledge- graph/).",
1330 "type": "string"
1331 },
1332 "confidence": {
1333 "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].",
1334 "format": "float",
1335 "type": "number"
1336 },
1337 "locale": {
1338 "description": "The language code for the locale in which th e entity textual\n`description` is expressed.",
1339 "type": "string"
1340 },
1341 "boundingPoly": {
1342 "$ref": "BoundingPoly",
1343 "description": "Image region to which this entity belongs. N ot produced\nfor `LABEL_DETECTION` features."
1344 }
1345 },
1346 "type": "object"
1347 } 1347 }
1348 }, 1348 },
1349 "servicePath": "", 1349 "servicePath": "",
1350 "title": "Google Cloud Vision API", 1350 "title": "Google Cloud Vision API",
1351 "version": "v1" 1351 "version": "v1"
1352 } 1352 }
OLDNEW
« no previous file with comments | « discovery/googleapis/vault__v1.json ('k') | discovery/googleapis/youtubeAnalytics__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698