aws-sdk-rekognition 1.71.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rekognition/client.rb +168 -37
- data/lib/aws-sdk-rekognition/client_api.rb +81 -0
- data/lib/aws-sdk-rekognition/endpoint_provider.rb +7 -7
- data/lib/aws-sdk-rekognition/types.rb +354 -16
- data/lib/aws-sdk-rekognition.rb +1 -1
- metadata +2 -2
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,11 @@
|
|
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
|
+
|
4
9
|
1.71.0 (2022-10-25)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.72.0
|
@@ -2177,23 +2177,85 @@ module Aws::Rekognition
|
|
2177
2177
|
# For an example, see Analyzing images stored in an Amazon S3 bucket in
|
2178
2178
|
# the Amazon Rekognition Developer Guide.
|
2179
2179
|
#
|
2180
|
-
# <note markdown="1"> `DetectLabels` does not support the detection of activities. However,
|
2181
|
-
# activity detection is supported for label detection in videos. For
|
2182
|
-
# more information, see StartLabelDetection in the Amazon Rekognition
|
2183
|
-
# Developer Guide.
|
2184
|
-
#
|
2185
|
-
# </note>
|
2186
|
-
#
|
2187
2180
|
# You pass the input image as base64-encoded image bytes or as a
|
2188
2181
|
# reference to an image in an Amazon S3 bucket. If you use the AWS CLI
|
2189
2182
|
# to call Amazon Rekognition operations, passing image bytes is not
|
2190
2183
|
# supported. The image must be either a PNG or JPEG formatted file.
|
2191
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
|
+
#
|
2192
2208
|
# For each object, scene, and concept the API returns one or more
|
2193
|
-
# labels.
|
2194
|
-
#
|
2195
|
-
#
|
2196
|
-
#
|
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:
|
2197
2259
|
#
|
2198
2260
|
# `\{Name: lighthouse, Confidence: 98.4629\}`
|
2199
2261
|
#
|
@@ -2201,11 +2263,9 @@ module Aws::Rekognition
|
|
2201
2263
|
#
|
2202
2264
|
# ` \{Name: sea,Confidence: 75.061\}`
|
2203
2265
|
#
|
2204
|
-
#
|
2205
|
-
# the
|
2206
|
-
# the
|
2207
|
-
# flower (for example, a tulip), the operation might return the
|
2208
|
-
# 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.
|
2209
2269
|
#
|
2210
2270
|
# `\{Name: flower,Confidence: 99.0562\}`
|
2211
2271
|
#
|
@@ -2216,36 +2276,21 @@ module Aws::Rekognition
|
|
2216
2276
|
# In this example, the detection algorithm more precisely identifies the
|
2217
2277
|
# flower as a tulip.
|
2218
2278
|
#
|
2219
|
-
# In response, the API returns an array of labels. In addition, the
|
2220
|
-
# response also includes the orientation correction. Optionally, you can
|
2221
|
-
# specify `MinConfidence` to control the confidence threshold for the
|
2222
|
-
# labels returned. The default is 55%. You can also add the `MaxLabels`
|
2223
|
-
# parameter to limit the number of labels returned.
|
2224
|
-
#
|
2225
2279
|
# <note markdown="1"> If the object detected is a person, the operation doesn't provide the
|
2226
2280
|
# same facial details that the DetectFaces operation provides.
|
2227
2281
|
#
|
2228
2282
|
# </note>
|
2229
2283
|
#
|
2230
|
-
# `DetectLabels` returns bounding boxes for instances of common object
|
2231
|
-
# labels in an array of Instance objects. An `Instance` object contains
|
2232
|
-
# a BoundingBox object, for the location of the label on the image. It
|
2233
|
-
# also includes the confidence by which the bounding box was detected.
|
2234
|
-
#
|
2235
|
-
# `DetectLabels` also returns a hierarchical taxonomy of detected
|
2236
|
-
# labels. For example, a detected car might be assigned the label *car*.
|
2237
|
-
# The label *car* has two parent labels: *Vehicle* (its parent) and
|
2238
|
-
# *Transportation* (its grandparent). The response returns the entire
|
2239
|
-
# list of ancestors for a label. Each ancestor is a unique label in the
|
2240
|
-
# response. In the previous example, *Car*, *Vehicle*, and
|
2241
|
-
# *Transportation* are returned as unique labels in the response.
|
2242
|
-
#
|
2243
2284
|
# This is a stateless API operation. That is, the operation does not
|
2244
2285
|
# persist any data.
|
2245
2286
|
#
|
2246
2287
|
# This operation requires permissions to perform the
|
2247
2288
|
# `rekognition:DetectLabels` action.
|
2248
2289
|
#
|
2290
|
+
#
|
2291
|
+
#
|
2292
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/labels-detect-labels-image.html
|
2293
|
+
#
|
2249
2294
|
# @option params [required, Types::Image] :image
|
2250
2295
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
2251
2296
|
# the AWS CLI to call Amazon Rekognition operations, passing image bytes
|
@@ -2270,11 +2315,26 @@ module Aws::Rekognition
|
|
2270
2315
|
# If `MinConfidence` is not specified, the operation returns labels with
|
2271
2316
|
# a confidence values greater than or equal to 55 percent.
|
2272
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
|
+
#
|
2273
2332
|
# @return [Types::DetectLabelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2274
2333
|
#
|
2275
2334
|
# * {Types::DetectLabelsResponse#labels #labels} => Array<Types::Label>
|
2276
2335
|
# * {Types::DetectLabelsResponse#orientation_correction #orientation_correction} => String
|
2277
2336
|
# * {Types::DetectLabelsResponse#label_model_version #label_model_version} => String
|
2337
|
+
# * {Types::DetectLabelsResponse#image_properties #image_properties} => Types::DetectLabelsImageProperties
|
2278
2338
|
#
|
2279
2339
|
#
|
2280
2340
|
# @example Example: To detect labels
|
@@ -2319,6 +2379,18 @@ module Aws::Rekognition
|
|
2319
2379
|
# },
|
2320
2380
|
# max_labels: 1,
|
2321
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
|
+
# },
|
2322
2394
|
# })
|
2323
2395
|
#
|
2324
2396
|
# @example Response structure
|
@@ -2332,10 +2404,55 @@ module Aws::Rekognition
|
|
2332
2404
|
# resp.labels[0].instances[0].bounding_box.left #=> Float
|
2333
2405
|
# resp.labels[0].instances[0].bounding_box.top #=> Float
|
2334
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
|
2335
2415
|
# resp.labels[0].parents #=> Array
|
2336
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
|
2337
2421
|
# resp.orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
|
2338
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
|
2339
2456
|
#
|
2340
2457
|
# @overload detect_labels(params = {})
|
2341
2458
|
# @param [Hash] params ({})
|
@@ -3378,8 +3495,20 @@ module Aws::Rekognition
|
|
3378
3495
|
# resp.labels[0].label.instances[0].bounding_box.left #=> Float
|
3379
3496
|
# resp.labels[0].label.instances[0].bounding_box.top #=> Float
|
3380
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
|
3381
3506
|
# resp.labels[0].label.parents #=> Array
|
3382
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
|
3383
3512
|
# resp.label_model_version #=> String
|
3384
3513
|
#
|
3385
3514
|
# @overload get_label_detection(params = {})
|
@@ -5933,7 +6062,9 @@ module Aws::Rekognition
|
|
5933
6062
|
# @option params [Types::StreamProcessingStartSelector] :start_selector
|
5934
6063
|
# Specifies the starting point in the Kinesis stream to start
|
5935
6064
|
# processing. You can use the producer timestamp or the fragment number.
|
5936
|
-
#
|
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].
|
5937
6068
|
#
|
5938
6069
|
# This is a required parameter for label detection stream processors and
|
5939
6070
|
# should not be used to start a face search stream processor.
|
@@ -6338,7 +6469,7 @@ module Aws::Rekognition
|
|
6338
6469
|
params: params,
|
6339
6470
|
config: config)
|
6340
6471
|
context[:gem_name] = 'aws-sdk-rekognition'
|
6341
|
-
context[:gem_version] = '1.
|
6472
|
+
context[:gem_version] = '1.72.0'
|
6342
6473
|
Seahorse::Client::Request.new(handlers, context)
|
6343
6474
|
end
|
6344
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
|
@@ -91,17 +91,17 @@ ZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vcmVrb2duaXRpb24tZmlwcy5jYS1j
|
|
91
91
|
ZW50cmFsLTEuYW1hem9uYXdzLmNvbSIsInByb3BlcnRpZXMiOnt9LCJoZWFk
|
92
92
|
ZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9LHsiY29uZGl0aW9ucyI6W3si
|
93
93
|
Zm4iOiJzdHJpbmdFcXVhbHMiLCJhcmd2IjpbeyJyZWYiOiJSZWdpb24ifSwi
|
94
|
-
|
95
|
-
|
94
|
+
cmVrb2duaXRpb24udXMtZWFzdC0xIl19XSwiZW5kcG9pbnQiOnsidXJsIjoi
|
95
|
+
aHR0cHM6Ly9yZWtvZ25pdGlvbi1maXBzLnVzLWVhc3QtMS5hbWF6b25hd3Mu
|
96
96
|
Y29tIiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVu
|
97
97
|
ZHBvaW50In0seyJjb25kaXRpb25zIjpbeyJmbiI6InN0cmluZ0VxdWFscyIs
|
98
|
-
|
99
|
-
|
100
|
-
|
98
|
+
ImFyZ3YiOlt7InJlZiI6IlJlZ2lvbiJ9LCJyZWtvZ25pdGlvbi51cy1lYXN0
|
99
|
+
LTIiXX1dLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL3Jla29nbml0aW9u
|
100
|
+
LWZpcHMudXMtZWFzdC0yLmFtYXpvbmF3cy5jb20iLCJwcm9wZXJ0aWVzIjp7
|
101
101
|
fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifSx7ImNvbmRpdGlv
|
102
102
|
bnMiOlt7ImZuIjoic3RyaW5nRXF1YWxzIiwiYXJndiI6W3sicmVmIjoiUmVn
|
103
|
-
|
104
|
-
|
103
|
+
aW9uIn0sInJla29nbml0aW9uLnVzLXdlc3QtMSJdfV0sImVuZHBvaW50Ijp7
|
104
|
+
InVybCI6Imh0dHBzOi8vcmVrb2duaXRpb24tZmlwcy51cy13ZXN0LTEuYW1h
|
105
105
|
em9uYXdzLmNvbSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5
|
106
106
|
cGUiOiJlbmRwb2ludCJ9LHsiY29uZGl0aW9ucyI6W3siZm4iOiJzdHJpbmdF
|
107
107
|
cXVhbHMiLCJhcmd2IjpbeyJyZWYiOiJSZWdpb24ifSwicmVrb2duaXRpb24u
|
@@ -316,7 +316,9 @@ module Aws::Rekognition
|
|
316
316
|
#
|
317
317
|
# @!attribute [rw] timestamp
|
318
318
|
# The time, in milliseconds from the start of the video, that the
|
319
|
-
# celebrity was recognized.
|
319
|
+
# celebrity was recognized. Note that `Timestamp` is not guaranteed to
|
320
|
+
# be accurate to the individual frame where the celebrity first
|
321
|
+
# appears.
|
320
322
|
# @return [Integer]
|
321
323
|
#
|
322
324
|
# @!attribute [rw] celebrity
|
@@ -629,7 +631,9 @@ module Aws::Rekognition
|
|
629
631
|
#
|
630
632
|
# @!attribute [rw] timestamp
|
631
633
|
# Time, in milliseconds from the beginning of the video, that the
|
632
|
-
# content moderation label was detected.
|
634
|
+
# content moderation label was detected. Note that `Timestamp` is not
|
635
|
+
# guaranteed to be accurate to the individual frame where the
|
636
|
+
# moderated content first appears.
|
633
637
|
# @return [Integer]
|
634
638
|
#
|
635
639
|
# @!attribute [rw] moderation_label
|
@@ -2096,6 +2100,131 @@ module Aws::Rekognition
|
|
2096
2100
|
include Aws::Structure
|
2097
2101
|
end
|
2098
2102
|
|
2103
|
+
# The background of the image with regard to image quality and dominant
|
2104
|
+
# colors.
|
2105
|
+
#
|
2106
|
+
# @!attribute [rw] quality
|
2107
|
+
# The quality of the image background as defined by brightness and
|
2108
|
+
# sharpness.
|
2109
|
+
# @return [Types::DetectLabelsImageQuality]
|
2110
|
+
#
|
2111
|
+
# @!attribute [rw] dominant_colors
|
2112
|
+
# The dominant colors found in the background of an image, defined
|
2113
|
+
# with RGB values, CSS color name, simplified color name, and
|
2114
|
+
# PixelPercentage (the percentage of image pixels that have a
|
2115
|
+
# particular color).
|
2116
|
+
# @return [Array<Types::DominantColor>]
|
2117
|
+
#
|
2118
|
+
class DetectLabelsImageBackground < Struct.new(
|
2119
|
+
:quality,
|
2120
|
+
:dominant_colors)
|
2121
|
+
SENSITIVE = []
|
2122
|
+
include Aws::Structure
|
2123
|
+
end
|
2124
|
+
|
2125
|
+
# The foreground of the image with regard to image quality and dominant
|
2126
|
+
# colors.
|
2127
|
+
#
|
2128
|
+
# @!attribute [rw] quality
|
2129
|
+
# The quality of the image foreground as defined by brightness and
|
2130
|
+
# sharpness.
|
2131
|
+
# @return [Types::DetectLabelsImageQuality]
|
2132
|
+
#
|
2133
|
+
# @!attribute [rw] dominant_colors
|
2134
|
+
# The dominant colors found in the foreground of an image, defined
|
2135
|
+
# with RGB values, CSS color name, simplified color name, and
|
2136
|
+
# PixelPercentage (the percentage of image pixels that have a
|
2137
|
+
# particular color).
|
2138
|
+
# @return [Array<Types::DominantColor>]
|
2139
|
+
#
|
2140
|
+
class DetectLabelsImageForeground < Struct.new(
|
2141
|
+
:quality,
|
2142
|
+
:dominant_colors)
|
2143
|
+
SENSITIVE = []
|
2144
|
+
include Aws::Structure
|
2145
|
+
end
|
2146
|
+
|
2147
|
+
# Information about the quality and dominant colors of an input image.
|
2148
|
+
# Quality and color information is returned for the entire image,
|
2149
|
+
# foreground, and background.
|
2150
|
+
#
|
2151
|
+
# @!attribute [rw] quality
|
2152
|
+
# Information about the quality of the image foreground as defined by
|
2153
|
+
# brightness, sharpness, and contrast. The higher the value the
|
2154
|
+
# greater the brightness, sharpness, and contrast respectively.
|
2155
|
+
# @return [Types::DetectLabelsImageQuality]
|
2156
|
+
#
|
2157
|
+
# @!attribute [rw] dominant_colors
|
2158
|
+
# Information about the dominant colors found in an image, described
|
2159
|
+
# with RGB values, CSS color name, simplified color name, and
|
2160
|
+
# PixelPercentage (the percentage of image pixels that have a
|
2161
|
+
# particular color).
|
2162
|
+
# @return [Array<Types::DominantColor>]
|
2163
|
+
#
|
2164
|
+
# @!attribute [rw] foreground
|
2165
|
+
# Information about the properties of an image’s foreground, including
|
2166
|
+
# the foreground’s quality and dominant colors, including the quality
|
2167
|
+
# and dominant colors of the image.
|
2168
|
+
# @return [Types::DetectLabelsImageForeground]
|
2169
|
+
#
|
2170
|
+
# @!attribute [rw] background
|
2171
|
+
# Information about the properties of an image’s background, including
|
2172
|
+
# the background’s quality and dominant colors, including the quality
|
2173
|
+
# and dominant colors of the image.
|
2174
|
+
# @return [Types::DetectLabelsImageBackground]
|
2175
|
+
#
|
2176
|
+
class DetectLabelsImageProperties < Struct.new(
|
2177
|
+
:quality,
|
2178
|
+
:dominant_colors,
|
2179
|
+
:foreground,
|
2180
|
+
:background)
|
2181
|
+
SENSITIVE = []
|
2182
|
+
include Aws::Structure
|
2183
|
+
end
|
2184
|
+
|
2185
|
+
# Settings for the IMAGE\_PROPERTIES feature type.
|
2186
|
+
#
|
2187
|
+
# @note When making an API call, you may pass DetectLabelsImagePropertiesSettings
|
2188
|
+
# data as a hash:
|
2189
|
+
#
|
2190
|
+
# {
|
2191
|
+
# max_dominant_colors: 1,
|
2192
|
+
# }
|
2193
|
+
#
|
2194
|
+
# @!attribute [rw] max_dominant_colors
|
2195
|
+
# The maximum number of dominant colors to return when detecting
|
2196
|
+
# labels in an image. The default value is 10.
|
2197
|
+
# @return [Integer]
|
2198
|
+
#
|
2199
|
+
class DetectLabelsImagePropertiesSettings < Struct.new(
|
2200
|
+
:max_dominant_colors)
|
2201
|
+
SENSITIVE = []
|
2202
|
+
include Aws::Structure
|
2203
|
+
end
|
2204
|
+
|
2205
|
+
# The quality of an image provided for label detection, with regard to
|
2206
|
+
# brightness, sharpness, and contrast.
|
2207
|
+
#
|
2208
|
+
# @!attribute [rw] brightness
|
2209
|
+
# The brightness of an image provided for label detection.
|
2210
|
+
# @return [Float]
|
2211
|
+
#
|
2212
|
+
# @!attribute [rw] sharpness
|
2213
|
+
# The sharpness of an image provided for label detection.
|
2214
|
+
# @return [Float]
|
2215
|
+
#
|
2216
|
+
# @!attribute [rw] contrast
|
2217
|
+
# The contrast of an image provided for label detection.
|
2218
|
+
# @return [Float]
|
2219
|
+
#
|
2220
|
+
class DetectLabelsImageQuality < Struct.new(
|
2221
|
+
:brightness,
|
2222
|
+
:sharpness,
|
2223
|
+
:contrast)
|
2224
|
+
SENSITIVE = []
|
2225
|
+
include Aws::Structure
|
2226
|
+
end
|
2227
|
+
|
2099
2228
|
# @note When making an API call, you may pass DetectLabelsRequest
|
2100
2229
|
# data as a hash:
|
2101
2230
|
#
|
@@ -2110,6 +2239,18 @@ module Aws::Rekognition
|
|
2110
2239
|
# },
|
2111
2240
|
# max_labels: 1,
|
2112
2241
|
# min_confidence: 1.0,
|
2242
|
+
# features: ["GENERAL_LABELS"], # accepts GENERAL_LABELS, IMAGE_PROPERTIES
|
2243
|
+
# settings: {
|
2244
|
+
# general_labels: {
|
2245
|
+
# label_inclusion_filters: ["GeneralLabelsFilterValue"],
|
2246
|
+
# label_exclusion_filters: ["GeneralLabelsFilterValue"],
|
2247
|
+
# label_category_inclusion_filters: ["GeneralLabelsFilterValue"],
|
2248
|
+
# label_category_exclusion_filters: ["GeneralLabelsFilterValue"],
|
2249
|
+
# },
|
2250
|
+
# image_properties: {
|
2251
|
+
# max_dominant_colors: 1,
|
2252
|
+
# },
|
2253
|
+
# },
|
2113
2254
|
# }
|
2114
2255
|
#
|
2115
2256
|
# @!attribute [rw] image
|
@@ -2139,10 +2280,29 @@ module Aws::Rekognition
|
|
2139
2280
|
# with a confidence values greater than or equal to 55 percent.
|
2140
2281
|
# @return [Float]
|
2141
2282
|
#
|
2283
|
+
# @!attribute [rw] features
|
2284
|
+
# A list of the types of analysis to perform. Specifying
|
2285
|
+
# GENERAL\_LABELS uses the label detection feature, while specifying
|
2286
|
+
# IMAGE\_PROPERTIES returns information regarding image color and
|
2287
|
+
# quality. If no option is specified GENERAL\_LABELS is used by
|
2288
|
+
# default.
|
2289
|
+
# @return [Array<String>]
|
2290
|
+
#
|
2291
|
+
# @!attribute [rw] settings
|
2292
|
+
# A list of the filters to be applied to returned detected labels and
|
2293
|
+
# image properties. Specified filters can be inclusive, exclusive, or
|
2294
|
+
# a combination of both. Filters can be used for individual labels or
|
2295
|
+
# label categories. The exact label names or label categories must be
|
2296
|
+
# supplied. For a full list of labels and label categories, see LINK
|
2297
|
+
# HERE.
|
2298
|
+
# @return [Types::DetectLabelsSettings]
|
2299
|
+
#
|
2142
2300
|
class DetectLabelsRequest < Struct.new(
|
2143
2301
|
:image,
|
2144
2302
|
:max_labels,
|
2145
|
-
:min_confidence
|
2303
|
+
:min_confidence,
|
2304
|
+
:features,
|
2305
|
+
:settings)
|
2146
2306
|
SENSITIVE = []
|
2147
2307
|
include Aws::Structure
|
2148
2308
|
end
|
@@ -2173,10 +2333,52 @@ module Aws::Rekognition
|
|
2173
2333
|
# labels.
|
2174
2334
|
# @return [String]
|
2175
2335
|
#
|
2336
|
+
# @!attribute [rw] image_properties
|
2337
|
+
# Information about the properties of the input image, such as
|
2338
|
+
# brightness, sharpness, contrast, and dominant colors.
|
2339
|
+
# @return [Types::DetectLabelsImageProperties]
|
2340
|
+
#
|
2176
2341
|
class DetectLabelsResponse < Struct.new(
|
2177
2342
|
:labels,
|
2178
2343
|
:orientation_correction,
|
2179
|
-
:label_model_version
|
2344
|
+
:label_model_version,
|
2345
|
+
:image_properties)
|
2346
|
+
SENSITIVE = []
|
2347
|
+
include Aws::Structure
|
2348
|
+
end
|
2349
|
+
|
2350
|
+
# Settings for the DetectLabels request. Settings can include filters
|
2351
|
+
# for both GENERAL\_LABELS and IMAGE\_PROPERTIES. GENERAL\_LABELS
|
2352
|
+
# filters can be inclusive or exclusive and applied to individual labels
|
2353
|
+
# or label categories. IMAGE\_PROPERTIES filters allow specification of
|
2354
|
+
# a maximum number of dominant colors.
|
2355
|
+
#
|
2356
|
+
# @note When making an API call, you may pass DetectLabelsSettings
|
2357
|
+
# data as a hash:
|
2358
|
+
#
|
2359
|
+
# {
|
2360
|
+
# general_labels: {
|
2361
|
+
# label_inclusion_filters: ["GeneralLabelsFilterValue"],
|
2362
|
+
# label_exclusion_filters: ["GeneralLabelsFilterValue"],
|
2363
|
+
# label_category_inclusion_filters: ["GeneralLabelsFilterValue"],
|
2364
|
+
# label_category_exclusion_filters: ["GeneralLabelsFilterValue"],
|
2365
|
+
# },
|
2366
|
+
# image_properties: {
|
2367
|
+
# max_dominant_colors: 1,
|
2368
|
+
# },
|
2369
|
+
# }
|
2370
|
+
#
|
2371
|
+
# @!attribute [rw] general_labels
|
2372
|
+
# Contains the specified filters for GENERAL\_LABELS.
|
2373
|
+
# @return [Types::GeneralLabelsSettings]
|
2374
|
+
#
|
2375
|
+
# @!attribute [rw] image_properties
|
2376
|
+
# Contains the chosen number of maximum dominant colors in an image.
|
2377
|
+
# @return [Types::DetectLabelsImagePropertiesSettings]
|
2378
|
+
#
|
2379
|
+
class DetectLabelsSettings < Struct.new(
|
2380
|
+
:general_labels,
|
2381
|
+
:image_properties)
|
2180
2382
|
SENSITIVE = []
|
2181
2383
|
include Aws::Structure
|
2182
2384
|
end
|
@@ -2523,6 +2725,48 @@ module Aws::Rekognition
|
|
2523
2725
|
|
2524
2726
|
class DistributeDatasetEntriesResponse < Aws::EmptyStructure; end
|
2525
2727
|
|
2728
|
+
# A description of the dominant colors in an image.
|
2729
|
+
#
|
2730
|
+
# @!attribute [rw] red
|
2731
|
+
# The Red RGB value for a dominant color.
|
2732
|
+
# @return [Integer]
|
2733
|
+
#
|
2734
|
+
# @!attribute [rw] blue
|
2735
|
+
# The Blue RGB value for a dominant color.
|
2736
|
+
# @return [Integer]
|
2737
|
+
#
|
2738
|
+
# @!attribute [rw] green
|
2739
|
+
# The Green RGB value for a dominant color.
|
2740
|
+
# @return [Integer]
|
2741
|
+
#
|
2742
|
+
# @!attribute [rw] hex_code
|
2743
|
+
# The Hex code equivalent of the RGB values for a dominant color.
|
2744
|
+
# @return [String]
|
2745
|
+
#
|
2746
|
+
# @!attribute [rw] css_color
|
2747
|
+
# The CSS color name of a dominant color.
|
2748
|
+
# @return [String]
|
2749
|
+
#
|
2750
|
+
# @!attribute [rw] simplified_color
|
2751
|
+
# One of 12 simplified color names applied to a dominant color.
|
2752
|
+
# @return [String]
|
2753
|
+
#
|
2754
|
+
# @!attribute [rw] pixel_percent
|
2755
|
+
# The percentage of image pixels that have a given dominant color.
|
2756
|
+
# @return [Float]
|
2757
|
+
#
|
2758
|
+
class DominantColor < Struct.new(
|
2759
|
+
:red,
|
2760
|
+
:blue,
|
2761
|
+
:green,
|
2762
|
+
:hex_code,
|
2763
|
+
:css_color,
|
2764
|
+
:simplified_color,
|
2765
|
+
:pixel_percent)
|
2766
|
+
SENSITIVE = []
|
2767
|
+
include Aws::Structure
|
2768
|
+
end
|
2769
|
+
|
2526
2770
|
# The emotions that appear to be expressed on the face, and the
|
2527
2771
|
# confidence level in the determination. The API is only making a
|
2528
2772
|
# determination of the physical appearance of a person's face. It is
|
@@ -2799,7 +3043,8 @@ module Aws::Rekognition
|
|
2799
3043
|
#
|
2800
3044
|
# @!attribute [rw] timestamp
|
2801
3045
|
# Time, in milliseconds from the start of the video, that the face was
|
2802
|
-
# detected.
|
3046
|
+
# detected. Note that `Timestamp` is not guaranteed to be accurate to
|
3047
|
+
# the individual frame where the face first appears.
|
2803
3048
|
# @return [Integer]
|
2804
3049
|
#
|
2805
3050
|
# @!attribute [rw] face
|
@@ -2920,6 +3165,48 @@ module Aws::Rekognition
|
|
2920
3165
|
include Aws::Structure
|
2921
3166
|
end
|
2922
3167
|
|
3168
|
+
# Contains filters for the object labels returned by DetectLabels.
|
3169
|
+
# Filters can be inclusive, exclusive, or a combination of both and can
|
3170
|
+
# be applied to individual l abels or entire label categories.
|
3171
|
+
#
|
3172
|
+
# @note When making an API call, you may pass GeneralLabelsSettings
|
3173
|
+
# data as a hash:
|
3174
|
+
#
|
3175
|
+
# {
|
3176
|
+
# label_inclusion_filters: ["GeneralLabelsFilterValue"],
|
3177
|
+
# label_exclusion_filters: ["GeneralLabelsFilterValue"],
|
3178
|
+
# label_category_inclusion_filters: ["GeneralLabelsFilterValue"],
|
3179
|
+
# label_category_exclusion_filters: ["GeneralLabelsFilterValue"],
|
3180
|
+
# }
|
3181
|
+
#
|
3182
|
+
# @!attribute [rw] label_inclusion_filters
|
3183
|
+
# The labels that should be included in the return from DetectLabels.
|
3184
|
+
# @return [Array<String>]
|
3185
|
+
#
|
3186
|
+
# @!attribute [rw] label_exclusion_filters
|
3187
|
+
# The labels that should be excluded from the return from
|
3188
|
+
# DetectLabels.
|
3189
|
+
# @return [Array<String>]
|
3190
|
+
#
|
3191
|
+
# @!attribute [rw] label_category_inclusion_filters
|
3192
|
+
# The label categories that should be included in the return from
|
3193
|
+
# DetectLabels.
|
3194
|
+
# @return [Array<String>]
|
3195
|
+
#
|
3196
|
+
# @!attribute [rw] label_category_exclusion_filters
|
3197
|
+
# The label categories that should be excluded from the return from
|
3198
|
+
# DetectLabels.
|
3199
|
+
# @return [Array<String>]
|
3200
|
+
#
|
3201
|
+
class GeneralLabelsSettings < Struct.new(
|
3202
|
+
:label_inclusion_filters,
|
3203
|
+
:label_exclusion_filters,
|
3204
|
+
:label_category_inclusion_filters,
|
3205
|
+
:label_category_exclusion_filters)
|
3206
|
+
SENSITIVE = []
|
3207
|
+
include Aws::Structure
|
3208
|
+
end
|
3209
|
+
|
2923
3210
|
# Information about where an object (DetectCustomLabels) or text
|
2924
3211
|
# (DetectText) is located on an image.
|
2925
3212
|
#
|
@@ -4052,9 +4339,14 @@ module Aws::Rekognition
|
|
4052
4339
|
# bounding box.
|
4053
4340
|
# @return [Float]
|
4054
4341
|
#
|
4342
|
+
# @!attribute [rw] dominant_colors
|
4343
|
+
# The dominant colors found in an individual instance of a label.
|
4344
|
+
# @return [Array<Types::DominantColor>]
|
4345
|
+
#
|
4055
4346
|
class Instance < Struct.new(
|
4056
4347
|
:bounding_box,
|
4057
|
-
:confidence
|
4348
|
+
:confidence,
|
4349
|
+
:dominant_colors)
|
4058
4350
|
SENSITIVE = []
|
4059
4351
|
include Aws::Structure
|
4060
4352
|
end
|
@@ -4130,8 +4422,10 @@ module Aws::Rekognition
|
|
4130
4422
|
end
|
4131
4423
|
|
4132
4424
|
# Specifies the starting point in a Kinesis stream to start processing.
|
4133
|
-
# You can use the producer timestamp or the fragment number.
|
4134
|
-
#
|
4425
|
+
# You can use the producer timestamp or the fragment number. One of
|
4426
|
+
# either producer timestamp or fragment number is required. If you use
|
4427
|
+
# the producer timestamp, you must put the time in milliseconds. For
|
4428
|
+
# more information about fragment numbers, see [Fragment][1].
|
4135
4429
|
#
|
4136
4430
|
#
|
4137
4431
|
#
|
@@ -4146,7 +4440,8 @@ module Aws::Rekognition
|
|
4146
4440
|
# }
|
4147
4441
|
#
|
4148
4442
|
# @!attribute [rw] producer_timestamp
|
4149
|
-
# The timestamp from the producer corresponding to the fragment
|
4443
|
+
# The timestamp from the producer corresponding to the fragment, in
|
4444
|
+
# milliseconds, expressed in unix time format.
|
4150
4445
|
# @return [Integer]
|
4151
4446
|
#
|
4152
4447
|
# @!attribute [rw] fragment_number
|
@@ -4198,11 +4493,45 @@ module Aws::Rekognition
|
|
4198
4493
|
# labels.
|
4199
4494
|
# @return [Array<Types::Parent>]
|
4200
4495
|
#
|
4496
|
+
# @!attribute [rw] aliases
|
4497
|
+
# A list of potential aliases for a given label.
|
4498
|
+
# @return [Array<Types::LabelAlias>]
|
4499
|
+
#
|
4500
|
+
# @!attribute [rw] categories
|
4501
|
+
# A list of the categories associated with a given label.
|
4502
|
+
# @return [Array<Types::LabelCategory>]
|
4503
|
+
#
|
4201
4504
|
class Label < Struct.new(
|
4202
4505
|
:name,
|
4203
4506
|
:confidence,
|
4204
4507
|
:instances,
|
4205
|
-
:parents
|
4508
|
+
:parents,
|
4509
|
+
:aliases,
|
4510
|
+
:categories)
|
4511
|
+
SENSITIVE = []
|
4512
|
+
include Aws::Structure
|
4513
|
+
end
|
4514
|
+
|
4515
|
+
# A potential alias of for a given label.
|
4516
|
+
#
|
4517
|
+
# @!attribute [rw] name
|
4518
|
+
# The name of an alias for a given label.
|
4519
|
+
# @return [String]
|
4520
|
+
#
|
4521
|
+
class LabelAlias < Struct.new(
|
4522
|
+
:name)
|
4523
|
+
SENSITIVE = []
|
4524
|
+
include Aws::Structure
|
4525
|
+
end
|
4526
|
+
|
4527
|
+
# The category that applies to a given label.
|
4528
|
+
#
|
4529
|
+
# @!attribute [rw] name
|
4530
|
+
# The name of a category that applies to a given label.
|
4531
|
+
# @return [String]
|
4532
|
+
#
|
4533
|
+
class LabelCategory < Struct.new(
|
4534
|
+
:name)
|
4206
4535
|
SENSITIVE = []
|
4207
4536
|
include Aws::Structure
|
4208
4537
|
end
|
@@ -4212,7 +4541,8 @@ module Aws::Rekognition
|
|
4212
4541
|
#
|
4213
4542
|
# @!attribute [rw] timestamp
|
4214
4543
|
# Time, in milliseconds from the start of the video, that the label
|
4215
|
-
# was detected.
|
4544
|
+
# was detected. Note that `Timestamp` is not guaranteed to be accurate
|
4545
|
+
# to the individual frame where the label first appears.
|
4216
4546
|
# @return [Integer]
|
4217
4547
|
#
|
4218
4548
|
# @!attribute [rw] label
|
@@ -4816,7 +5146,9 @@ module Aws::Rekognition
|
|
4816
5146
|
#
|
4817
5147
|
# @!attribute [rw] timestamp
|
4818
5148
|
# The time, in milliseconds from the start of the video, that the
|
4819
|
-
# person's path was tracked.
|
5149
|
+
# person's path was tracked. Note that `Timestamp` is not guaranteed
|
5150
|
+
# to be accurate to the individual frame where the person's path
|
5151
|
+
# first appears.
|
4820
5152
|
# @return [Integer]
|
4821
5153
|
#
|
4822
5154
|
# @!attribute [rw] person
|
@@ -6487,7 +6819,9 @@ module Aws::Rekognition
|
|
6487
6819
|
# @!attribute [rw] start_selector
|
6488
6820
|
# Specifies the starting point in the Kinesis stream to start
|
6489
6821
|
# processing. You can use the producer timestamp or the fragment
|
6490
|
-
# number.
|
6822
|
+
# number. If you use the producer timestamp, you must put the time in
|
6823
|
+
# milliseconds. For more information about fragment numbers, see
|
6824
|
+
# [Fragment][1].
|
6491
6825
|
#
|
6492
6826
|
# This is a required parameter for label detection stream processors
|
6493
6827
|
# and should not be used to start a face search stream processor.
|
@@ -6769,6 +7103,9 @@ module Aws::Rekognition
|
|
6769
7103
|
|
6770
7104
|
class StopStreamProcessorResponse < Aws::EmptyStructure; end
|
6771
7105
|
|
7106
|
+
# This is a required parameter for label detection stream processors and
|
7107
|
+
# should not be used to start a face search stream processor.
|
7108
|
+
#
|
6772
7109
|
# @note When making an API call, you may pass StreamProcessingStartSelector
|
6773
7110
|
# data as a hash:
|
6774
7111
|
#
|
@@ -6781,8 +7118,8 @@ module Aws::Rekognition
|
|
6781
7118
|
#
|
6782
7119
|
# @!attribute [rw] kvs_stream_start_selector
|
6783
7120
|
# Specifies the starting point in the stream to start processing. This
|
6784
|
-
# can be done with a timestamp or a fragment number in a
|
6785
|
-
# stream.
|
7121
|
+
# can be done with a producer timestamp or a fragment number in a
|
7122
|
+
# Kinesis stream.
|
6786
7123
|
# @return [Types::KinesisVideoStreamStartSelector]
|
6787
7124
|
#
|
6788
7125
|
class StreamProcessingStartSelector < Struct.new(
|
@@ -7235,7 +7572,8 @@ module Aws::Rekognition
|
|
7235
7572
|
#
|
7236
7573
|
# @!attribute [rw] timestamp
|
7237
7574
|
# The time, in milliseconds from the start of the video, that the text
|
7238
|
-
# was detected.
|
7575
|
+
# was detected. Note that `Timestamp` is not guaranteed to be accurate
|
7576
|
+
# to the individual frame where the text first appears.
|
7239
7577
|
# @return [Integer]
|
7240
7578
|
#
|
7241
7579
|
# @!attribute [rw] text_detection
|
data/lib/aws-sdk-rekognition.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rekognition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.72.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|