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

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

Issue 2734843002: Api-roll 46: 2017-03-06 (Closed)
Patch Set: Created 3 years, 9 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/tracing__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-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 "fields": { 28 "callback": {
29 "description": "Selector specifying which fields to include in a par tial response.", 29 "description": "JSONP",
30 "location": "query", 30 "location": "query",
31 "type": "string" 31 "type": "string"
32 }, 32 },
33 "uploadType": {
34 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
35 "location": "query",
36 "type": "string"
37 },
38 "$.xgafv": { 33 "$.xgafv": {
39 "description": "V1 error format.", 34 "description": "V1 error format.",
40 "enum": [ 35 "enum": [
41 "1", 36 "1",
42 "2" 37 "2"
43 ], 38 ],
44 "enumDescriptions": [ 39 "enumDescriptions": [
45 "v1 error format", 40 "v1 error format",
46 "v2 error format" 41 "v2 error format"
47 ], 42 ],
48 "location": "query", 43 "location": "query",
49 "type": "string" 44 "type": "string"
50 }, 45 },
51 "callback": {
52 "description": "JSONP",
53 "location": "query",
54 "type": "string"
55 },
56 "alt": { 46 "alt": {
57 "default": "json", 47 "default": "json",
58 "description": "Data format for response.", 48 "description": "Data format for response.",
59 "enum": [ 49 "enum": [
60 "json", 50 "json",
61 "media", 51 "media",
62 "proto" 52 "proto"
63 ], 53 ],
64 "enumDescriptions": [ 54 "enumDescriptions": [
65 "Responses with Content-Type of application/json", 55 "Responses with Content-Type of application/json",
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 "upload_protocol": { 93 "upload_protocol": {
104 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 94 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
105 "location": "query", 95 "location": "query",
106 "type": "string" 96 "type": "string"
107 }, 97 },
108 "prettyPrint": { 98 "prettyPrint": {
109 "default": "true", 99 "default": "true",
110 "description": "Returns response with indentations and line breaks." , 100 "description": "Returns response with indentations and line breaks." ,
111 "location": "query", 101 "location": "query",
112 "type": "boolean" 102 "type": "boolean"
103 },
104 "fields": {
105 "description": "Selector specifying which fields to include in a par tial response.",
106 "location": "query",
107 "type": "string"
108 },
109 "uploadType": {
110 "description": "Legacy upload protocol for media (e.g. \"media\", \" 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": "20170131", 139 "revision": "20170301",
140 "rootUrl": "https://vision.googleapis.com/", 140 "rootUrl": "https://vision.googleapis.com/",
141 "schemas": { 141 "schemas": {
142 "ImageContext": { 142 "ColorInfo": {
143 "description": "Image context and/or feature-specific parameters.", 143 "description": "Color information consists of RGB channels, score, a nd the fraction of\nthe image that the color occupies in the image.",
144 "id": "ImageContext", 144 "id": "ColorInfo",
145 "properties": { 145 "properties": {
146 "languageHints": { 146 "score": {
147 "description": "List of languages to use for TEXT_DETECTION. In most cases, an empty value\nyields the best results since it enables automat ic language detection. For\nlanguages based on the Latin alphabet, setting `lang uage_hints` is not\nneeded. In rare cases, when the language of the text in the image is known,\nsetting a hint will help get better results (although it will b e a\nsignificant hindrance if the hint is wrong). Text detection returns an\nerr or if one or more of the specified languages is not one of the\n[supported langu ages](/vision/docs/languages).", 147 "description": "Image-specific score for this color. Value i n range [0, 1].",
148 "items": { 148 "format": "float",
149 "type": "string" 149 "type": "number"
150 }, 150 },
151 "type": "array" 151 "pixelFraction": {
152 }, 152 "description": "The fraction of pixels the color occupies in the image.\nValue in range [0, 1].",
153 "latLongRect": { 153 "format": "float",
154 "$ref": "LatLongRect", 154 "type": "number"
155 "description": "lat/long rectangle that specifies the locati on of the image." 155 },
156 } 156 "color": {
157 }, 157 "$ref": "Color",
158 "type": "object" 158 "description": "RGB components of the color."
159 }, 159 }
160 "AnnotateImageRequest": { 160 },
161 "description": "Request for performing Google Cloud Vision API tasks over a user-provided\nimage, with user-requested features.", 161 "type": "object"
162 "id": "AnnotateImageRequest", 162 },
163 "properties": { 163 "WebPage": {
164 "imageContext": { 164 "description": "Metadata for web pages.",
165 "$ref": "ImageContext", 165 "id": "WebPage",
166 "description": "Additional context that may accompany the im age." 166 "properties": {
167 }, 167 "url": {
168 "image": { 168 "description": "The result web page URL.",
169 "$ref": "Image", 169 "type": "string"
170 "description": "The image to be processed." 170 },
171 }, 171 "score": {
172 "features": { 172 "description": "Overall relevancy score for the web page.\nN ot normalized and not comparable across different image queries.",
173 "description": "Requested features.", 173 "format": "float",
174 "items": { 174 "type": "number"
175 "$ref": "Feature" 175 }
176 }, 176 },
177 "type": "array" 177 "type": "object"
178 } 178 },
179 }, 179 "EntityAnnotation": {
180 "type": "object" 180 "description": "Set of detected entity features.",
181 }, 181 "id": "EntityAnnotation",
182 "Status": { 182 "properties": {
183 "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.", 183 "score": {
184 "id": "Status", 184 "description": "Overall score of the result. Range [0, 1].",
185 "properties": { 185 "format": "float",
186 "details": { 186 "type": "number"
187 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.", 187 },
188 "items": { 188 "locations": {
189 "additionalProperties": { 189 "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.",
190 "description": "Properties of the object. Contains f ield @type with type URL.", 190 "items": {
191 "type": "any" 191 "$ref": "LocationInfo"
192 }, 192 },
193 "type": "object" 193 "type": "array"
194 }, 194 },
195 "type": "array" 195 "mid": {
196 }, 196 "description": "Opaque entity ID. Some IDs may be available in\n[Google Knowledge Graph Search API](https://developers.google.com/knowledge- graph/).",
197 "code": { 197 "type": "string"
198 "description": "The status code, which should be an enum val ue of google.rpc.Code.", 198 },
199 "format": "int32", 199 "confidence": {
200 "type": "integer" 200 "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].",
201 }, 201 "format": "float",
202 "message": { 202 "type": "number"
203 "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.", 203 },
204 "type": "string" 204 "locale": {
205 } 205 "description": "The language code for the locale in which th e entity textual\n`description` is expressed.",
206 }, 206 "type": "string"
207 "type": "object" 207 },
208 }, 208 "boundingPoly": {
209 "LatLongRect": { 209 "$ref": "BoundingPoly",
210 "description": "Rectangle determined by min and max `LatLng` pairs." , 210 "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."
211 "id": "LatLongRect", 211 },
212 "properties": { 212 "topicality": {
213 "minLatLng": { 213 "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].",
214 "$ref": "LatLng", 214 "format": "float",
215 "description": "Min lat/long pair." 215 "type": "number"
216 }, 216 },
217 "maxLatLng": { 217 "description": {
218 "$ref": "LatLng", 218 "description": "Entity textual description, expressed in its `locale` language.",
219 "description": "Max lat/long pair." 219 "type": "string"
220 } 220 },
221 }, 221 "properties": {
222 "type": "object" 222 "description": "Some entities may have optional user-supplie d `Property` (name/value)\nfields, such a score or string that qualifies the ent ity.",
223 }, 223 "items": {
224 "LatLng": { 224 "$ref": "Property"
225 "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)\n\nThe code in logs/storage/validator/logs_validato r_traits.cc treats this type\nas if it were annotated as ST_LOCATION.", 225 },
226 "id": "LatLng", 226 "type": "array"
227 "properties": { 227 }
228 "latitude": { 228 },
229 "description": "The latitude in degrees. It must be in the r ange [-90.0, +90.0].", 229 "type": "object"
230 "format": "double", 230 },
231 "type": "number" 231 "CropHint": {
232 }, 232 "description": "Single crop hint that is used to generate a new crop when serving an image.",
233 "longitude": { 233 "id": "CropHint",
234 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", 234 "properties": {
235 "format": "double", 235 "boundingPoly": {
236 "type": "number" 236 "$ref": "BoundingPoly",
237 } 237 "description": "The bounding polygon for the crop region. Th e coordinates of the bounding\nbox are in the original image's scale, as returne d in `ImageParams`."
238 }, 238 },
239 "type": "object" 239 "confidence": {
240 }, 240 "description": "Confidence of this being a salient region. Range [0, 1].",
241 "Color": { 241 "format": "float",
242 "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 // ...", 242 "type": "number"
243 "id": "Color", 243 },
244 "properties": { 244 "importanceFraction": {
245 "green": { 245 "description": "Fraction of importance of this salient regio n with respect to the original\nimage.",
246 "description": "The amount of green in the color as a value in the interval [0, 1].", 246 "format": "float",
247 "format": "float", 247 "type": "number"
248 "type": "number" 248 }
249 }, 249 },
250 "blue": { 250 "type": "object"
251 "description": "The amount of blue in the color as a value i n the interval [0, 1].", 251 },
252 "format": "float", 252 "Landmark": {
253 "type": "number" 253 "description": "A face-specific landmark (for example, a face featur e).\nLandmark positions may fall outside the bounds of the image\nif the face is near one or more edges of the image.\nTherefore it is NOT guaranteed that `0 <= x < width` or\n`0 <= y < height`.",
254 }, 254 "id": "Landmark",
255 "alpha": {
256 "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).",
257 "format": "float",
258 "type": "number"
259 },
260 "red": {
261 "description": "The amount of red in the color as a value in the interval [0, 1].",
262 "format": "float",
263 "type": "number"
264 }
265 },
266 "type": "object"
267 },
268 "Feature": {
269 "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.",
270 "id": "Feature",
271 "properties": { 255 "properties": {
272 "type": { 256 "type": {
273 "description": "The feature type.", 257 "description": "Face landmark type.",
274 "enum": [ 258 "enum": [
275 "TYPE_UNSPECIFIED", 259 "UNKNOWN_LANDMARK",
276 "FACE_DETECTION", 260 "LEFT_EYE",
277 "LANDMARK_DETECTION", 261 "RIGHT_EYE",
278 "LOGO_DETECTION", 262 "LEFT_OF_LEFT_EYEBROW",
279 "LABEL_DETECTION", 263 "RIGHT_OF_LEFT_EYEBROW",
280 "TEXT_DETECTION", 264 "LEFT_OF_RIGHT_EYEBROW",
281 "SAFE_SEARCH_DETECTION", 265 "RIGHT_OF_RIGHT_EYEBROW",
282 "IMAGE_PROPERTIES" 266 "MIDPOINT_BETWEEN_EYES",
267 "NOSE_TIP",
268 "UPPER_LIP",
269 "LOWER_LIP",
270 "MOUTH_LEFT",
271 "MOUTH_RIGHT",
272 "MOUTH_CENTER",
273 "NOSE_BOTTOM_RIGHT",
274 "NOSE_BOTTOM_LEFT",
275 "NOSE_BOTTOM_CENTER",
276 "LEFT_EYE_TOP_BOUNDARY",
277 "LEFT_EYE_RIGHT_CORNER",
278 "LEFT_EYE_BOTTOM_BOUNDARY",
279 "LEFT_EYE_LEFT_CORNER",
280 "RIGHT_EYE_TOP_BOUNDARY",
281 "RIGHT_EYE_RIGHT_CORNER",
282 "RIGHT_EYE_BOTTOM_BOUNDARY",
283 "RIGHT_EYE_LEFT_CORNER",
284 "LEFT_EYEBROW_UPPER_MIDPOINT",
285 "RIGHT_EYEBROW_UPPER_MIDPOINT",
286 "LEFT_EAR_TRAGION",
287 "RIGHT_EAR_TRAGION",
288 "LEFT_EYE_PUPIL",
289 "RIGHT_EYE_PUPIL",
290 "FOREHEAD_GLABELLA",
291 "CHIN_GNATHION",
292 "CHIN_LEFT_GONION",
293 "CHIN_RIGHT_GONION"
283 ], 294 ],
284 "enumDescriptions": [ 295 "enumDescriptions": [
285 "Unspecified feature type.", 296 "Unknown face landmark detected. Should not be filled.",
286 "Run face detection.", 297 "Left eye.",
287 "Run landmark detection.", 298 "Right eye.",
288 "Run logo detection.", 299 "Left of left eyebrow.",
289 "Run label detection.", 300 "Right of left eyebrow.",
290 "Run OCR.", 301 "Left of right eyebrow.",
291 "Run computer vision models to compute image safe-search properties.", 302 "Right of right eyebrow.",
292 "Compute a set of image properties, such as the image's dominant colors." 303 "Midpoint between eyes.",
304 "Nose tip.",
305 "Upper lip.",
306 "Lower lip.",
307 "Mouth left.",
308 "Mouth right.",
309 "Mouth center.",
310 "Nose, bottom right.",
311 "Nose, bottom left.",
312 "Nose, bottom center.",
313 "Left eye, top boundary.",
314 "Left eye, right corner.",
315 "Left eye, bottom boundary.",
316 "Left eye, left corner.",
317 "Right eye, top boundary.",
318 "Right eye, right corner.",
319 "Right eye, bottom boundary.",
320 "Right eye, left corner.",
321 "Left eyebrow, upper midpoint.",
322 "Right eyebrow, upper midpoint.",
323 "Left ear tragion.",
324 "Right ear tragion.",
325 "Left eye pupil.",
326 "Right eye pupil.",
327 "Forehead glabella.",
328 "Chin gnathion.",
329 "Chin left gonion.",
330 "Chin right gonion."
293 ], 331 ],
294 "type": "string" 332 "type": "string"
295 }, 333 },
296 "maxResults": { 334 "position": {
297 "description": "Maximum number of results of this type.", 335 "$ref": "Position",
298 "format": "int32", 336 "description": "Face landmark position."
299 "type": "integer" 337 }
300 } 338 },
301 }, 339 "type": "object"
302 "type": "object" 340 },
303 }, 341 "WebImage": {
304 "ImageProperties": { 342 "description": "Metadata for online images.",
305 "description": "Stores image properties, such as dominant colors.", 343 "id": "WebImage",
306 "id": "ImageProperties", 344 "properties": {
307 "properties": { 345 "score": {
308 "dominantColors": { 346 "description": "Overall relevancy score for the image.\nNot normalized and not comparable across different image queries.",
309 "$ref": "DominantColorsAnnotation", 347 "format": "float",
310 "description": "If present, dominant colors completed succes sfully." 348 "type": "number"
311 } 349 },
312 }, 350 "url": {
313 "type": "object" 351 "description": "The result image URL.",
314 }, 352 "type": "string"
315 "SafeSearchAnnotation": { 353 }
316 "description": "Set of features pertaining to the image, computed by computer vision\nmethods over safe-search verticals (for example, adult, spoof, medical,\nviolence).", 354 },
317 "id": "SafeSearchAnnotation", 355 "type": "object"
318 "properties": { 356 },
319 "violence": { 357 "Word": {
320 "description": "Violence likelihood.", 358 "description": "A word representation.",
359 "id": "Word",
360 "properties": {
361 "property": {
362 "$ref": "TextProperty",
363 "description": "Additional information detected for the word ."
364 },
365 "boundingBox": {
366 "$ref": "BoundingPoly",
367 "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)."
368 },
369 "symbols": {
370 "description": "List of symbols in the word.\nThe order of t he symbols follows the natural reading order.",
371 "items": {
372 "$ref": "Symbol"
373 },
374 "type": "array"
375 }
376 },
377 "type": "object"
378 },
379 "Image": {
380 "description": "Client image to perform Google Cloud Vision API task s over.",
381 "id": "Image",
382 "properties": {
383 "content": {
384 "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.",
385 "format": "byte",
386 "type": "string"
387 },
388 "source": {
389 "$ref": "ImageSource",
390 "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."
391 }
392 },
393 "type": "object"
394 },
395 "Paragraph": {
396 "description": "Structural unit of text representing a number of wor ds in certain order.",
397 "id": "Paragraph",
398 "properties": {
399 "property": {
400 "$ref": "TextProperty",
401 "description": "Additional information detected for the para graph."
402 },
403 "boundingBox": {
404 "$ref": "BoundingPoly",
405 "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)."
406 },
407 "words": {
408 "description": "List of words in this paragraph.",
409 "items": {
410 "$ref": "Word"
411 },
412 "type": "array"
413 }
414 },
415 "type": "object"
416 },
417 "FaceAnnotation": {
418 "description": "A face annotation object contains the results of fac e detection.",
419 "id": "FaceAnnotation",
420 "properties": {
421 "underExposedLikelihood": {
422 "description": "Under-exposed likelihood.",
321 "enum": [ 423 "enum": [
322 "UNKNOWN", 424 "UNKNOWN",
323 "VERY_UNLIKELY", 425 "VERY_UNLIKELY",
324 "UNLIKELY", 426 "UNLIKELY",
325 "POSSIBLE", 427 "POSSIBLE",
326 "LIKELY", 428 "LIKELY",
327 "VERY_LIKELY" 429 "VERY_LIKELY"
328 ], 430 ],
329 "enumDescriptions": [ 431 "enumDescriptions": [
330 "Unknown likelihood.", 432 "Unknown likelihood.",
331 "It is very unlikely that the image belongs to the speci fied vertical.", 433 "It is very unlikely that the image belongs to the speci fied vertical.",
332 "It is unlikely that the image belongs to the specified vertical.", 434 "It is unlikely that the image belongs to the specified vertical.",
333 "It is possible that the image belongs to the specified vertical.", 435 "It is possible that the image belongs to the specified vertical.",
334 "It is likely that the image belongs to the specified ve rtical.", 436 "It is likely that the image belongs to the specified ve rtical.",
335 "It is very likely that the image belongs to the specifi ed vertical." 437 "It is very likely that the image belongs to the specifi ed vertical."
336 ], 438 ],
337 "type": "string" 439 "type": "string"
338 }, 440 },
339 "adult": { 441 "panAngle": {
340 "description": "Represents the adult content likelihood for the image.", 442 "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].",
443 "format": "float",
444 "type": "number"
445 },
446 "detectionConfidence": {
447 "description": "Detection confidence. Range [0, 1].",
448 "format": "float",
449 "type": "number"
450 },
451 "blurredLikelihood": {
452 "description": "Blurred likelihood.",
341 "enum": [ 453 "enum": [
342 "UNKNOWN", 454 "UNKNOWN",
343 "VERY_UNLIKELY", 455 "VERY_UNLIKELY",
344 "UNLIKELY", 456 "UNLIKELY",
345 "POSSIBLE", 457 "POSSIBLE",
346 "LIKELY", 458 "LIKELY",
347 "VERY_LIKELY" 459 "VERY_LIKELY"
348 ], 460 ],
349 "enumDescriptions": [ 461 "enumDescriptions": [
350 "Unknown likelihood.", 462 "Unknown likelihood.",
351 "It is very unlikely that the image belongs to the speci fied vertical.", 463 "It is very unlikely that the image belongs to the speci fied vertical.",
352 "It is unlikely that the image belongs to the specified vertical.", 464 "It is unlikely that the image belongs to the specified vertical.",
353 "It is possible that the image belongs to the specified vertical.", 465 "It is possible that the image belongs to the specified vertical.",
354 "It is likely that the image belongs to the specified ve rtical.", 466 "It is likely that the image belongs to the specified ve rtical.",
355 "It is very likely that the image belongs to the specifi ed vertical." 467 "It is very likely that the image belongs to the specifi ed vertical."
356 ], 468 ],
357 "type": "string" 469 "type": "string"
358 }, 470 },
359 "spoof": { 471 "headwearLikelihood": {
360 "description": "Spoof likelihood. The likelihood that an mod ification\nwas made to the image's canonical version to make it appear\nfunny or offensive.", 472 "description": "Headwear likelihood.",
361 "enum": [ 473 "enum": [
362 "UNKNOWN", 474 "UNKNOWN",
363 "VERY_UNLIKELY", 475 "VERY_UNLIKELY",
364 "UNLIKELY", 476 "UNLIKELY",
365 "POSSIBLE", 477 "POSSIBLE",
366 "LIKELY", 478 "LIKELY",
367 "VERY_LIKELY" 479 "VERY_LIKELY"
368 ], 480 ],
369 "enumDescriptions": [ 481 "enumDescriptions": [
370 "Unknown likelihood.", 482 "Unknown likelihood.",
371 "It is very unlikely that the image belongs to the speci fied vertical.", 483 "It is very unlikely that the image belongs to the speci fied vertical.",
372 "It is unlikely that the image belongs to the specified vertical.", 484 "It is unlikely that the image belongs to the specified vertical.",
373 "It is possible that the image belongs to the specified vertical.", 485 "It is possible that the image belongs to the specified vertical.",
374 "It is likely that the image belongs to the specified ve rtical.", 486 "It is likely that the image belongs to the specified ve rtical.",
375 "It is very likely that the image belongs to the specifi ed vertical." 487 "It is very likely that the image belongs to the specifi ed vertical."
376 ], 488 ],
377 "type": "string" 489 "type": "string"
378 }, 490 },
379 "medical": { 491 "boundingPoly": {
380 "description": "Likelihood that this is a medical image.", 492 "$ref": "BoundingPoly",
493 "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."
494 },
495 "rollAngle": {
496 "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].",
497 "format": "float",
498 "type": "number"
499 },
500 "sorrowLikelihood": {
501 "description": "Sorrow likelihood.",
381 "enum": [ 502 "enum": [
382 "UNKNOWN", 503 "UNKNOWN",
383 "VERY_UNLIKELY", 504 "VERY_UNLIKELY",
505 "UNLIKELY",
506 "POSSIBLE",
507 "LIKELY",
508 "VERY_LIKELY"
509 ],
510 "enumDescriptions": [
511 "Unknown likelihood.",
512 "It is very unlikely that the image belongs to the speci fied vertical.",
513 "It is unlikely that the image belongs to the specified vertical.",
514 "It is possible that the image belongs to the specified vertical.",
515 "It is likely that the image belongs to the specified ve rtical.",
516 "It is very likely that the image belongs to the specifi ed vertical."
517 ],
518 "type": "string"
519 },
520 "tiltAngle": {
521 "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].",
522 "format": "float",
523 "type": "number"
524 },
525 "fdBoundingPoly": {
526 "$ref": "BoundingPoly",
527 "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."
528 },
529 "surpriseLikelihood": {
530 "description": "Surprise likelihood.",
531 "enum": [
532 "UNKNOWN",
533 "VERY_UNLIKELY",
534 "UNLIKELY",
535 "POSSIBLE",
536 "LIKELY",
537 "VERY_LIKELY"
538 ],
539 "enumDescriptions": [
540 "Unknown likelihood.",
541 "It is very unlikely that the image belongs to the speci fied vertical.",
542 "It is unlikely that the image belongs to the specified vertical.",
543 "It is possible that the image belongs to the specified vertical.",
544 "It is likely that the image belongs to the specified ve rtical.",
545 "It is very likely that the image belongs to the specifi ed vertical."
546 ],
547 "type": "string"
548 },
549 "angerLikelihood": {
550 "description": "Anger likelihood.",
551 "enum": [
552 "UNKNOWN",
553 "VERY_UNLIKELY",
554 "UNLIKELY",
555 "POSSIBLE",
556 "LIKELY",
557 "VERY_LIKELY"
558 ],
559 "enumDescriptions": [
560 "Unknown likelihood.",
561 "It is very unlikely that the image belongs to the speci fied vertical.",
562 "It is unlikely that the image belongs to the specified vertical.",
563 "It is possible that the image belongs to the specified vertical.",
564 "It is likely that the image belongs to the specified ve rtical.",
565 "It is very likely that the image belongs to the specifi ed vertical."
566 ],
567 "type": "string"
568 },
569 "landmarks": {
570 "description": "Detected face landmarks.",
571 "items": {
572 "$ref": "Landmark"
573 },
574 "type": "array"
575 },
576 "landmarkingConfidence": {
577 "description": "Face landmarking confidence. Range [0, 1].",
578 "format": "float",
579 "type": "number"
580 },
581 "joyLikelihood": {
582 "description": "Joy likelihood.",
583 "enum": [
584 "UNKNOWN",
585 "VERY_UNLIKELY",
384 "UNLIKELY", 586 "UNLIKELY",
385 "POSSIBLE", 587 "POSSIBLE",
386 "LIKELY", 588 "LIKELY",
387 "VERY_LIKELY" 589 "VERY_LIKELY"
388 ], 590 ],
389 "enumDescriptions": [ 591 "enumDescriptions": [
390 "Unknown likelihood.", 592 "Unknown likelihood.",
391 "It is very unlikely that the image belongs to the speci fied vertical.", 593 "It is very unlikely that the image belongs to the speci fied vertical.",
392 "It is unlikely that the image belongs to the specified vertical.", 594 "It is unlikely that the image belongs to the specified vertical.",
393 "It is possible that the image belongs to the specified vertical.", 595 "It is possible that the image belongs to the specified vertical.",
394 "It is likely that the image belongs to the specified ve rtical.", 596 "It is likely that the image belongs to the specified ve rtical.",
395 "It is very likely that the image belongs to the specifi ed vertical." 597 "It is very likely that the image belongs to the specifi ed vertical."
396 ], 598 ],
397 "type": "string" 599 "type": "string"
398 } 600 }
399 }, 601 },
400 "type": "object" 602 "type": "object"
401 }, 603 },
402 "DominantColorsAnnotation": { 604 "BatchAnnotateImagesRequest": {
403 "description": "Set of dominant colors and their corresponding score s.", 605 "description": "Multiple image annotation requests are batched into a single service call.",
404 "id": "DominantColorsAnnotation", 606 "id": "BatchAnnotateImagesRequest",
405 "properties": { 607 "properties": {
406 "colors": { 608 "requests": {
407 "description": "RGB color values with their score and pixel fraction.", 609 "description": "Individual image annotation requests for thi s batch.",
408 "items": { 610 "items": {
409 "$ref": "ColorInfo" 611 "$ref": "AnnotateImageRequest"
410 }, 612 },
411 "type": "array" 613 "type": "array"
412 } 614 }
413 }, 615 },
414 "type": "object" 616 "type": "object"
415 }, 617 },
416 "Vertex": { 618 "DetectedBreak": {
417 "description": "A vertex represents a 2D point in the image.\nNOTE: the vertex coordinates are in the same scale as the original image.", 619 "description": "Detected start or end of a structural component.",
418 "id": "Vertex", 620 "id": "DetectedBreak",
419 "properties": { 621 "properties": {
420 "y": { 622 "isPrefix": {
421 "description": "Y coordinate.", 623 "description": "True if break prepends the element.",
624 "type": "boolean"
625 },
626 "type": {
627 "description": "Detected break type.",
628 "enum": [
629 "UNKNOWN",
630 "SPACE",
631 "SURE_SPACE",
632 "EOL_SURE_SPACE",
633 "HYPHEN",
634 "LINE_BREAK"
635 ],
636 "enumDescriptions": [
637 "Unknown break label type.",
638 "Regular space.",
639 "Sure space (very wide).",
640 "Line-wrapping break.",
641 "End-line hyphen that is not present in text; does",
642 "not co-occur with SPACE, LEADER_SPACE, or\nLINE_BREAK.\ nLine break that ends a paragraph."
643 ],
644 "type": "string"
645 }
646 },
647 "type": "object"
648 },
649 "ImageContext": {
650 "description": "Image context and/or feature-specific parameters.",
651 "id": "ImageContext",
652 "properties": {
653 "cropHintsParams": {
654 "$ref": "CropHintsParams",
655 "description": "Parameters for crop hints annotation request ."
656 },
657 "languageHints": {
658 "description": "List of languages to use for TEXT_DETECTION. In most cases, an empty value\nyields the best results since it enables automat ic language detection. For\nlanguages based on the Latin alphabet, setting `lang uage_hints` is not\nneeded. In rare cases, when the language of the text in the image is known,\nsetting a hint will help get better results (although it will b e a\nsignificant hindrance if the hint is wrong). Text detection returns an\nerr or if one or more of the specified languages is not one of the\n[supported langu ages](/vision/docs/languages).",
659 "items": {
660 "type": "string"
661 },
662 "type": "array"
663 },
664 "latLongRect": {
665 "$ref": "LatLongRect",
666 "description": "lat/long rectangle that specifies the locati on of the image."
667 }
668 },
669 "type": "object"
670 },
671 "Page": {
672 "description": "Detected page from OCR.",
673 "id": "Page",
674 "properties": {
675 "property": {
676 "$ref": "TextProperty",
677 "description": "Additional information detected on the page. "
678 },
679 "height": {
680 "description": "Page height in pixels.",
422 "format": "int32", 681 "format": "int32",
423 "type": "integer" 682 "type": "integer"
424 }, 683 },
425 "x": { 684 "width": {
426 "description": "X coordinate.", 685 "description": "Page width in pixels.",
427 "format": "int32", 686 "format": "int32",
428 "type": "integer" 687 "type": "integer"
429 } 688 },
430 }, 689 "blocks": {
431 "type": "object" 690 "description": "List of blocks of text, images etc on this p age.",
432 }, 691 "items": {
433 "BoundingPoly": { 692 "$ref": "Block"
434 "description": "A bounding polygon for the detected image annotation .", 693 },
435 "id": "BoundingPoly", 694 "type": "array"
436 "properties": { 695 }
437 "vertices": { 696 },
438 "description": "The bounding polygon vertices.", 697 "type": "object"
439 "items": { 698 },
440 "$ref": "Vertex" 699 "AnnotateImageRequest": {
441 }, 700 "description": "Request for performing Google Cloud Vision API tasks over a user-provided\nimage, with user-requested features.",
442 "type": "array" 701 "id": "AnnotateImageRequest",
443 } 702 "properties": {
444 }, 703 "image": {
445 "type": "object" 704 "$ref": "Image",
446 }, 705 "description": "The image to be processed."
447 "AnnotateImageResponse": { 706 },
448 "description": "Response to an image annotation request.", 707 "features": {
449 "id": "AnnotateImageResponse", 708 "description": "Requested features.",
450 "properties": { 709 "items": {
451 "imagePropertiesAnnotation": { 710 "$ref": "Feature"
452 "$ref": "ImageProperties", 711 },
453 "description": "If present, image properties were extracted successfully." 712 "type": "array"
454 }, 713 },
455 "faceAnnotations": { 714 "imageContext": {
456 "description": "If present, face detection has completed suc cessfully.", 715 "$ref": "ImageContext",
457 "items": { 716 "description": "Additional context that may accompany the im age."
458 "$ref": "FaceAnnotation" 717 }
459 }, 718 },
460 "type": "array" 719 "type": "object"
461 }, 720 },
462 "logoAnnotations": { 721 "Status": {
463 "description": "If present, logo detection has completed suc cessfully.", 722 "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.",
464 "items": { 723 "id": "Status",
465 "$ref": "EntityAnnotation" 724 "properties": {
466 }, 725 "code": {
467 "type": "array" 726 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
468 }, 727 "format": "int32",
469 "labelAnnotations": { 728 "type": "integer"
470 "description": "If present, label detection has completed su ccessfully.", 729 },
471 "items": { 730 "message": {
472 "$ref": "EntityAnnotation" 731 "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.",
473 },
474 "type": "array"
475 },
476 "safeSearchAnnotation": {
477 "$ref": "SafeSearchAnnotation",
478 "description": "If present, safe-search annotation has compl eted successfully."
479 },
480 "error": {
481 "$ref": "Status",
482 "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."
483 },
484 "landmarkAnnotations": {
485 "description": "If present, landmark detection has completed successfully.",
486 "items": {
487 "$ref": "EntityAnnotation"
488 },
489 "type": "array"
490 },
491 "textAnnotations": {
492 "description": "If present, text (OCR) detection or document (OCR) text detection has\ncompleted successfully.",
493 "items": {
494 "$ref": "EntityAnnotation"
495 },
496 "type": "array"
497 }
498 },
499 "type": "object"
500 },
501 "Property": {
502 "description": "A `Property` consists of a user-supplied name/value pair.",
503 "id": "Property",
504 "properties": {
505 "value": {
506 "description": "Value of the property.",
507 "type": "string" 732 "type": "string"
508 }, 733 },
509 "name": { 734 "details": {
510 "description": "Name of the property.", 735 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.",
736 "items": {
737 "additionalProperties": {
738 "description": "Properties of the object. Contains f ield @type with type URL.",
739 "type": "any"
740 },
741 "type": "object"
742 },
743 "type": "array"
744 }
745 },
746 "type": "object"
747 },
748 "LatLongRect": {
749 "description": "Rectangle determined by min and max `LatLng` pairs." ,
750 "id": "LatLongRect",
751 "properties": {
752 "minLatLng": {
753 "$ref": "LatLng",
754 "description": "Min lat/long pair."
755 },
756 "maxLatLng": {
757 "$ref": "LatLng",
758 "description": "Max lat/long pair."
759 }
760 },
761 "type": "object"
762 },
763 "Symbol": {
764 "description": "A single symbol representation.",
765 "id": "Symbol",
766 "properties": {
767 "text": {
768 "description": "The actual UTF-8 representation of the symbo l.",
511 "type": "string" 769 "type": "string"
512 } 770 },
513 }, 771 "property": {
514 "type": "object" 772 "$ref": "TextProperty",
515 }, 773 "description": "Additional information detected for the symb ol."
516 "LocationInfo": { 774 },
517 "description": "Detected entity location information.", 775 "boundingBox": {
518 "id": "LocationInfo", 776 "$ref": "BoundingPoly",
519 "properties": { 777 "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)."
520 "latLng": { 778 }
521 "$ref": "LatLng", 779 },
522 "description": "lat/long location coordinates." 780 "type": "object"
523 } 781 },
524 }, 782 "CropHintsAnnotation": {
525 "type": "object" 783 "description": "Set of crop hints that are used to generate new crop s when serving images.",
526 }, 784 "id": "CropHintsAnnotation",
527 "BatchAnnotateImagesResponse": { 785 "properties": {
528 "description": "Response to a batch image annotation request.", 786 "cropHints": {
529 "id": "BatchAnnotateImagesResponse", 787 "description": "Crop hint results.",
530 "properties": { 788 "items": {
531 "responses": { 789 "$ref": "CropHint"
532 "description": "Individual responses to image annotation req uests within the batch.", 790 },
533 "items": { 791 "type": "array"
534 "$ref": "AnnotateImageResponse" 792 }
535 }, 793 },
536 "type": "array" 794 "type": "object"
537 } 795 },
538 }, 796 "LatLng": {
539 "type": "object" 797 "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)\n\nThe code in logs/storage/validator/logs_validato r_traits.cc treats this type\nas if it were annotated as ST_LOCATION.",
540 }, 798 "id": "LatLng",
541 "ImageSource": { 799 "properties": {
542 "description": "External image source (Google Cloud Storage image lo cation).", 800 "latitude": {
543 "id": "ImageSource", 801 "description": "The latitude in degrees. It must be in the r ange [-90.0, +90.0].",
544 "properties": { 802 "format": "double",
545 "gcsImageUri": { 803 "type": "number"
546 "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.", 804 },
547 "type": "string" 805 "longitude": {
548 } 806 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
549 }, 807 "format": "double",
550 "type": "object" 808 "type": "number"
551 }, 809 }
552 "Position": { 810 },
553 "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.", 811 "type": "object"
554 "id": "Position", 812 },
555 "properties": { 813 "Color": {
556 "x": { 814 "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 // ...",
557 "description": "X coordinate.", 815 "id": "Color",
816 "properties": {
817 "red": {
818 "description": "The amount of red in the color as a value in the interval [0, 1].",
558 "format": "float", 819 "format": "float",
559 "type": "number" 820 "type": "number"
560 }, 821 },
561 "z": { 822 "green": {
562 "description": "Z coordinate (or depth).", 823 "description": "The amount of green in the color as a value in the interval [0, 1].",
563 "format": "float", 824 "format": "float",
564 "type": "number" 825 "type": "number"
565 }, 826 },
566 "y": { 827 "blue": {
567 "description": "Y coordinate.", 828 "description": "The amount of blue in the color as a value i n the interval [0, 1].",
568 "format": "float", 829 "format": "float",
569 "type": "number" 830 "type": "number"
570 } 831 },
571 }, 832 "alpha": {
572 "type": "object" 833 "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).",
573 },
574 "ColorInfo": {
575 "description": "Color information consists of RGB channels, score, a nd the fraction of\nthe image that the color occupies in the image.",
576 "id": "ColorInfo",
577 "properties": {
578 "pixelFraction": {
579 "description": "The fraction of pixels the color occupies in the image.\nValue in range [0, 1].",
580 "format": "float", 834 "format": "float",
581 "type": "number" 835 "type": "number"
582 }, 836 }
583 "color": { 837 },
584 "$ref": "Color", 838 "type": "object"
585 "description": "RGB components of the color." 839 },
586 }, 840 "ImageProperties": {
587 "score": { 841 "description": "Stores image properties, such as dominant colors.",
588 "description": "Image-specific score for this color. Value i n range [0, 1].", 842 "id": "ImageProperties",
589 "format": "float", 843 "properties": {
590 "type": "number" 844 "dominantColors": {
591 } 845 "$ref": "DominantColorsAnnotation",
592 }, 846 "description": "If present, dominant colors completed succes sfully."
593 "type": "object" 847 }
594 }, 848 },
595 "EntityAnnotation": { 849 "type": "object"
596 "description": "Set of detected entity features.", 850 },
597 "id": "EntityAnnotation", 851 "Feature": {
598 "properties": { 852 "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.",
599 "mid": { 853 "id": "Feature",
600 "description": "Opaque entity ID. Some IDs may be available in\n[Google Knowledge Graph Search API](https://developers.google.com/knowledge- graph/).", 854 "properties": {
601 "type": "string"
602 },
603 "confidence": {
604 "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].",
605 "format": "float",
606 "type": "number"
607 },
608 "boundingPoly": {
609 "$ref": "BoundingPoly",
610 "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."
611 },
612 "locale": {
613 "description": "The language code for the locale in which th e entity textual\n`description` is expressed.",
614 "type": "string"
615 },
616 "description": {
617 "description": "Entity textual description, expressed in its `locale` language.",
618 "type": "string"
619 },
620 "topicality": {
621 "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].",
622 "format": "float",
623 "type": "number"
624 },
625 "properties": {
626 "description": "Some entities may have optional user-supplie d `Property` (name/value)\nfields, such a score or string that qualifies the ent ity.",
627 "items": {
628 "$ref": "Property"
629 },
630 "type": "array"
631 },
632 "score": {
633 "description": "Overall score of the result. Range [0, 1].",
634 "format": "float",
635 "type": "number"
636 },
637 "locations": {
638 "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.",
639 "items": {
640 "$ref": "LocationInfo"
641 },
642 "type": "array"
643 }
644 },
645 "type": "object"
646 },
647 "Landmark": {
648 "description": "A face-specific landmark (for example, a face featur e).\nLandmark positions may fall outside the bounds of the image\nif the face is near one or more edges of the image.\nTherefore it is NOT guaranteed that `0 <= x < width` or\n`0 <= y < height`.",
649 "id": "Landmark",
650 "properties": {
651 "position": {
652 "$ref": "Position",
653 "description": "Face landmark position."
654 },
655 "type": { 855 "type": {
656 "description": "Face landmark type.", 856 "description": "The feature type.",
657 "enum": [ 857 "enum": [
658 "UNKNOWN_LANDMARK", 858 "TYPE_UNSPECIFIED",
659 "LEFT_EYE", 859 "FACE_DETECTION",
660 "RIGHT_EYE", 860 "LANDMARK_DETECTION",
661 "LEFT_OF_LEFT_EYEBROW", 861 "LOGO_DETECTION",
662 "RIGHT_OF_LEFT_EYEBROW", 862 "LABEL_DETECTION",
663 "LEFT_OF_RIGHT_EYEBROW", 863 "TEXT_DETECTION",
664 "RIGHT_OF_RIGHT_EYEBROW", 864 "DOCUMENT_TEXT_DETECTION",
665 "MIDPOINT_BETWEEN_EYES", 865 "SAFE_SEARCH_DETECTION",
666 "NOSE_TIP", 866 "IMAGE_PROPERTIES",
667 "UPPER_LIP", 867 "CROP_HINTS",
668 "LOWER_LIP", 868 "WEB_DETECTION"
669 "MOUTH_LEFT",
670 "MOUTH_RIGHT",
671 "MOUTH_CENTER",
672 "NOSE_BOTTOM_RIGHT",
673 "NOSE_BOTTOM_LEFT",
674 "NOSE_BOTTOM_CENTER",
675 "LEFT_EYE_TOP_BOUNDARY",
676 "LEFT_EYE_RIGHT_CORNER",
677 "LEFT_EYE_BOTTOM_BOUNDARY",
678 "LEFT_EYE_LEFT_CORNER",
679 "RIGHT_EYE_TOP_BOUNDARY",
680 "RIGHT_EYE_RIGHT_CORNER",
681 "RIGHT_EYE_BOTTOM_BOUNDARY",
682 "RIGHT_EYE_LEFT_CORNER",
683 "LEFT_EYEBROW_UPPER_MIDPOINT",
684 "RIGHT_EYEBROW_UPPER_MIDPOINT",
685 "LEFT_EAR_TRAGION",
686 "RIGHT_EAR_TRAGION",
687 "LEFT_EYE_PUPIL",
688 "RIGHT_EYE_PUPIL",
689 "FOREHEAD_GLABELLA",
690 "CHIN_GNATHION",
691 "CHIN_LEFT_GONION",
692 "CHIN_RIGHT_GONION"
693 ], 869 ],
694 "enumDescriptions": [ 870 "enumDescriptions": [
695 "Unknown face landmark detected. Should not be filled.", 871 "Unspecified feature type.",
696 "Left eye.", 872 "Run face detection.",
697 "Right eye.", 873 "Run landmark detection.",
698 "Left of left eyebrow.", 874 "Run logo detection.",
699 "Right of left eyebrow.", 875 "Run label detection.",
700 "Left of right eyebrow.", 876 "Run OCR.",
701 "Right of right eyebrow.", 877 "Run dense text document OCR. Takes precedence when both \nDOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present.",
702 "Midpoint between eyes.", 878 "Run computer vision models to compute image safe-search properties.",
703 "Nose tip.", 879 "Compute a set of image properties, such as the image's dominant colors.",
704 "Upper lip.", 880 "Run crop hints.",
705 "Lower lip.", 881 "Run web detection."
706 "Mouth left.",
707 "Mouth right.",
708 "Mouth center.",
709 "Nose, bottom right.",
710 "Nose, bottom left.",
711 "Nose, bottom center.",
712 "Left eye, top boundary.",
713 "Left eye, right corner.",
714 "Left eye, bottom boundary.",
715 "Left eye, left corner.",
716 "Right eye, top boundary.",
717 "Right eye, right corner.",
718 "Right eye, bottom boundary.",
719 "Right eye, left corner.",
720 "Left eyebrow, upper midpoint.",
721 "Right eyebrow, upper midpoint.",
722 "Left ear tragion.",
723 "Right ear tragion.",
724 "Left eye pupil.",
725 "Right eye pupil.",
726 "Forehead glabella.",
727 "Chin gnathion.",
728 "Chin left gonion.",
729 "Chin right gonion."
730 ], 882 ],
731 "type": "string" 883 "type": "string"
732 } 884 },
733 }, 885 "maxResults": {
734 "type": "object" 886 "description": "Maximum number of results of this type.",
735 }, 887 "format": "int32",
736 "Image": { 888 "type": "integer"
737 "description": "Client image to perform Google Cloud Vision API task s over.", 889 }
738 "id": "Image", 890 },
739 "properties": { 891 "type": "object"
740 "content": { 892 },
741 "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.", 893 "SafeSearchAnnotation": {
742 "format": "byte", 894 "description": "Set of features pertaining to the image, computed by computer vision\nmethods over safe-search verticals (for example, adult, spoof, medical,\nviolence).",
743 "type": "string" 895 "id": "SafeSearchAnnotation",
744 }, 896 "properties": {
745 "source": { 897 "violence": {
746 "$ref": "ImageSource", 898 "description": "Violence likelihood.",
747 "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."
748 }
749 },
750 "type": "object"
751 },
752 "FaceAnnotation": {
753 "description": "A face annotation object contains the results of fac e detection.",
754 "id": "FaceAnnotation",
755 "properties": {
756 "blurredLikelihood": {
757 "description": "Blurred likelihood.",
758 "enum": [ 899 "enum": [
759 "UNKNOWN", 900 "UNKNOWN",
760 "VERY_UNLIKELY", 901 "VERY_UNLIKELY",
761 "UNLIKELY", 902 "UNLIKELY",
762 "POSSIBLE", 903 "POSSIBLE",
763 "LIKELY", 904 "LIKELY",
764 "VERY_LIKELY" 905 "VERY_LIKELY"
765 ], 906 ],
766 "enumDescriptions": [ 907 "enumDescriptions": [
767 "Unknown likelihood.", 908 "Unknown likelihood.",
768 "It is very unlikely that the image belongs to the speci fied vertical.", 909 "It is very unlikely that the image belongs to the speci fied vertical.",
769 "It is unlikely that the image belongs to the specified vertical.", 910 "It is unlikely that the image belongs to the specified vertical.",
770 "It is possible that the image belongs to the specified vertical.", 911 "It is possible that the image belongs to the specified vertical.",
771 "It is likely that the image belongs to the specified ve rtical.", 912 "It is likely that the image belongs to the specified ve rtical.",
772 "It is very likely that the image belongs to the specifi ed vertical." 913 "It is very likely that the image belongs to the specifi ed vertical."
773 ], 914 ],
774 "type": "string" 915 "type": "string"
775 }, 916 },
776 "headwearLikelihood": { 917 "adult": {
777 "description": "Headwear likelihood.", 918 "description": "Represents the adult content likelihood for the image.",
778 "enum": [ 919 "enum": [
779 "UNKNOWN", 920 "UNKNOWN",
780 "VERY_UNLIKELY", 921 "VERY_UNLIKELY",
781 "UNLIKELY", 922 "UNLIKELY",
782 "POSSIBLE", 923 "POSSIBLE",
783 "LIKELY", 924 "LIKELY",
784 "VERY_LIKELY" 925 "VERY_LIKELY"
785 ], 926 ],
786 "enumDescriptions": [ 927 "enumDescriptions": [
787 "Unknown likelihood.", 928 "Unknown likelihood.",
788 "It is very unlikely that the image belongs to the speci fied vertical.", 929 "It is very unlikely that the image belongs to the speci fied vertical.",
789 "It is unlikely that the image belongs to the specified vertical.", 930 "It is unlikely that the image belongs to the specified vertical.",
790 "It is possible that the image belongs to the specified vertical.", 931 "It is possible that the image belongs to the specified vertical.",
791 "It is likely that the image belongs to the specified ve rtical.", 932 "It is likely that the image belongs to the specified ve rtical.",
792 "It is very likely that the image belongs to the specifi ed vertical." 933 "It is very likely that the image belongs to the specifi ed vertical."
793 ], 934 ],
794 "type": "string" 935 "type": "string"
795 }, 936 },
796 "boundingPoly": { 937 "spoof": {
797 "$ref": "BoundingPoly", 938 "description": "Spoof likelihood. The likelihood that an mod ification\nwas made to the image's canonical version to make it appear\nfunny or offensive.",
798 "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."
799 },
800 "rollAngle": {
801 "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].",
802 "format": "float",
803 "type": "number"
804 },
805 "sorrowLikelihood": {
806 "description": "Sorrow likelihood.",
807 "enum": [ 939 "enum": [
808 "UNKNOWN", 940 "UNKNOWN",
809 "VERY_UNLIKELY", 941 "VERY_UNLIKELY",
810 "UNLIKELY", 942 "UNLIKELY",
811 "POSSIBLE", 943 "POSSIBLE",
812 "LIKELY", 944 "LIKELY",
813 "VERY_LIKELY" 945 "VERY_LIKELY"
814 ], 946 ],
815 "enumDescriptions": [ 947 "enumDescriptions": [
816 "Unknown likelihood.", 948 "Unknown likelihood.",
817 "It is very unlikely that the image belongs to the speci fied vertical.", 949 "It is very unlikely that the image belongs to the speci fied vertical.",
818 "It is unlikely that the image belongs to the specified vertical.", 950 "It is unlikely that the image belongs to the specified vertical.",
819 "It is possible that the image belongs to the specified vertical.", 951 "It is possible that the image belongs to the specified vertical.",
820 "It is likely that the image belongs to the specified ve rtical.", 952 "It is likely that the image belongs to the specified ve rtical.",
821 "It is very likely that the image belongs to the specifi ed vertical." 953 "It is very likely that the image belongs to the specifi ed vertical."
822 ], 954 ],
823 "type": "string" 955 "type": "string"
824 }, 956 },
825 "tiltAngle": { 957 "medical": {
826 "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].", 958 "description": "Likelihood that this is a medical image.",
827 "format": "float",
828 "type": "number"
829 },
830 "fdBoundingPoly": {
831 "$ref": "BoundingPoly",
832 "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."
833 },
834 "surpriseLikelihood": {
835 "description": "Surprise likelihood.",
836 "enum": [ 959 "enum": [
837 "UNKNOWN", 960 "UNKNOWN",
838 "VERY_UNLIKELY", 961 "VERY_UNLIKELY",
839 "UNLIKELY", 962 "UNLIKELY",
840 "POSSIBLE", 963 "POSSIBLE",
841 "LIKELY", 964 "LIKELY",
842 "VERY_LIKELY" 965 "VERY_LIKELY"
843 ], 966 ],
844 "enumDescriptions": [ 967 "enumDescriptions": [
845 "Unknown likelihood.", 968 "Unknown likelihood.",
846 "It is very unlikely that the image belongs to the speci fied vertical.", 969 "It is very unlikely that the image belongs to the speci fied vertical.",
847 "It is unlikely that the image belongs to the specified vertical.", 970 "It is unlikely that the image belongs to the specified vertical.",
848 "It is possible that the image belongs to the specified vertical.", 971 "It is possible that the image belongs to the specified vertical.",
849 "It is likely that the image belongs to the specified ve rtical.", 972 "It is likely that the image belongs to the specified ve rtical.",
850 "It is very likely that the image belongs to the specifi ed vertical." 973 "It is very likely that the image belongs to the specifi ed vertical."
851 ], 974 ],
852 "type": "string" 975 "type": "string"
853 }, 976 }
854 "landmarks": { 977 },
855 "description": "Detected face landmarks.", 978 "type": "object"
856 "items": { 979 },
857 "$ref": "Landmark" 980 "DominantColorsAnnotation": {
858 }, 981 "description": "Set of dominant colors and their corresponding score s.",
859 "type": "array" 982 "id": "DominantColorsAnnotation",
860 }, 983 "properties": {
861 "angerLikelihood": { 984 "colors": {
862 "description": "Anger likelihood.", 985 "description": "RGB color values with their score and pixel fraction.",
986 "items": {
987 "$ref": "ColorInfo"
988 },
989 "type": "array"
990 }
991 },
992 "type": "object"
993 },
994 "TextAnnotation": {
995 "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.",
996 "id": "TextAnnotation",
997 "properties": {
998 "text": {
999 "description": "UTF-8 text detected on the pages.",
1000 "type": "string"
1001 },
1002 "pages": {
1003 "description": "List of pages detected by OCR.",
1004 "items": {
1005 "$ref": "Page"
1006 },
1007 "type": "array"
1008 }
1009 },
1010 "type": "object"
1011 },
1012 "DetectedLanguage": {
1013 "description": "Detected language for a structural component.",
1014 "id": "DetectedLanguage",
1015 "properties": {
1016 "languageCode": {
1017 "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.",
1018 "type": "string"
1019 },
1020 "confidence": {
1021 "description": "Confidence of detected language. Range [0, 1 ].",
1022 "format": "float",
1023 "type": "number"
1024 }
1025 },
1026 "type": "object"
1027 },
1028 "Vertex": {
1029 "description": "A vertex represents a 2D point in the image.\nNOTE: the vertex coordinates are in the same scale as the original image.",
1030 "id": "Vertex",
1031 "properties": {
1032 "x": {
1033 "description": "X coordinate.",
1034 "format": "int32",
1035 "type": "integer"
1036 },
1037 "y": {
1038 "description": "Y coordinate.",
1039 "format": "int32",
1040 "type": "integer"
1041 }
1042 },
1043 "type": "object"
1044 },
1045 "WebEntity": {
1046 "description": "Entity deduced from similar images on the Internet." ,
1047 "id": "WebEntity",
1048 "properties": {
1049 "entityId": {
1050 "description": "Opaque entity ID.",
1051 "type": "string"
1052 },
1053 "description": {
1054 "description": "Canonical description of the entity, in Engl ish.",
1055 "type": "string"
1056 },
1057 "score": {
1058 "description": "Overall relevancy score for the entity.\nNot normalized and not comparable across different image queries.",
1059 "format": "float",
1060 "type": "number"
1061 }
1062 },
1063 "type": "object"
1064 },
1065 "BoundingPoly": {
1066 "description": "A bounding polygon for the detected image annotation .",
1067 "id": "BoundingPoly",
1068 "properties": {
1069 "vertices": {
1070 "description": "The bounding polygon vertices.",
1071 "items": {
1072 "$ref": "Vertex"
1073 },
1074 "type": "array"
1075 }
1076 },
1077 "type": "object"
1078 },
1079 "TextProperty": {
1080 "description": "Additional information detected on the structural co mponent.",
1081 "id": "TextProperty",
1082 "properties": {
1083 "detectedLanguages": {
1084 "description": "A list of detected languages together with c onfidence.",
1085 "items": {
1086 "$ref": "DetectedLanguage"
1087 },
1088 "type": "array"
1089 },
1090 "detectedBreak": {
1091 "$ref": "DetectedBreak",
1092 "description": "Detected start or end of a text segment."
1093 }
1094 },
1095 "type": "object"
1096 },
1097 "AnnotateImageResponse": {
1098 "description": "Response to an image annotation request.",
1099 "id": "AnnotateImageResponse",
1100 "properties": {
1101 "logoAnnotations": {
1102 "description": "If present, logo detection has completed suc cessfully.",
1103 "items": {
1104 "$ref": "EntityAnnotation"
1105 },
1106 "type": "array"
1107 },
1108 "cropHintsAnnotation": {
1109 "$ref": "CropHintsAnnotation",
1110 "description": "If present, crop hints have completed succes sfully."
1111 },
1112 "webDetection": {
1113 "$ref": "WebDetection",
1114 "description": "If present, web detection has completed succ essfully."
1115 },
1116 "labelAnnotations": {
1117 "description": "If present, label detection has completed su ccessfully.",
1118 "items": {
1119 "$ref": "EntityAnnotation"
1120 },
1121 "type": "array"
1122 },
1123 "safeSearchAnnotation": {
1124 "$ref": "SafeSearchAnnotation",
1125 "description": "If present, safe-search annotation has compl eted successfully."
1126 },
1127 "error": {
1128 "$ref": "Status",
1129 "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."
1130 },
1131 "fullTextAnnotation": {
1132 "$ref": "TextAnnotation",
1133 "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."
1134 },
1135 "landmarkAnnotations": {
1136 "description": "If present, landmark detection has completed successfully.",
1137 "items": {
1138 "$ref": "EntityAnnotation"
1139 },
1140 "type": "array"
1141 },
1142 "textAnnotations": {
1143 "description": "If present, text (OCR) detection has complet ed successfully.",
1144 "items": {
1145 "$ref": "EntityAnnotation"
1146 },
1147 "type": "array"
1148 },
1149 "imagePropertiesAnnotation": {
1150 "$ref": "ImageProperties",
1151 "description": "If present, image properties were extracted successfully."
1152 },
1153 "faceAnnotations": {
1154 "description": "If present, face detection has completed suc cessfully.",
1155 "items": {
1156 "$ref": "FaceAnnotation"
1157 },
1158 "type": "array"
1159 }
1160 },
1161 "type": "object"
1162 },
1163 "CropHintsParams": {
1164 "description": "Parameters for crop hints annotation request.",
1165 "id": "CropHintsParams",
1166 "properties": {
1167 "aspectRatios": {
1168 "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.",
1169 "items": {
1170 "format": "float",
1171 "type": "number"
1172 },
1173 "type": "array"
1174 }
1175 },
1176 "type": "object"
1177 },
1178 "Block": {
1179 "description": "Logical element on the page.",
1180 "id": "Block",
1181 "properties": {
1182 "paragraphs": {
1183 "description": "List of paragraphs in this block (if this bl ocks is of type text).",
1184 "items": {
1185 "$ref": "Paragraph"
1186 },
1187 "type": "array"
1188 },
1189 "property": {
1190 "$ref": "TextProperty",
1191 "description": "Additional information detected for the bloc k."
1192 },
1193 "blockType": {
1194 "description": "Detected block type (text, image etc) for th is block.",
863 "enum": [ 1195 "enum": [
864 "UNKNOWN", 1196 "UNKNOWN",
865 "VERY_UNLIKELY", 1197 "TEXT",
866 "UNLIKELY", 1198 "TABLE",
867 "POSSIBLE", 1199 "PICTURE",
868 "LIKELY", 1200 "RULER",
869 "VERY_LIKELY" 1201 "BARCODE"
870 ], 1202 ],
871 "enumDescriptions": [ 1203 "enumDescriptions": [
872 "Unknown likelihood.", 1204 "Unknown block type.",
873 "It is very unlikely that the image belongs to the speci fied vertical.", 1205 "Regular text block.",
874 "It is unlikely that the image belongs to the specified vertical.", 1206 "Table block.",
875 "It is possible that the image belongs to the specified vertical.", 1207 "Image block.",
876 "It is likely that the image belongs to the specified ve rtical.", 1208 "Horizontal/vertical line box.",
877 "It is very likely that the image belongs to the specifi ed vertical." 1209 "Barcode block."
878 ], 1210 ],
879 "type": "string" 1211 "type": "string"
880 }, 1212 },
881 "joyLikelihood": { 1213 "boundingBox": {
882 "description": "Joy likelihood.", 1214 "$ref": "BoundingPoly",
883 "enum": [ 1215 "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)."
884 "UNKNOWN", 1216 }
885 "VERY_UNLIKELY", 1217 },
886 "UNLIKELY", 1218 "type": "object"
887 "POSSIBLE", 1219 },
888 "LIKELY", 1220 "BatchAnnotateImagesResponse": {
889 "VERY_LIKELY" 1221 "description": "Response to a batch image annotation request.",
890 ], 1222 "id": "BatchAnnotateImagesResponse",
891 "enumDescriptions": [ 1223 "properties": {
892 "Unknown likelihood.", 1224 "responses": {
893 "It is very unlikely that the image belongs to the speci fied vertical.", 1225 "description": "Individual responses to image annotation req uests within the batch.",
894 "It is unlikely that the image belongs to the specified vertical.", 1226 "items": {
895 "It is possible that the image belongs to the specified vertical.", 1227 "$ref": "AnnotateImageResponse"
896 "It is likely that the image belongs to the specified ve rtical.", 1228 },
897 "It is very likely that the image belongs to the specifi ed vertical." 1229 "type": "array"
898 ], 1230 }
899 "type": "string" 1231 },
900 }, 1232 "type": "object"
901 "landmarkingConfidence": { 1233 },
902 "description": "Face landmarking confidence. Range [0, 1].", 1234 "WebDetection": {
903 "format": "float", 1235 "description": "Relevant information for the image from the Internet .",
904 "type": "number" 1236 "id": "WebDetection",
905 }, 1237 "properties": {
906 "underExposedLikelihood": { 1238 "webEntities": {
907 "description": "Under-exposed likelihood.", 1239 "description": "Deduced entities from similar images on the Internet.",
908 "enum": [ 1240 "items": {
909 "UNKNOWN", 1241 "$ref": "WebEntity"
910 "VERY_UNLIKELY", 1242 },
911 "UNLIKELY", 1243 "type": "array"
912 "POSSIBLE", 1244 },
913 "LIKELY", 1245 "pagesWithMatchingImages": {
914 "VERY_LIKELY" 1246 "description": "Web pages containing the matching images fro m the Internet.",
915 ], 1247 "items": {
916 "enumDescriptions": [ 1248 "$ref": "WebPage"
917 "Unknown likelihood.", 1249 },
918 "It is very unlikely that the image belongs to the speci fied vertical.", 1250 "type": "array"
919 "It is unlikely that the image belongs to the specified vertical.", 1251 },
920 "It is possible that the image belongs to the specified vertical.", 1252 "partialMatchingImages": {
921 "It is likely that the image belongs to the specified ve rtical.", 1253 "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.",
922 "It is very likely that the image belongs to the specifi ed vertical." 1254 "items": {
923 ], 1255 "$ref": "WebImage"
924 "type": "string" 1256 },
925 }, 1257 "type": "array"
926 "panAngle": { 1258 },
927 "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].", 1259 "fullMatchingImages": {
928 "format": "float", 1260 "description": "Fully matching images from the Internet.\nTh ey're definite neardups and most often a copy of the query image with\nmerely a size change.",
929 "type": "number" 1261 "items": {
930 }, 1262 "$ref": "WebImage"
931 "detectionConfidence": { 1263 },
932 "description": "Detection confidence. Range [0, 1].", 1264 "type": "array"
933 "format": "float", 1265 }
934 "type": "number" 1266 },
935 } 1267 "type": "object"
936 }, 1268 },
937 "type": "object" 1269 "ImageSource": {
938 }, 1270 "description": "External image source (Google Cloud Storage image lo cation).",
939 "BatchAnnotateImagesRequest": { 1271 "id": "ImageSource",
940 "description": "Multiple image annotation requests are batched into a single service call.", 1272 "properties": {
941 "id": "BatchAnnotateImagesRequest", 1273 "gcsImageUri": {
942 "properties": { 1274 "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.",
943 "requests": { 1275 "type": "string"
944 "description": "Individual image annotation requests for thi s batch.", 1276 },
945 "items": { 1277 "imageUri": {
946 "$ref": "AnnotateImageRequest" 1278 "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.",
947 }, 1279 "type": "string"
948 "type": "array" 1280 }
1281 },
1282 "type": "object"
1283 },
1284 "Property": {
1285 "description": "A `Property` consists of a user-supplied name/value pair.",
1286 "id": "Property",
1287 "properties": {
1288 "uint64Value": {
1289 "description": "Value of numeric properties.",
1290 "format": "uint64",
1291 "type": "string"
1292 },
1293 "name": {
1294 "description": "Name of the property.",
1295 "type": "string"
1296 },
1297 "value": {
1298 "description": "Value of the property.",
1299 "type": "string"
1300 }
1301 },
1302 "type": "object"
1303 },
1304 "LocationInfo": {
1305 "description": "Detected entity location information.",
1306 "id": "LocationInfo",
1307 "properties": {
1308 "latLng": {
1309 "$ref": "LatLng",
1310 "description": "lat/long location coordinates."
1311 }
1312 },
1313 "type": "object"
1314 },
1315 "Position": {
1316 "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.",
1317 "id": "Position",
1318 "properties": {
1319 "y": {
1320 "description": "Y coordinate.",
1321 "format": "float",
1322 "type": "number"
1323 },
1324 "x": {
1325 "description": "X coordinate.",
1326 "format": "float",
1327 "type": "number"
1328 },
1329 "z": {
1330 "description": "Z coordinate (or depth).",
1331 "format": "float",
1332 "type": "number"
949 } 1333 }
950 }, 1334 },
951 "type": "object" 1335 "type": "object"
952 } 1336 }
953 }, 1337 },
954 "servicePath": "", 1338 "servicePath": "",
955 "title": "Google Cloud Vision API", 1339 "title": "Google Cloud Vision API",
956 "version": "v1" 1340 "version": "v1"
957 } 1341 }
OLDNEW
« no previous file with comments | « discovery/googleapis/tracing__v1.json ('k') | discovery/googleapis/youtubeAnalytics__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698