aws-sdk-rekognition 1.70.0 → 1.72.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rekognition/client.rb +187 -39
- data/lib/aws-sdk-rekognition/client_api.rb +81 -0
- data/lib/aws-sdk-rekognition/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-rekognition/endpoint_provider.rb +139 -0
- data/lib/aws-sdk-rekognition/endpoints.rb +897 -0
- data/lib/aws-sdk-rekognition/plugins/endpoints.rb +194 -0
- data/lib/aws-sdk-rekognition/types.rb +354 -16
- data/lib/aws-sdk-rekognition.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59e3c384ad0740cd57cc26b976cfc30f0b0ed8651a37b8100489e8ce2faedabc
|
4
|
+
data.tar.gz: 240fc9c7d44843b9c4e2829931f467a6b3a1328352ca6b65453a98cec036094b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 417c29e0ef8da4ce0cbe2745a25cf49591719cbbd07aa0f8c2f7bf6eeaed28c06edf1e865af40bf9210525bb7f00c8be63052e87c0aad42e42ede10f63e498f4
|
7
|
+
data.tar.gz: 78802af11d77ace741a2cce11f5c4673d9a00ea92c5844593f4f9af04cc6d1e61e093a6503a4088ba425aa74b9ba72545fb407ec34a2734a807021a3d2559190
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.72.0 (2022-11-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adding support for ImageProperties feature to detect dominant colors and image brightness, sharpness, and contrast, inclusion and exclusion filters for labels and label categories, new fields to the API response, "aliases" and "categories"
|
8
|
+
|
9
|
+
1.71.0 (2022-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.70.0 (2022-08-16)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.72.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:rekognition)
|
@@ -79,8 +79,9 @@ module Aws::Rekognition
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
84
|
+
add_plugin(Aws::Rekognition::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -297,6 +298,19 @@ module Aws::Rekognition
|
|
297
298
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
298
299
|
# requests are made, and retries are disabled.
|
299
300
|
#
|
301
|
+
# @option options [Aws::TokenProvider] :token_provider
|
302
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
303
|
+
# following classes:
|
304
|
+
#
|
305
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
306
|
+
# tokens.
|
307
|
+
#
|
308
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
309
|
+
# access token generated from `aws login`.
|
310
|
+
#
|
311
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
312
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
313
|
+
#
|
300
314
|
# @option options [Boolean] :use_dualstack_endpoint
|
301
315
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
302
316
|
# will be used if available.
|
@@ -310,6 +324,9 @@ module Aws::Rekognition
|
|
310
324
|
# When `true`, request parameters are validated before
|
311
325
|
# sending the request.
|
312
326
|
#
|
327
|
+
# @option options [Aws::Rekognition::EndpointProvider] :endpoint_provider
|
328
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Rekognition::EndpointParameters`
|
329
|
+
#
|
313
330
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
314
331
|
# requests through. Formatted like 'http://proxy.com:123'.
|
315
332
|
#
|
@@ -2160,23 +2177,85 @@ module Aws::Rekognition
|
|
2160
2177
|
# For an example, see Analyzing images stored in an Amazon S3 bucket in
|
2161
2178
|
# the Amazon Rekognition Developer Guide.
|
2162
2179
|
#
|
2163
|
-
# <note markdown="1"> `DetectLabels` does not support the detection of activities. However,
|
2164
|
-
# activity detection is supported for label detection in videos. For
|
2165
|
-
# more information, see StartLabelDetection in the Amazon Rekognition
|
2166
|
-
# Developer Guide.
|
2167
|
-
#
|
2168
|
-
# </note>
|
2169
|
-
#
|
2170
2180
|
# You pass the input image as base64-encoded image bytes or as a
|
2171
2181
|
# reference to an image in an Amazon S3 bucket. If you use the AWS CLI
|
2172
2182
|
# to call Amazon Rekognition operations, passing image bytes is not
|
2173
2183
|
# supported. The image must be either a PNG or JPEG formatted file.
|
2174
2184
|
#
|
2185
|
+
# **Optional Parameters**
|
2186
|
+
#
|
2187
|
+
# You can specify one or both of the `GENERAL_LABELS` and
|
2188
|
+
# `IMAGE_PROPERTIES` feature types when calling the DetectLabels API.
|
2189
|
+
# Including `GENERAL_LABELS` will ensure the response includes the
|
2190
|
+
# labels detected in the input image, while including `IMAGE_PROPERTIES
|
2191
|
+
# `will ensure the response includes information about the image quality
|
2192
|
+
# and color.
|
2193
|
+
#
|
2194
|
+
# When using `GENERAL_LABELS` and/or `IMAGE_PROPERTIES` you can provide
|
2195
|
+
# filtering criteria to the Settings parameter. You can filter with sets
|
2196
|
+
# of individual labels or with label categories. You can specify
|
2197
|
+
# inclusive filters, exclusive filters, or a combination of inclusive
|
2198
|
+
# and exclusive filters. For more information on filtering see
|
2199
|
+
# [Detecting Labels in an Image][1].
|
2200
|
+
#
|
2201
|
+
# You can specify `MinConfidence` to control the confidence threshold
|
2202
|
+
# for the labels returned. The default is 55%. You can also add the
|
2203
|
+
# `MaxLabels` parameter to limit the number of labels returned. The
|
2204
|
+
# default and upper limit is 1000 labels.
|
2205
|
+
#
|
2206
|
+
# **Response Elements**
|
2207
|
+
#
|
2175
2208
|
# For each object, scene, and concept the API returns one or more
|
2176
|
-
# labels.
|
2177
|
-
#
|
2178
|
-
#
|
2179
|
-
#
|
2209
|
+
# labels. The API returns the following types of information regarding
|
2210
|
+
# labels:
|
2211
|
+
#
|
2212
|
+
# * Name - The name of the detected label.
|
2213
|
+
#
|
2214
|
+
# * Confidence - The level of confidence in the label assigned to a
|
2215
|
+
# detected object.
|
2216
|
+
#
|
2217
|
+
# * Parents - The ancestor labels for a detected label. DetectLabels
|
2218
|
+
# returns a hierarchical taxonomy of detected labels. For example, a
|
2219
|
+
# detected car might be assigned the label car. The label car has two
|
2220
|
+
# parent labels: Vehicle (its parent) and Transportation (its
|
2221
|
+
# grandparent). The response includes the all ancestors for a label,
|
2222
|
+
# where every ancestor is a unique label. In the previous example,
|
2223
|
+
# Car, Vehicle, and Transportation are returned as unique labels in
|
2224
|
+
# the response.
|
2225
|
+
#
|
2226
|
+
# * Aliases - Possible Aliases for the label.
|
2227
|
+
#
|
2228
|
+
# * Categories - The label categories that the detected label belongs
|
2229
|
+
# to. A given label can belong to more than one category.
|
2230
|
+
#
|
2231
|
+
# * BoundingBox — Bounding boxes are described for all instances of
|
2232
|
+
# detected common object labels, returned in an array of Instance
|
2233
|
+
# objects. An Instance object contains a BoundingBox object,
|
2234
|
+
# describing the location of the label on the input image. It also
|
2235
|
+
# includes the confidence for the accuracy of the detected bounding
|
2236
|
+
# box.
|
2237
|
+
#
|
2238
|
+
# The API returns the following information regarding the image, as part
|
2239
|
+
# of the ImageProperties structure:
|
2240
|
+
#
|
2241
|
+
# * Quality - Information about the Sharpness, Brightness, and Contrast
|
2242
|
+
# of the input image, scored between 0 to 100. Image quality is
|
2243
|
+
# returned for the entire image, as well as the background and the
|
2244
|
+
# foreground.
|
2245
|
+
#
|
2246
|
+
# * Dominant Color - An array of the dominant colors in the image.
|
2247
|
+
#
|
2248
|
+
# * Foreground - Information about the Sharpness and Brightness of the
|
2249
|
+
# input image’s foreground.
|
2250
|
+
#
|
2251
|
+
# * Background - Information about the Sharpness and Brightness of the
|
2252
|
+
# input image’s background.
|
2253
|
+
#
|
2254
|
+
# The list of returned labels will include at least one label for every
|
2255
|
+
# detected object, along with information about that label. In the
|
2256
|
+
# following example, suppose the input image has a lighthouse, the sea,
|
2257
|
+
# and a rock. The response includes all three labels, one for each
|
2258
|
+
# object, as well as the confidence in the label:
|
2180
2259
|
#
|
2181
2260
|
# `\{Name: lighthouse, Confidence: 98.4629\}`
|
2182
2261
|
#
|
@@ -2184,11 +2263,9 @@ module Aws::Rekognition
|
|
2184
2263
|
#
|
2185
2264
|
# ` \{Name: sea,Confidence: 75.061\}`
|
2186
2265
|
#
|
2187
|
-
#
|
2188
|
-
# the
|
2189
|
-
# the
|
2190
|
-
# flower (for example, a tulip), the operation might return the
|
2191
|
-
# following three labels.
|
2266
|
+
# The list of labels can include multiple labels for the same object.
|
2267
|
+
# For example, if the input image shows a flower (for example, a tulip),
|
2268
|
+
# the operation might return the following three labels.
|
2192
2269
|
#
|
2193
2270
|
# `\{Name: flower,Confidence: 99.0562\}`
|
2194
2271
|
#
|
@@ -2199,36 +2276,21 @@ module Aws::Rekognition
|
|
2199
2276
|
# In this example, the detection algorithm more precisely identifies the
|
2200
2277
|
# flower as a tulip.
|
2201
2278
|
#
|
2202
|
-
# In response, the API returns an array of labels. In addition, the
|
2203
|
-
# response also includes the orientation correction. Optionally, you can
|
2204
|
-
# specify `MinConfidence` to control the confidence threshold for the
|
2205
|
-
# labels returned. The default is 55%. You can also add the `MaxLabels`
|
2206
|
-
# parameter to limit the number of labels returned.
|
2207
|
-
#
|
2208
2279
|
# <note markdown="1"> If the object detected is a person, the operation doesn't provide the
|
2209
2280
|
# same facial details that the DetectFaces operation provides.
|
2210
2281
|
#
|
2211
2282
|
# </note>
|
2212
2283
|
#
|
2213
|
-
# `DetectLabels` returns bounding boxes for instances of common object
|
2214
|
-
# labels in an array of Instance objects. An `Instance` object contains
|
2215
|
-
# a BoundingBox object, for the location of the label on the image. It
|
2216
|
-
# also includes the confidence by which the bounding box was detected.
|
2217
|
-
#
|
2218
|
-
# `DetectLabels` also returns a hierarchical taxonomy of detected
|
2219
|
-
# labels. For example, a detected car might be assigned the label *car*.
|
2220
|
-
# The label *car* has two parent labels: *Vehicle* (its parent) and
|
2221
|
-
# *Transportation* (its grandparent). The response returns the entire
|
2222
|
-
# list of ancestors for a label. Each ancestor is a unique label in the
|
2223
|
-
# response. In the previous example, *Car*, *Vehicle*, and
|
2224
|
-
# *Transportation* are returned as unique labels in the response.
|
2225
|
-
#
|
2226
2284
|
# This is a stateless API operation. That is, the operation does not
|
2227
2285
|
# persist any data.
|
2228
2286
|
#
|
2229
2287
|
# This operation requires permissions to perform the
|
2230
2288
|
# `rekognition:DetectLabels` action.
|
2231
2289
|
#
|
2290
|
+
#
|
2291
|
+
#
|
2292
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/labels-detect-labels-image.html
|
2293
|
+
#
|
2232
2294
|
# @option params [required, Types::Image] :image
|
2233
2295
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
2234
2296
|
# the AWS CLI to call Amazon Rekognition operations, passing image bytes
|
@@ -2253,11 +2315,26 @@ module Aws::Rekognition
|
|
2253
2315
|
# If `MinConfidence` is not specified, the operation returns labels with
|
2254
2316
|
# a confidence values greater than or equal to 55 percent.
|
2255
2317
|
#
|
2318
|
+
# @option params [Array<String>] :features
|
2319
|
+
# A list of the types of analysis to perform. Specifying GENERAL\_LABELS
|
2320
|
+
# uses the label detection feature, while specifying IMAGE\_PROPERTIES
|
2321
|
+
# returns information regarding image color and quality. If no option is
|
2322
|
+
# specified GENERAL\_LABELS is used by default.
|
2323
|
+
#
|
2324
|
+
# @option params [Types::DetectLabelsSettings] :settings
|
2325
|
+
# A list of the filters to be applied to returned detected labels and
|
2326
|
+
# image properties. Specified filters can be inclusive, exclusive, or a
|
2327
|
+
# combination of both. Filters can be used for individual labels or
|
2328
|
+
# label categories. The exact label names or label categories must be
|
2329
|
+
# supplied. For a full list of labels and label categories, see LINK
|
2330
|
+
# HERE.
|
2331
|
+
#
|
2256
2332
|
# @return [Types::DetectLabelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2257
2333
|
#
|
2258
2334
|
# * {Types::DetectLabelsResponse#labels #labels} => Array<Types::Label>
|
2259
2335
|
# * {Types::DetectLabelsResponse#orientation_correction #orientation_correction} => String
|
2260
2336
|
# * {Types::DetectLabelsResponse#label_model_version #label_model_version} => String
|
2337
|
+
# * {Types::DetectLabelsResponse#image_properties #image_properties} => Types::DetectLabelsImageProperties
|
2261
2338
|
#
|
2262
2339
|
#
|
2263
2340
|
# @example Example: To detect labels
|
@@ -2302,6 +2379,18 @@ module Aws::Rekognition
|
|
2302
2379
|
# },
|
2303
2380
|
# max_labels: 1,
|
2304
2381
|
# min_confidence: 1.0,
|
2382
|
+
# features: ["GENERAL_LABELS"], # accepts GENERAL_LABELS, IMAGE_PROPERTIES
|
2383
|
+
# settings: {
|
2384
|
+
# general_labels: {
|
2385
|
+
# label_inclusion_filters: ["GeneralLabelsFilterValue"],
|
2386
|
+
# label_exclusion_filters: ["GeneralLabelsFilterValue"],
|
2387
|
+
# label_category_inclusion_filters: ["GeneralLabelsFilterValue"],
|
2388
|
+
# label_category_exclusion_filters: ["GeneralLabelsFilterValue"],
|
2389
|
+
# },
|
2390
|
+
# image_properties: {
|
2391
|
+
# max_dominant_colors: 1,
|
2392
|
+
# },
|
2393
|
+
# },
|
2305
2394
|
# })
|
2306
2395
|
#
|
2307
2396
|
# @example Response structure
|
@@ -2315,10 +2404,55 @@ module Aws::Rekognition
|
|
2315
2404
|
# resp.labels[0].instances[0].bounding_box.left #=> Float
|
2316
2405
|
# resp.labels[0].instances[0].bounding_box.top #=> Float
|
2317
2406
|
# resp.labels[0].instances[0].confidence #=> Float
|
2407
|
+
# resp.labels[0].instances[0].dominant_colors #=> Array
|
2408
|
+
# resp.labels[0].instances[0].dominant_colors[0].red #=> Integer
|
2409
|
+
# resp.labels[0].instances[0].dominant_colors[0].blue #=> Integer
|
2410
|
+
# resp.labels[0].instances[0].dominant_colors[0].green #=> Integer
|
2411
|
+
# resp.labels[0].instances[0].dominant_colors[0].hex_code #=> String
|
2412
|
+
# resp.labels[0].instances[0].dominant_colors[0].css_color #=> String
|
2413
|
+
# resp.labels[0].instances[0].dominant_colors[0].simplified_color #=> String
|
2414
|
+
# resp.labels[0].instances[0].dominant_colors[0].pixel_percent #=> Float
|
2318
2415
|
# resp.labels[0].parents #=> Array
|
2319
2416
|
# resp.labels[0].parents[0].name #=> String
|
2417
|
+
# resp.labels[0].aliases #=> Array
|
2418
|
+
# resp.labels[0].aliases[0].name #=> String
|
2419
|
+
# resp.labels[0].categories #=> Array
|
2420
|
+
# resp.labels[0].categories[0].name #=> String
|
2320
2421
|
# resp.orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
|
2321
2422
|
# resp.label_model_version #=> String
|
2423
|
+
# resp.image_properties.quality.brightness #=> Float
|
2424
|
+
# resp.image_properties.quality.sharpness #=> Float
|
2425
|
+
# resp.image_properties.quality.contrast #=> Float
|
2426
|
+
# resp.image_properties.dominant_colors #=> Array
|
2427
|
+
# resp.image_properties.dominant_colors[0].red #=> Integer
|
2428
|
+
# resp.image_properties.dominant_colors[0].blue #=> Integer
|
2429
|
+
# resp.image_properties.dominant_colors[0].green #=> Integer
|
2430
|
+
# resp.image_properties.dominant_colors[0].hex_code #=> String
|
2431
|
+
# resp.image_properties.dominant_colors[0].css_color #=> String
|
2432
|
+
# resp.image_properties.dominant_colors[0].simplified_color #=> String
|
2433
|
+
# resp.image_properties.dominant_colors[0].pixel_percent #=> Float
|
2434
|
+
# resp.image_properties.foreground.quality.brightness #=> Float
|
2435
|
+
# resp.image_properties.foreground.quality.sharpness #=> Float
|
2436
|
+
# resp.image_properties.foreground.quality.contrast #=> Float
|
2437
|
+
# resp.image_properties.foreground.dominant_colors #=> Array
|
2438
|
+
# resp.image_properties.foreground.dominant_colors[0].red #=> Integer
|
2439
|
+
# resp.image_properties.foreground.dominant_colors[0].blue #=> Integer
|
2440
|
+
# resp.image_properties.foreground.dominant_colors[0].green #=> Integer
|
2441
|
+
# resp.image_properties.foreground.dominant_colors[0].hex_code #=> String
|
2442
|
+
# resp.image_properties.foreground.dominant_colors[0].css_color #=> String
|
2443
|
+
# resp.image_properties.foreground.dominant_colors[0].simplified_color #=> String
|
2444
|
+
# resp.image_properties.foreground.dominant_colors[0].pixel_percent #=> Float
|
2445
|
+
# resp.image_properties.background.quality.brightness #=> Float
|
2446
|
+
# resp.image_properties.background.quality.sharpness #=> Float
|
2447
|
+
# resp.image_properties.background.quality.contrast #=> Float
|
2448
|
+
# resp.image_properties.background.dominant_colors #=> Array
|
2449
|
+
# resp.image_properties.background.dominant_colors[0].red #=> Integer
|
2450
|
+
# resp.image_properties.background.dominant_colors[0].blue #=> Integer
|
2451
|
+
# resp.image_properties.background.dominant_colors[0].green #=> Integer
|
2452
|
+
# resp.image_properties.background.dominant_colors[0].hex_code #=> String
|
2453
|
+
# resp.image_properties.background.dominant_colors[0].css_color #=> String
|
2454
|
+
# resp.image_properties.background.dominant_colors[0].simplified_color #=> String
|
2455
|
+
# resp.image_properties.background.dominant_colors[0].pixel_percent #=> Float
|
2322
2456
|
#
|
2323
2457
|
# @overload detect_labels(params = {})
|
2324
2458
|
# @param [Hash] params ({})
|
@@ -3361,8 +3495,20 @@ module Aws::Rekognition
|
|
3361
3495
|
# resp.labels[0].label.instances[0].bounding_box.left #=> Float
|
3362
3496
|
# resp.labels[0].label.instances[0].bounding_box.top #=> Float
|
3363
3497
|
# resp.labels[0].label.instances[0].confidence #=> Float
|
3498
|
+
# resp.labels[0].label.instances[0].dominant_colors #=> Array
|
3499
|
+
# resp.labels[0].label.instances[0].dominant_colors[0].red #=> Integer
|
3500
|
+
# resp.labels[0].label.instances[0].dominant_colors[0].blue #=> Integer
|
3501
|
+
# resp.labels[0].label.instances[0].dominant_colors[0].green #=> Integer
|
3502
|
+
# resp.labels[0].label.instances[0].dominant_colors[0].hex_code #=> String
|
3503
|
+
# resp.labels[0].label.instances[0].dominant_colors[0].css_color #=> String
|
3504
|
+
# resp.labels[0].label.instances[0].dominant_colors[0].simplified_color #=> String
|
3505
|
+
# resp.labels[0].label.instances[0].dominant_colors[0].pixel_percent #=> Float
|
3364
3506
|
# resp.labels[0].label.parents #=> Array
|
3365
3507
|
# resp.labels[0].label.parents[0].name #=> String
|
3508
|
+
# resp.labels[0].label.aliases #=> Array
|
3509
|
+
# resp.labels[0].label.aliases[0].name #=> String
|
3510
|
+
# resp.labels[0].label.categories #=> Array
|
3511
|
+
# resp.labels[0].label.categories[0].name #=> String
|
3366
3512
|
# resp.label_model_version #=> String
|
3367
3513
|
#
|
3368
3514
|
# @overload get_label_detection(params = {})
|
@@ -5916,7 +6062,9 @@ module Aws::Rekognition
|
|
5916
6062
|
# @option params [Types::StreamProcessingStartSelector] :start_selector
|
5917
6063
|
# Specifies the starting point in the Kinesis stream to start
|
5918
6064
|
# processing. You can use the producer timestamp or the fragment number.
|
5919
|
-
#
|
6065
|
+
# If you use the producer timestamp, you must put the time in
|
6066
|
+
# milliseconds. For more information about fragment numbers, see
|
6067
|
+
# [Fragment][1].
|
5920
6068
|
#
|
5921
6069
|
# This is a required parameter for label detection stream processors and
|
5922
6070
|
# should not be used to start a face search stream processor.
|
@@ -6321,7 +6469,7 @@ module Aws::Rekognition
|
|
6321
6469
|
params: params,
|
6322
6470
|
config: config)
|
6323
6471
|
context[:gem_name] = 'aws-sdk-rekognition'
|
6324
|
-
context[:gem_version] = '1.
|
6472
|
+
context[:gem_version] = '1.72.0'
|
6325
6473
|
Seahorse::Client::Request.new(handlers, context)
|
6326
6474
|
end
|
6327
6475
|
|
@@ -117,8 +117,17 @@ module Aws::Rekognition
|
|
117
117
|
DetectCustomLabelsResponse = Shapes::StructureShape.new(name: 'DetectCustomLabelsResponse')
|
118
118
|
DetectFacesRequest = Shapes::StructureShape.new(name: 'DetectFacesRequest')
|
119
119
|
DetectFacesResponse = Shapes::StructureShape.new(name: 'DetectFacesResponse')
|
120
|
+
DetectLabelsFeatureList = Shapes::ListShape.new(name: 'DetectLabelsFeatureList')
|
121
|
+
DetectLabelsFeatureName = Shapes::StringShape.new(name: 'DetectLabelsFeatureName')
|
122
|
+
DetectLabelsImageBackground = Shapes::StructureShape.new(name: 'DetectLabelsImageBackground')
|
123
|
+
DetectLabelsImageForeground = Shapes::StructureShape.new(name: 'DetectLabelsImageForeground')
|
124
|
+
DetectLabelsImageProperties = Shapes::StructureShape.new(name: 'DetectLabelsImageProperties')
|
125
|
+
DetectLabelsImagePropertiesSettings = Shapes::StructureShape.new(name: 'DetectLabelsImagePropertiesSettings')
|
126
|
+
DetectLabelsImageQuality = Shapes::StructureShape.new(name: 'DetectLabelsImageQuality')
|
127
|
+
DetectLabelsMaxDominantColors = Shapes::IntegerShape.new(name: 'DetectLabelsMaxDominantColors')
|
120
128
|
DetectLabelsRequest = Shapes::StructureShape.new(name: 'DetectLabelsRequest')
|
121
129
|
DetectLabelsResponse = Shapes::StructureShape.new(name: 'DetectLabelsResponse')
|
130
|
+
DetectLabelsSettings = Shapes::StructureShape.new(name: 'DetectLabelsSettings')
|
122
131
|
DetectModerationLabelsRequest = Shapes::StructureShape.new(name: 'DetectModerationLabelsRequest')
|
123
132
|
DetectModerationLabelsResponse = Shapes::StructureShape.new(name: 'DetectModerationLabelsResponse')
|
124
133
|
DetectProtectiveEquipmentRequest = Shapes::StructureShape.new(name: 'DetectProtectiveEquipmentRequest')
|
@@ -131,6 +140,8 @@ module Aws::Rekognition
|
|
131
140
|
DistributeDatasetEntriesRequest = Shapes::StructureShape.new(name: 'DistributeDatasetEntriesRequest')
|
132
141
|
DistributeDatasetEntriesResponse = Shapes::StructureShape.new(name: 'DistributeDatasetEntriesResponse')
|
133
142
|
DistributeDatasetMetadataList = Shapes::ListShape.new(name: 'DistributeDatasetMetadataList')
|
143
|
+
DominantColor = Shapes::StructureShape.new(name: 'DominantColor')
|
144
|
+
DominantColors = Shapes::ListShape.new(name: 'DominantColors')
|
134
145
|
Emotion = Shapes::StructureShape.new(name: 'Emotion')
|
135
146
|
EmotionName = Shapes::StringShape.new(name: 'EmotionName')
|
136
147
|
Emotions = Shapes::ListShape.new(name: 'Emotions')
|
@@ -161,6 +172,9 @@ module Aws::Rekognition
|
|
161
172
|
FlowDefinitionArn = Shapes::StringShape.new(name: 'FlowDefinitionArn')
|
162
173
|
Gender = Shapes::StructureShape.new(name: 'Gender')
|
163
174
|
GenderType = Shapes::StringShape.new(name: 'GenderType')
|
175
|
+
GeneralLabelsFilterList = Shapes::ListShape.new(name: 'GeneralLabelsFilterList')
|
176
|
+
GeneralLabelsFilterValue = Shapes::StringShape.new(name: 'GeneralLabelsFilterValue')
|
177
|
+
GeneralLabelsSettings = Shapes::StructureShape.new(name: 'GeneralLabelsSettings')
|
164
178
|
Geometry = Shapes::StructureShape.new(name: 'Geometry')
|
165
179
|
GetCelebrityInfoRequest = Shapes::StructureShape.new(name: 'GetCelebrityInfoRequest')
|
166
180
|
GetCelebrityInfoResponse = Shapes::StructureShape.new(name: 'GetCelebrityInfoResponse')
|
@@ -223,6 +237,10 @@ module Aws::Rekognition
|
|
223
237
|
KnownGender = Shapes::StructureShape.new(name: 'KnownGender')
|
224
238
|
KnownGenderType = Shapes::StringShape.new(name: 'KnownGenderType')
|
225
239
|
Label = Shapes::StructureShape.new(name: 'Label')
|
240
|
+
LabelAlias = Shapes::StructureShape.new(name: 'LabelAlias')
|
241
|
+
LabelAliases = Shapes::ListShape.new(name: 'LabelAliases')
|
242
|
+
LabelCategories = Shapes::ListShape.new(name: 'LabelCategories')
|
243
|
+
LabelCategory = Shapes::StructureShape.new(name: 'LabelCategory')
|
226
244
|
LabelDetection = Shapes::StructureShape.new(name: 'LabelDetection')
|
227
245
|
LabelDetectionSortBy = Shapes::StringShape.new(name: 'LabelDetectionSortBy')
|
228
246
|
LabelDetections = Shapes::ListShape.new(name: 'LabelDetections')
|
@@ -779,16 +797,47 @@ module Aws::Rekognition
|
|
779
797
|
DetectFacesResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
|
780
798
|
DetectFacesResponse.struct_class = Types::DetectFacesResponse
|
781
799
|
|
800
|
+
DetectLabelsFeatureList.member = Shapes::ShapeRef.new(shape: DetectLabelsFeatureName)
|
801
|
+
|
802
|
+
DetectLabelsImageBackground.add_member(:quality, Shapes::ShapeRef.new(shape: DetectLabelsImageQuality, location_name: "Quality"))
|
803
|
+
DetectLabelsImageBackground.add_member(:dominant_colors, Shapes::ShapeRef.new(shape: DominantColors, location_name: "DominantColors"))
|
804
|
+
DetectLabelsImageBackground.struct_class = Types::DetectLabelsImageBackground
|
805
|
+
|
806
|
+
DetectLabelsImageForeground.add_member(:quality, Shapes::ShapeRef.new(shape: DetectLabelsImageQuality, location_name: "Quality"))
|
807
|
+
DetectLabelsImageForeground.add_member(:dominant_colors, Shapes::ShapeRef.new(shape: DominantColors, location_name: "DominantColors"))
|
808
|
+
DetectLabelsImageForeground.struct_class = Types::DetectLabelsImageForeground
|
809
|
+
|
810
|
+
DetectLabelsImageProperties.add_member(:quality, Shapes::ShapeRef.new(shape: DetectLabelsImageQuality, location_name: "Quality"))
|
811
|
+
DetectLabelsImageProperties.add_member(:dominant_colors, Shapes::ShapeRef.new(shape: DominantColors, location_name: "DominantColors"))
|
812
|
+
DetectLabelsImageProperties.add_member(:foreground, Shapes::ShapeRef.new(shape: DetectLabelsImageForeground, location_name: "Foreground"))
|
813
|
+
DetectLabelsImageProperties.add_member(:background, Shapes::ShapeRef.new(shape: DetectLabelsImageBackground, location_name: "Background"))
|
814
|
+
DetectLabelsImageProperties.struct_class = Types::DetectLabelsImageProperties
|
815
|
+
|
816
|
+
DetectLabelsImagePropertiesSettings.add_member(:max_dominant_colors, Shapes::ShapeRef.new(shape: DetectLabelsMaxDominantColors, location_name: "MaxDominantColors"))
|
817
|
+
DetectLabelsImagePropertiesSettings.struct_class = Types::DetectLabelsImagePropertiesSettings
|
818
|
+
|
819
|
+
DetectLabelsImageQuality.add_member(:brightness, Shapes::ShapeRef.new(shape: Float, location_name: "Brightness"))
|
820
|
+
DetectLabelsImageQuality.add_member(:sharpness, Shapes::ShapeRef.new(shape: Float, location_name: "Sharpness"))
|
821
|
+
DetectLabelsImageQuality.add_member(:contrast, Shapes::ShapeRef.new(shape: Float, location_name: "Contrast"))
|
822
|
+
DetectLabelsImageQuality.struct_class = Types::DetectLabelsImageQuality
|
823
|
+
|
782
824
|
DetectLabelsRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
783
825
|
DetectLabelsRequest.add_member(:max_labels, Shapes::ShapeRef.new(shape: UInteger, location_name: "MaxLabels"))
|
784
826
|
DetectLabelsRequest.add_member(:min_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MinConfidence"))
|
827
|
+
DetectLabelsRequest.add_member(:features, Shapes::ShapeRef.new(shape: DetectLabelsFeatureList, location_name: "Features"))
|
828
|
+
DetectLabelsRequest.add_member(:settings, Shapes::ShapeRef.new(shape: DetectLabelsSettings, location_name: "Settings"))
|
785
829
|
DetectLabelsRequest.struct_class = Types::DetectLabelsRequest
|
786
830
|
|
787
831
|
DetectLabelsResponse.add_member(:labels, Shapes::ShapeRef.new(shape: Labels, location_name: "Labels"))
|
788
832
|
DetectLabelsResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
|
789
833
|
DetectLabelsResponse.add_member(:label_model_version, Shapes::ShapeRef.new(shape: String, location_name: "LabelModelVersion"))
|
834
|
+
DetectLabelsResponse.add_member(:image_properties, Shapes::ShapeRef.new(shape: DetectLabelsImageProperties, location_name: "ImageProperties"))
|
790
835
|
DetectLabelsResponse.struct_class = Types::DetectLabelsResponse
|
791
836
|
|
837
|
+
DetectLabelsSettings.add_member(:general_labels, Shapes::ShapeRef.new(shape: GeneralLabelsSettings, location_name: "GeneralLabels"))
|
838
|
+
DetectLabelsSettings.add_member(:image_properties, Shapes::ShapeRef.new(shape: DetectLabelsImagePropertiesSettings, location_name: "ImageProperties"))
|
839
|
+
DetectLabelsSettings.struct_class = Types::DetectLabelsSettings
|
840
|
+
|
792
841
|
DetectModerationLabelsRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
793
842
|
DetectModerationLabelsRequest.add_member(:min_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MinConfidence"))
|
794
843
|
DetectModerationLabelsRequest.add_member(:human_loop_config, Shapes::ShapeRef.new(shape: HumanLoopConfig, location_name: "HumanLoopConfig"))
|
@@ -835,6 +884,17 @@ module Aws::Rekognition
|
|
835
884
|
|
836
885
|
DistributeDatasetMetadataList.member = Shapes::ShapeRef.new(shape: DistributeDataset)
|
837
886
|
|
887
|
+
DominantColor.add_member(:red, Shapes::ShapeRef.new(shape: UInteger, location_name: "Red"))
|
888
|
+
DominantColor.add_member(:blue, Shapes::ShapeRef.new(shape: UInteger, location_name: "Blue"))
|
889
|
+
DominantColor.add_member(:green, Shapes::ShapeRef.new(shape: UInteger, location_name: "Green"))
|
890
|
+
DominantColor.add_member(:hex_code, Shapes::ShapeRef.new(shape: String, location_name: "HexCode"))
|
891
|
+
DominantColor.add_member(:css_color, Shapes::ShapeRef.new(shape: String, location_name: "CSSColor"))
|
892
|
+
DominantColor.add_member(:simplified_color, Shapes::ShapeRef.new(shape: String, location_name: "SimplifiedColor"))
|
893
|
+
DominantColor.add_member(:pixel_percent, Shapes::ShapeRef.new(shape: Percent, location_name: "PixelPercent"))
|
894
|
+
DominantColor.struct_class = Types::DominantColor
|
895
|
+
|
896
|
+
DominantColors.member = Shapes::ShapeRef.new(shape: DominantColor)
|
897
|
+
|
838
898
|
Emotion.add_member(:type, Shapes::ShapeRef.new(shape: EmotionName, location_name: "Type"))
|
839
899
|
Emotion.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
840
900
|
Emotion.struct_class = Types::Emotion
|
@@ -920,6 +980,14 @@ module Aws::Rekognition
|
|
920
980
|
Gender.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
921
981
|
Gender.struct_class = Types::Gender
|
922
982
|
|
983
|
+
GeneralLabelsFilterList.member = Shapes::ShapeRef.new(shape: GeneralLabelsFilterValue)
|
984
|
+
|
985
|
+
GeneralLabelsSettings.add_member(:label_inclusion_filters, Shapes::ShapeRef.new(shape: GeneralLabelsFilterList, location_name: "LabelInclusionFilters"))
|
986
|
+
GeneralLabelsSettings.add_member(:label_exclusion_filters, Shapes::ShapeRef.new(shape: GeneralLabelsFilterList, location_name: "LabelExclusionFilters"))
|
987
|
+
GeneralLabelsSettings.add_member(:label_category_inclusion_filters, Shapes::ShapeRef.new(shape: GeneralLabelsFilterList, location_name: "LabelCategoryInclusionFilters"))
|
988
|
+
GeneralLabelsSettings.add_member(:label_category_exclusion_filters, Shapes::ShapeRef.new(shape: GeneralLabelsFilterList, location_name: "LabelCategoryExclusionFilters"))
|
989
|
+
GeneralLabelsSettings.struct_class = Types::GeneralLabelsSettings
|
990
|
+
|
923
991
|
Geometry.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
|
924
992
|
Geometry.add_member(:polygon, Shapes::ShapeRef.new(shape: Polygon, location_name: "Polygon"))
|
925
993
|
Geometry.struct_class = Types::Geometry
|
@@ -1089,6 +1157,7 @@ module Aws::Rekognition
|
|
1089
1157
|
|
1090
1158
|
Instance.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
|
1091
1159
|
Instance.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
1160
|
+
Instance.add_member(:dominant_colors, Shapes::ShapeRef.new(shape: DominantColors, location_name: "DominantColors"))
|
1092
1161
|
Instance.struct_class = Types::Instance
|
1093
1162
|
|
1094
1163
|
Instances.member = Shapes::ShapeRef.new(shape: Instance)
|
@@ -1122,8 +1191,20 @@ module Aws::Rekognition
|
|
1122
1191
|
Label.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
1123
1192
|
Label.add_member(:instances, Shapes::ShapeRef.new(shape: Instances, location_name: "Instances"))
|
1124
1193
|
Label.add_member(:parents, Shapes::ShapeRef.new(shape: Parents, location_name: "Parents"))
|
1194
|
+
Label.add_member(:aliases, Shapes::ShapeRef.new(shape: LabelAliases, location_name: "Aliases"))
|
1195
|
+
Label.add_member(:categories, Shapes::ShapeRef.new(shape: LabelCategories, location_name: "Categories"))
|
1125
1196
|
Label.struct_class = Types::Label
|
1126
1197
|
|
1198
|
+
LabelAlias.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
1199
|
+
LabelAlias.struct_class = Types::LabelAlias
|
1200
|
+
|
1201
|
+
LabelAliases.member = Shapes::ShapeRef.new(shape: LabelAlias)
|
1202
|
+
|
1203
|
+
LabelCategories.member = Shapes::ShapeRef.new(shape: LabelCategory)
|
1204
|
+
|
1205
|
+
LabelCategory.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
1206
|
+
LabelCategory.struct_class = Types::LabelCategory
|
1207
|
+
|
1127
1208
|
LabelDetection.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
|
1128
1209
|
LabelDetection.add_member(:label, Shapes::ShapeRef.new(shape: Label, location_name: "Label"))
|
1129
1210
|
LabelDetection.struct_class = Types::LabelDetection
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Rekognition
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|