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