aws-sdk-rekognition 1.53.0 → 1.57.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rekognition/client.rb +168 -69
- data/lib/aws-sdk-rekognition/client_api.rb +22 -0
- data/lib/aws-sdk-rekognition/types.rb +238 -43
- data/lib/aws-sdk-rekognition.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac13b8d51255cea3c7c80dddb5b808469153dbb5ed233daaa46978f0b4221c83
|
4
|
+
data.tar.gz: 2229ceaf1ea37143e028785425671ac5342004ce0d479ee3f5407f5b172cf97f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f1c68ddf0755fc5d53f45b2e7c9f2a87e6cb6fdd484b9b57151074837cfddbec589c384d409cd1242e0163576cde6b093f68c39e1583cfd601b2e414117ca6
|
7
|
+
data.tar.gz: dffc2f712b5eb14d4fedbda64b082f449a4931d05657993c57bff0dbda23342f55e83b8941fd37c694f525047b357be73b041ff360430e7fddc79a71ba08f904
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.57.0 (2021-10-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.56.0 (2021-09-01)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.55.0 (2021-08-26)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release added new attributes to Rekognition RecognizeCelebities and GetCelebrityInfo API operations.
|
18
|
+
|
19
|
+
1.54.0 (2021-08-09)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release adds support for four new types of segments (opening credits, content segments, slates, and studio logos), improved accuracy for credits and shot detection and new filters to control black frame detection.
|
23
|
+
|
4
24
|
1.53.0 (2021-07-30)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.57.0
|
@@ -547,6 +547,11 @@ module Aws::Rekognition
|
|
547
547
|
# resp.face_matches[0].face.pose.pitch #=> Float
|
548
548
|
# resp.face_matches[0].face.quality.brightness #=> Float
|
549
549
|
# resp.face_matches[0].face.quality.sharpness #=> Float
|
550
|
+
# resp.face_matches[0].face.emotions #=> Array
|
551
|
+
# resp.face_matches[0].face.emotions[0].type #=> String, one of "HAPPY", "SAD", "ANGRY", "CONFUSED", "DISGUSTED", "SURPRISED", "CALM", "UNKNOWN", "FEAR"
|
552
|
+
# resp.face_matches[0].face.emotions[0].confidence #=> Float
|
553
|
+
# resp.face_matches[0].face.smile.value #=> Boolean
|
554
|
+
# resp.face_matches[0].face.smile.confidence #=> Float
|
550
555
|
# resp.unmatched_faces #=> Array
|
551
556
|
# resp.unmatched_faces[0].bounding_box.width #=> Float
|
552
557
|
# resp.unmatched_faces[0].bounding_box.height #=> Float
|
@@ -562,6 +567,11 @@ module Aws::Rekognition
|
|
562
567
|
# resp.unmatched_faces[0].pose.pitch #=> Float
|
563
568
|
# resp.unmatched_faces[0].quality.brightness #=> Float
|
564
569
|
# resp.unmatched_faces[0].quality.sharpness #=> Float
|
570
|
+
# resp.unmatched_faces[0].emotions #=> Array
|
571
|
+
# resp.unmatched_faces[0].emotions[0].type #=> String, one of "HAPPY", "SAD", "ANGRY", "CONFUSED", "DISGUSTED", "SURPRISED", "CALM", "UNKNOWN", "FEAR"
|
572
|
+
# resp.unmatched_faces[0].emotions[0].confidence #=> Float
|
573
|
+
# resp.unmatched_faces[0].smile.value #=> Boolean
|
574
|
+
# resp.unmatched_faces[0].smile.confidence #=> Float
|
565
575
|
# resp.source_image_orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
|
566
576
|
# resp.target_image_orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
|
567
577
|
#
|
@@ -699,7 +709,9 @@ module Aws::Rekognition
|
|
699
709
|
# A name for the version of the model. This value must be unique.
|
700
710
|
#
|
701
711
|
# @option params [required, Types::OutputConfig] :output_config
|
702
|
-
# The Amazon S3 location to store the results of training.
|
712
|
+
# The Amazon S3 bucket location to store the results of training. The S3
|
713
|
+
# bucket can be in any AWS account as long as the caller has
|
714
|
+
# `s3:PutObject` permissions on the S3 bucket.
|
703
715
|
#
|
704
716
|
# @option params [required, Types::TrainingData] :training_data
|
705
717
|
# The dataset to use for training.
|
@@ -713,11 +725,22 @@ module Aws::Rekognition
|
|
713
725
|
# @option params [String] :kms_key_id
|
714
726
|
# The identifier for your AWS Key Management Service (AWS KMS) customer
|
715
727
|
# master key (CMK). You can supply the Amazon Resource Name (ARN) of
|
716
|
-
# your CMK, the ID of your CMK,
|
717
|
-
# used to encrypt training and test images copied into the
|
718
|
-
# model training. Your source images are unaffected. The key
|
719
|
-
# used to encrypt training results and manifest files written to
|
720
|
-
# output Amazon S3 bucket (`OutputConfig`).
|
728
|
+
# your CMK, the ID of your CMK, an alias for your CMK, or an alias ARN.
|
729
|
+
# The key is used to encrypt training and test images copied into the
|
730
|
+
# service for model training. Your source images are unaffected. The key
|
731
|
+
# is also used to encrypt training results and manifest files written to
|
732
|
+
# the output Amazon S3 bucket (`OutputConfig`).
|
733
|
+
#
|
734
|
+
# If you choose to use your own CMK, you need the following permissions
|
735
|
+
# on the CMK.
|
736
|
+
#
|
737
|
+
# * kms:CreateGrant
|
738
|
+
#
|
739
|
+
# * kms:DescribeKey
|
740
|
+
#
|
741
|
+
# * kms:GenerateDataKey
|
742
|
+
#
|
743
|
+
# * kms:Decrypt
|
721
744
|
#
|
722
745
|
# If you don't specify a value for `KmsKeyId`, images copied into the
|
723
746
|
# service are encrypted using a key that AWS owns and manages.
|
@@ -1322,18 +1345,23 @@ module Aws::Rekognition
|
|
1322
1345
|
# object location information, if it exists, for the label on the image
|
1323
1346
|
# (`Geometry`).
|
1324
1347
|
#
|
1325
|
-
#
|
1326
|
-
#
|
1327
|
-
#
|
1328
|
-
#
|
1329
|
-
#
|
1330
|
-
#
|
1331
|
-
#
|
1332
|
-
#
|
1333
|
-
#
|
1334
|
-
#
|
1335
|
-
#
|
1336
|
-
#
|
1348
|
+
# To filter labels that are returned, specify a value for
|
1349
|
+
# `MinConfidence`. `DetectCustomLabelsLabels` only returns labels with a
|
1350
|
+
# confidence that's higher than the specified value. The value of
|
1351
|
+
# `MinConfidence` maps to the assumed threshold values created during
|
1352
|
+
# training. For more information, see *Assumed threshold* in the Amazon
|
1353
|
+
# Rekognition Custom Labels Developer Guide. Amazon Rekognition Custom
|
1354
|
+
# Labels metrics expresses an assumed threshold as a floating point
|
1355
|
+
# value between 0-1. The range of `MinConfidence` normalizes the
|
1356
|
+
# threshold value to a percentage value (0-100). Confidence responses
|
1357
|
+
# from `DetectCustomLabels` are also returned as a percentage. You can
|
1358
|
+
# use `MinConfidence` to change the precision and recall or your model.
|
1359
|
+
# For more information, see *Analyzing an image* in the Amazon
|
1360
|
+
# Rekognition Custom Labels Developer Guide.
|
1361
|
+
#
|
1362
|
+
# If you don't specify a value for `MinConfidence`,
|
1363
|
+
# `DetectCustomLabels` returns labels based on the assumed threshold of
|
1364
|
+
# each label.
|
1337
1365
|
#
|
1338
1366
|
# This is a stateless API operation. That is, the operation does not
|
1339
1367
|
# persist any data.
|
@@ -1341,6 +1369,9 @@ module Aws::Rekognition
|
|
1341
1369
|
# This operation requires permissions to perform the
|
1342
1370
|
# `rekognition:DetectCustomLabels` action.
|
1343
1371
|
#
|
1372
|
+
# For more information, see *Analyzing an image* in the Amazon
|
1373
|
+
# Rekognition Custom Labels Developer Guide.
|
1374
|
+
#
|
1344
1375
|
# @option params [required, String] :project_version_arn
|
1345
1376
|
# The ARN of the model version that you want to use.
|
1346
1377
|
#
|
@@ -1380,10 +1411,12 @@ module Aws::Rekognition
|
|
1380
1411
|
#
|
1381
1412
|
# @option params [Float] :min_confidence
|
1382
1413
|
# Specifies the minimum confidence level for the labels to return.
|
1383
|
-
#
|
1384
|
-
# than this specified value. If you specify a value
|
1385
|
-
#
|
1386
|
-
#
|
1414
|
+
# `DetectCustomLabels` doesn't return any labels with a confidence
|
1415
|
+
# value that's lower than this specified value. If you specify a value
|
1416
|
+
# of 0, `DetectCustomLabels` returns all labels, regardless of the
|
1417
|
+
# assumed threshold applied to each label. If you don't specify a value
|
1418
|
+
# for `MinConfidence`, `DetectCustomLabels` returns labels based on the
|
1419
|
+
# assumed threshold of each label.
|
1387
1420
|
#
|
1388
1421
|
# @return [Types::DetectCustomLabelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1389
1422
|
#
|
@@ -1990,7 +2023,7 @@ module Aws::Rekognition
|
|
1990
2023
|
# the image.
|
1991
2024
|
#
|
1992
2025
|
# A word is one or more ISO basic latin script characters that are not
|
1993
|
-
# separated by spaces. `DetectText` can detect up to
|
2026
|
+
# separated by spaces. `DetectText` can detect up to 100 words in an
|
1994
2027
|
# image.
|
1995
2028
|
#
|
1996
2029
|
# A line is a string of equally spaced words. A line isn't necessarily
|
@@ -2086,9 +2119,9 @@ module Aws::Rekognition
|
|
2086
2119
|
end
|
2087
2120
|
|
2088
2121
|
# Gets the name and additional information about a celebrity based on
|
2089
|
-
#
|
2090
|
-
#
|
2091
|
-
#
|
2122
|
+
# their Amazon Rekognition ID. The additional information is returned as
|
2123
|
+
# an array of URLs. If there is no additional information about the
|
2124
|
+
# celebrity, this list is empty.
|
2092
2125
|
#
|
2093
2126
|
# For more information, see Recognizing Celebrities in an Image in the
|
2094
2127
|
# Amazon Rekognition Developer Guide.
|
@@ -2105,6 +2138,7 @@ module Aws::Rekognition
|
|
2105
2138
|
#
|
2106
2139
|
# * {Types::GetCelebrityInfoResponse#urls #urls} => Array<String>
|
2107
2140
|
# * {Types::GetCelebrityInfoResponse#name #name} => String
|
2141
|
+
# * {Types::GetCelebrityInfoResponse#known_gender #known_gender} => Types::KnownGender
|
2108
2142
|
#
|
2109
2143
|
# @example Request syntax with placeholder values
|
2110
2144
|
#
|
@@ -2117,6 +2151,7 @@ module Aws::Rekognition
|
|
2117
2151
|
# resp.urls #=> Array
|
2118
2152
|
# resp.urls[0] #=> String
|
2119
2153
|
# resp.name #=> String
|
2154
|
+
# resp.known_gender.type #=> String, one of "Male", "Female"
|
2120
2155
|
#
|
2121
2156
|
# @overload get_celebrity_info(params = {})
|
2122
2157
|
# @param [Hash] params ({})
|
@@ -2225,6 +2260,7 @@ module Aws::Rekognition
|
|
2225
2260
|
# resp.video_metadata.frame_rate #=> Float
|
2226
2261
|
# resp.video_metadata.frame_height #=> Integer
|
2227
2262
|
# resp.video_metadata.frame_width #=> Integer
|
2263
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2228
2264
|
# resp.next_token #=> String
|
2229
2265
|
# resp.celebrities #=> Array
|
2230
2266
|
# resp.celebrities[0].timestamp #=> Integer
|
@@ -2280,26 +2316,29 @@ module Aws::Rekognition
|
|
2280
2316
|
req.send_request(options)
|
2281
2317
|
end
|
2282
2318
|
|
2283
|
-
# Gets the
|
2284
|
-
# Video analysis started by
|
2285
|
-
#
|
2286
|
-
#
|
2287
|
-
#
|
2288
|
-
#
|
2289
|
-
#
|
2290
|
-
#
|
2291
|
-
# `
|
2292
|
-
#
|
2293
|
-
#
|
2294
|
-
# the
|
2295
|
-
# `
|
2319
|
+
# Gets the inappropriate, unwanted, or offensive content analysis
|
2320
|
+
# results for a Amazon Rekognition Video analysis started by
|
2321
|
+
# StartContentModeration. For a list of moderation labels in Amazon
|
2322
|
+
# Rekognition, see [Using the image and video moderation APIs][1].
|
2323
|
+
#
|
2324
|
+
# Amazon Rekognition Video inappropriate or offensive content detection
|
2325
|
+
# in a stored video is an asynchronous operation. You start analysis by
|
2326
|
+
# calling StartContentModeration which returns a job identifier
|
2327
|
+
# (`JobId`). When analysis finishes, Amazon Rekognition Video publishes
|
2328
|
+
# a completion status to the Amazon Simple Notification Service topic
|
2329
|
+
# registered in the initial call to `StartContentModeration`. To get the
|
2330
|
+
# results of the content analysis, first check that the status value
|
2331
|
+
# published to the Amazon SNS topic is `SUCCEEDED`. If so, call
|
2332
|
+
# `GetContentModeration` and pass the job identifier (`JobId`) from the
|
2333
|
+
# initial call to `StartContentModeration`.
|
2296
2334
|
#
|
2297
2335
|
# For more information, see Working with Stored Videos in the Amazon
|
2298
2336
|
# Rekognition Devlopers Guide.
|
2299
2337
|
#
|
2300
|
-
# `GetContentModeration` returns detected
|
2301
|
-
#
|
2302
|
-
# ContentModerationDetection
|
2338
|
+
# `GetContentModeration` returns detected inappropriate, unwanted, or
|
2339
|
+
# offensive content moderation labels, and the time they are detected,
|
2340
|
+
# in an array, `ModerationLabels`, of ContentModerationDetection
|
2341
|
+
# objects.
|
2303
2342
|
#
|
2304
2343
|
# By default, the moderated labels are returned sorted by time, in
|
2305
2344
|
# milliseconds from the start of the video. You can also sort them by
|
@@ -2314,12 +2353,17 @@ module Aws::Rekognition
|
|
2314
2353
|
# and populate the `NextToken` request parameter with the value of
|
2315
2354
|
# `NextToken` returned from the previous call to `GetContentModeration`.
|
2316
2355
|
#
|
2317
|
-
# For more information, see
|
2318
|
-
#
|
2356
|
+
# For more information, see Content moderation in the Amazon Rekognition
|
2357
|
+
# Developer Guide.
|
2358
|
+
#
|
2359
|
+
#
|
2360
|
+
#
|
2361
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html#moderation-api
|
2319
2362
|
#
|
2320
2363
|
# @option params [required, String] :job_id
|
2321
|
-
# The identifier for the
|
2322
|
-
# job in a subsequent call
|
2364
|
+
# The identifier for the inappropriate, unwanted, or offensive content
|
2365
|
+
# moderation job. Use `JobId` to identify the job in a subsequent call
|
2366
|
+
# to `GetContentModeration`.
|
2323
2367
|
#
|
2324
2368
|
# @option params [Integer] :max_results
|
2325
2369
|
# Maximum number of results to return per paginated call. The largest
|
@@ -2331,7 +2375,7 @@ module Aws::Rekognition
|
|
2331
2375
|
# If the previous response was incomplete (because there is more data to
|
2332
2376
|
# retrieve), Amazon Rekognition returns a pagination token in the
|
2333
2377
|
# response. You can use this pagination token to retrieve the next set
|
2334
|
-
# of
|
2378
|
+
# of content moderation labels.
|
2335
2379
|
#
|
2336
2380
|
# @option params [String] :sort_by
|
2337
2381
|
# Sort to use for elements in the `ModerationLabelDetections` array. Use
|
@@ -2370,6 +2414,7 @@ module Aws::Rekognition
|
|
2370
2414
|
# resp.video_metadata.frame_rate #=> Float
|
2371
2415
|
# resp.video_metadata.frame_height #=> Integer
|
2372
2416
|
# resp.video_metadata.frame_width #=> Integer
|
2417
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2373
2418
|
# resp.moderation_labels #=> Array
|
2374
2419
|
# resp.moderation_labels[0].timestamp #=> Integer
|
2375
2420
|
# resp.moderation_labels[0].moderation_label.confidence #=> Float
|
@@ -2453,6 +2498,7 @@ module Aws::Rekognition
|
|
2453
2498
|
# resp.video_metadata.frame_rate #=> Float
|
2454
2499
|
# resp.video_metadata.frame_height #=> Integer
|
2455
2500
|
# resp.video_metadata.frame_width #=> Integer
|
2501
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2456
2502
|
# resp.next_token #=> String
|
2457
2503
|
# resp.faces #=> Array
|
2458
2504
|
# resp.faces[0].timestamp #=> Integer
|
@@ -2586,6 +2632,7 @@ module Aws::Rekognition
|
|
2586
2632
|
# resp.video_metadata.frame_rate #=> Float
|
2587
2633
|
# resp.video_metadata.frame_height #=> Integer
|
2588
2634
|
# resp.video_metadata.frame_width #=> Integer
|
2635
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2589
2636
|
# resp.persons #=> Array
|
2590
2637
|
# resp.persons[0].timestamp #=> Integer
|
2591
2638
|
# resp.persons[0].person.index #=> Integer
|
@@ -2733,6 +2780,7 @@ module Aws::Rekognition
|
|
2733
2780
|
# resp.video_metadata.frame_rate #=> Float
|
2734
2781
|
# resp.video_metadata.frame_height #=> Integer
|
2735
2782
|
# resp.video_metadata.frame_width #=> Integer
|
2783
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2736
2784
|
# resp.next_token #=> String
|
2737
2785
|
# resp.labels #=> Array
|
2738
2786
|
# resp.labels[0].timestamp #=> Integer
|
@@ -2846,6 +2894,7 @@ module Aws::Rekognition
|
|
2846
2894
|
# resp.video_metadata.frame_rate #=> Float
|
2847
2895
|
# resp.video_metadata.frame_height #=> Integer
|
2848
2896
|
# resp.video_metadata.frame_width #=> Integer
|
2897
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2849
2898
|
# resp.next_token #=> String
|
2850
2899
|
# resp.persons #=> Array
|
2851
2900
|
# resp.persons[0].timestamp #=> Integer
|
@@ -2978,6 +3027,7 @@ module Aws::Rekognition
|
|
2978
3027
|
# resp.video_metadata[0].frame_rate #=> Float
|
2979
3028
|
# resp.video_metadata[0].frame_height #=> Integer
|
2980
3029
|
# resp.video_metadata[0].frame_width #=> Integer
|
3030
|
+
# resp.video_metadata[0].color_range #=> String, one of "FULL", "LIMITED"
|
2981
3031
|
# resp.audio_metadata #=> Array
|
2982
3032
|
# resp.audio_metadata[0].codec #=> String
|
2983
3033
|
# resp.audio_metadata[0].duration_millis #=> Integer
|
@@ -2992,10 +3042,13 @@ module Aws::Rekognition
|
|
2992
3042
|
# resp.segments[0].start_timecode_smpte #=> String
|
2993
3043
|
# resp.segments[0].end_timecode_smpte #=> String
|
2994
3044
|
# resp.segments[0].duration_smpte #=> String
|
2995
|
-
# resp.segments[0].technical_cue_segment.type #=> String, one of "ColorBars", "EndCredits", "BlackFrames"
|
3045
|
+
# resp.segments[0].technical_cue_segment.type #=> String, one of "ColorBars", "EndCredits", "BlackFrames", "OpeningCredits", "StudioLogo", "Slate", "Content"
|
2996
3046
|
# resp.segments[0].technical_cue_segment.confidence #=> Float
|
2997
3047
|
# resp.segments[0].shot_segment.index #=> Integer
|
2998
3048
|
# resp.segments[0].shot_segment.confidence #=> Float
|
3049
|
+
# resp.segments[0].start_frame_number #=> Integer
|
3050
|
+
# resp.segments[0].end_frame_number #=> Integer
|
3051
|
+
# resp.segments[0].duration_frames #=> Integer
|
2999
3052
|
# resp.selected_segment_types #=> Array
|
3000
3053
|
# resp.selected_segment_types[0].type #=> String, one of "TECHNICAL_CUE", "SHOT"
|
3001
3054
|
# resp.selected_segment_types[0].model_version #=> String
|
@@ -3082,6 +3135,7 @@ module Aws::Rekognition
|
|
3082
3135
|
# resp.video_metadata.frame_rate #=> Float
|
3083
3136
|
# resp.video_metadata.frame_height #=> Integer
|
3084
3137
|
# resp.video_metadata.frame_width #=> Integer
|
3138
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
3085
3139
|
# resp.text_detections #=> Array
|
3086
3140
|
# resp.text_detections[0].timestamp #=> Integer
|
3087
3141
|
# resp.text_detections[0].text_detection.detected_text #=> String
|
@@ -3950,7 +4004,13 @@ module Aws::Rekognition
|
|
3950
4004
|
# resp.celebrity_faces[0].face.pose.pitch #=> Float
|
3951
4005
|
# resp.celebrity_faces[0].face.quality.brightness #=> Float
|
3952
4006
|
# resp.celebrity_faces[0].face.quality.sharpness #=> Float
|
4007
|
+
# resp.celebrity_faces[0].face.emotions #=> Array
|
4008
|
+
# resp.celebrity_faces[0].face.emotions[0].type #=> String, one of "HAPPY", "SAD", "ANGRY", "CONFUSED", "DISGUSTED", "SURPRISED", "CALM", "UNKNOWN", "FEAR"
|
4009
|
+
# resp.celebrity_faces[0].face.emotions[0].confidence #=> Float
|
4010
|
+
# resp.celebrity_faces[0].face.smile.value #=> Boolean
|
4011
|
+
# resp.celebrity_faces[0].face.smile.confidence #=> Float
|
3953
4012
|
# resp.celebrity_faces[0].match_confidence #=> Float
|
4013
|
+
# resp.celebrity_faces[0].known_gender.type #=> String, one of "Male", "Female"
|
3954
4014
|
# resp.unrecognized_faces #=> Array
|
3955
4015
|
# resp.unrecognized_faces[0].bounding_box.width #=> Float
|
3956
4016
|
# resp.unrecognized_faces[0].bounding_box.height #=> Float
|
@@ -3966,6 +4026,11 @@ module Aws::Rekognition
|
|
3966
4026
|
# resp.unrecognized_faces[0].pose.pitch #=> Float
|
3967
4027
|
# resp.unrecognized_faces[0].quality.brightness #=> Float
|
3968
4028
|
# resp.unrecognized_faces[0].quality.sharpness #=> Float
|
4029
|
+
# resp.unrecognized_faces[0].emotions #=> Array
|
4030
|
+
# resp.unrecognized_faces[0].emotions[0].type #=> String, one of "HAPPY", "SAD", "ANGRY", "CONFUSED", "DISGUSTED", "SURPRISED", "CALM", "UNKNOWN", "FEAR"
|
4031
|
+
# resp.unrecognized_faces[0].emotions[0].confidence #=> Float
|
4032
|
+
# resp.unrecognized_faces[0].smile.value #=> Boolean
|
4033
|
+
# resp.unrecognized_faces[0].smile.confidence #=> Float
|
3969
4034
|
# resp.orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
|
3970
4035
|
#
|
3971
4036
|
# @overload recognize_celebrities(params = {})
|
@@ -4325,7 +4390,9 @@ module Aws::Rekognition
|
|
4325
4390
|
# @option params [Types::NotificationChannel] :notification_channel
|
4326
4391
|
# The Amazon SNS topic ARN that you want Amazon Rekognition Video to
|
4327
4392
|
# publish the completion status of the celebrity recognition analysis
|
4328
|
-
# to.
|
4393
|
+
# to. The Amazon SNS topic must have a topic name that begins with
|
4394
|
+
# *AmazonRekognition* if you are using the AmazonRekognitionServiceRole
|
4395
|
+
# permissions policy.
|
4329
4396
|
#
|
4330
4397
|
# @option params [String] :job_tag
|
4331
4398
|
# An identifier you specify that's returned in the completion
|
@@ -4366,27 +4433,33 @@ module Aws::Rekognition
|
|
4366
4433
|
req.send_request(options)
|
4367
4434
|
end
|
4368
4435
|
|
4369
|
-
# Starts asynchronous detection of
|
4436
|
+
# Starts asynchronous detection of inappropriate, unwanted, or offensive
|
4437
|
+
# content in a stored video. For a list of moderation labels in Amazon
|
4438
|
+
# Rekognition, see [Using the image and video moderation APIs][1].
|
4370
4439
|
#
|
4371
4440
|
# Amazon Rekognition Video can moderate content in a video stored in an
|
4372
4441
|
# Amazon S3 bucket. Use Video to specify the bucket name and the
|
4373
4442
|
# filename of the video. `StartContentModeration` returns a job
|
4374
4443
|
# identifier (`JobId`) which you use to get the results of the analysis.
|
4375
|
-
# When
|
4376
|
-
#
|
4377
|
-
#
|
4444
|
+
# When content analysis is finished, Amazon Rekognition Video publishes
|
4445
|
+
# a completion status to the Amazon Simple Notification Service topic
|
4446
|
+
# that you specify in `NotificationChannel`.
|
4378
4447
|
#
|
4379
|
-
# To get the results of the
|
4380
|
-
#
|
4381
|
-
#
|
4382
|
-
#
|
4448
|
+
# To get the results of the content analysis, first check that the
|
4449
|
+
# status value published to the Amazon SNS topic is `SUCCEEDED`. If so,
|
4450
|
+
# call GetContentModeration and pass the job identifier (`JobId`) from
|
4451
|
+
# the initial call to `StartContentModeration`.
|
4452
|
+
#
|
4453
|
+
# For more information, see Content moderation in the Amazon Rekognition
|
4454
|
+
# Developer Guide.
|
4383
4455
|
#
|
4384
|
-
#
|
4385
|
-
#
|
4456
|
+
#
|
4457
|
+
#
|
4458
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html#moderation-api
|
4386
4459
|
#
|
4387
4460
|
# @option params [required, Types::Video] :video
|
4388
|
-
# The video in which you want to detect
|
4389
|
-
# be stored in an Amazon S3 bucket.
|
4461
|
+
# The video in which you want to detect inappropriate, unwanted, or
|
4462
|
+
# offensive content. The video must be stored in an Amazon S3 bucket.
|
4390
4463
|
#
|
4391
4464
|
# @option params [Float] :min_confidence
|
4392
4465
|
# Specifies the minimum confidence that Amazon Rekognition must have in
|
@@ -4406,7 +4479,10 @@ module Aws::Rekognition
|
|
4406
4479
|
#
|
4407
4480
|
# @option params [Types::NotificationChannel] :notification_channel
|
4408
4481
|
# The Amazon SNS topic ARN that you want Amazon Rekognition Video to
|
4409
|
-
# publish the completion status of the
|
4482
|
+
# publish the completion status of the content analysis to. The Amazon
|
4483
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
4484
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy
|
4485
|
+
# to access the topic.
|
4410
4486
|
#
|
4411
4487
|
# @option params [String] :job_tag
|
4412
4488
|
# An identifier you specify that's returned in the completion
|
@@ -4478,7 +4554,9 @@ module Aws::Rekognition
|
|
4478
4554
|
# @option params [Types::NotificationChannel] :notification_channel
|
4479
4555
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4480
4556
|
# Video to publish the completion status of the face detection
|
4481
|
-
# operation.
|
4557
|
+
# operation. The Amazon SNS topic must have a topic name that begins
|
4558
|
+
# with *AmazonRekognition* if you are using the
|
4559
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4482
4560
|
#
|
4483
4561
|
# @option params [String] :face_attributes
|
4484
4562
|
# The face attributes you want returned.
|
@@ -4563,7 +4641,10 @@ module Aws::Rekognition
|
|
4563
4641
|
#
|
4564
4642
|
# @option params [Types::NotificationChannel] :notification_channel
|
4565
4643
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4566
|
-
# Video to publish the completion status of the search.
|
4644
|
+
# Video to publish the completion status of the search. The Amazon SNS
|
4645
|
+
# topic must have a topic name that begins with *AmazonRekognition* if
|
4646
|
+
# you are using the AmazonRekognitionServiceRole permissions policy to
|
4647
|
+
# access the topic.
|
4567
4648
|
#
|
4568
4649
|
# @option params [String] :job_tag
|
4569
4650
|
# An identifier you specify that's returned in the completion
|
@@ -4649,7 +4730,9 @@ module Aws::Rekognition
|
|
4649
4730
|
#
|
4650
4731
|
# @option params [Types::NotificationChannel] :notification_channel
|
4651
4732
|
# The Amazon SNS topic ARN you want Amazon Rekognition Video to publish
|
4652
|
-
# the completion status of the label detection operation to.
|
4733
|
+
# the completion status of the label detection operation to. The Amazon
|
4734
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
4735
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy.
|
4653
4736
|
#
|
4654
4737
|
# @option params [String] :job_tag
|
4655
4738
|
# An identifier you specify that's returned in the completion
|
@@ -4719,7 +4802,9 @@ module Aws::Rekognition
|
|
4719
4802
|
#
|
4720
4803
|
# @option params [Types::NotificationChannel] :notification_channel
|
4721
4804
|
# The Amazon SNS topic ARN you want Amazon Rekognition Video to publish
|
4722
|
-
# the completion status of the people detection operation to.
|
4805
|
+
# the completion status of the people detection operation to. The Amazon
|
4806
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
4807
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy.
|
4723
4808
|
#
|
4724
4809
|
# @option params [String] :job_tag
|
4725
4810
|
# An identifier you specify that's returned in the completion
|
@@ -4848,7 +4933,9 @@ module Aws::Rekognition
|
|
4848
4933
|
# @option params [Types::NotificationChannel] :notification_channel
|
4849
4934
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4850
4935
|
# Video to publish the completion status of the segment detection
|
4851
|
-
# operation.
|
4936
|
+
# operation. Note that the Amazon SNS topic must have a topic name that
|
4937
|
+
# begins with *AmazonRekognition* if you are using the
|
4938
|
+
# AmazonRekognitionServiceRole permissions policy to access the topic.
|
4852
4939
|
#
|
4853
4940
|
# @option params [String] :job_tag
|
4854
4941
|
# An identifier you specify that's returned in the completion
|
@@ -4886,6 +4973,10 @@ module Aws::Rekognition
|
|
4886
4973
|
# filters: {
|
4887
4974
|
# technical_cue_filter: {
|
4888
4975
|
# min_segment_confidence: 1.0,
|
4976
|
+
# black_frame: {
|
4977
|
+
# max_pixel_threshold: 1.0,
|
4978
|
+
# min_coverage_percentage: 1.0,
|
4979
|
+
# },
|
4889
4980
|
# },
|
4890
4981
|
# shot_filter: {
|
4891
4982
|
# min_segment_confidence: 1.0,
|
@@ -4958,7 +5049,15 @@ module Aws::Rekognition
|
|
4958
5049
|
# @option params [Types::NotificationChannel] :notification_channel
|
4959
5050
|
# The Amazon Simple Notification Service topic to which Amazon
|
4960
5051
|
# Rekognition publishes the completion status of a video analysis
|
4961
|
-
# operation. For more information, see api-video.
|
5052
|
+
# operation. For more information, see api-video. Note that the Amazon
|
5053
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
5054
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy
|
5055
|
+
# to access the topic. For more information, see [Giving access to
|
5056
|
+
# multiple Amazon SNS topics][1].
|
5057
|
+
#
|
5058
|
+
#
|
5059
|
+
#
|
5060
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html#api-video-roles-all-topics
|
4962
5061
|
#
|
4963
5062
|
# @option params [String] :job_tag
|
4964
5063
|
# An identifier returned in the completion status published by your
|
@@ -5150,7 +5249,7 @@ module Aws::Rekognition
|
|
5150
5249
|
params: params,
|
5151
5250
|
config: config)
|
5152
5251
|
context[:gem_name] = 'aws-sdk-rekognition'
|
5153
|
-
context[:gem_version] = '1.
|
5252
|
+
context[:gem_version] = '1.57.0'
|
5154
5253
|
Seahorse::Client::Request.new(handlers, context)
|
5155
5254
|
end
|
5156
5255
|
|
@@ -22,6 +22,7 @@ module Aws::Rekognition
|
|
22
22
|
AudioMetadata = Shapes::StructureShape.new(name: 'AudioMetadata')
|
23
23
|
AudioMetadataList = Shapes::ListShape.new(name: 'AudioMetadataList')
|
24
24
|
Beard = Shapes::StructureShape.new(name: 'Beard')
|
25
|
+
BlackFrame = Shapes::StructureShape.new(name: 'BlackFrame')
|
25
26
|
BodyPart = Shapes::StringShape.new(name: 'BodyPart')
|
26
27
|
BodyParts = Shapes::ListShape.new(name: 'BodyParts')
|
27
28
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
@@ -177,6 +178,8 @@ module Aws::Rekognition
|
|
177
178
|
KinesisVideoArn = Shapes::StringShape.new(name: 'KinesisVideoArn')
|
178
179
|
KinesisVideoStream = Shapes::StructureShape.new(name: 'KinesisVideoStream')
|
179
180
|
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
181
|
+
KnownGender = Shapes::StructureShape.new(name: 'KnownGender')
|
182
|
+
KnownGenderType = Shapes::StringShape.new(name: 'KnownGenderType')
|
180
183
|
Label = Shapes::StructureShape.new(name: 'Label')
|
181
184
|
LabelDetection = Shapes::StructureShape.new(name: 'LabelDetection')
|
182
185
|
LabelDetectionSortBy = Shapes::StringShape.new(name: 'LabelDetectionSortBy')
|
@@ -196,7 +199,9 @@ module Aws::Rekognition
|
|
196
199
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
197
200
|
MaxFaces = Shapes::IntegerShape.new(name: 'MaxFaces')
|
198
201
|
MaxFacesToIndex = Shapes::IntegerShape.new(name: 'MaxFacesToIndex')
|
202
|
+
MaxPixelThreshold = Shapes::FloatShape.new(name: 'MaxPixelThreshold')
|
199
203
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
204
|
+
MinCoveragePercentage = Shapes::FloatShape.new(name: 'MinCoveragePercentage')
|
200
205
|
ModerationLabel = Shapes::StructureShape.new(name: 'ModerationLabel')
|
201
206
|
ModerationLabels = Shapes::ListShape.new(name: 'ModerationLabels')
|
202
207
|
MouthOpen = Shapes::StructureShape.new(name: 'MouthOpen')
|
@@ -345,6 +350,7 @@ module Aws::Rekognition
|
|
345
350
|
VersionName = Shapes::StringShape.new(name: 'VersionName')
|
346
351
|
VersionNames = Shapes::ListShape.new(name: 'VersionNames')
|
347
352
|
Video = Shapes::StructureShape.new(name: 'Video')
|
353
|
+
VideoColorRange = Shapes::StringShape.new(name: 'VideoColorRange')
|
348
354
|
VideoJobStatus = Shapes::StringShape.new(name: 'VideoJobStatus')
|
349
355
|
VideoMetadata = Shapes::StructureShape.new(name: 'VideoMetadata')
|
350
356
|
VideoMetadataList = Shapes::ListShape.new(name: 'VideoMetadataList')
|
@@ -375,6 +381,10 @@ module Aws::Rekognition
|
|
375
381
|
Beard.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
376
382
|
Beard.struct_class = Types::Beard
|
377
383
|
|
384
|
+
BlackFrame.add_member(:max_pixel_threshold, Shapes::ShapeRef.new(shape: MaxPixelThreshold, location_name: "MaxPixelThreshold"))
|
385
|
+
BlackFrame.add_member(:min_coverage_percentage, Shapes::ShapeRef.new(shape: MinCoveragePercentage, location_name: "MinCoveragePercentage"))
|
386
|
+
BlackFrame.struct_class = Types::BlackFrame
|
387
|
+
|
378
388
|
BodyParts.member = Shapes::ShapeRef.new(shape: ProtectiveEquipmentBodyPart)
|
379
389
|
|
380
390
|
BoundingBox.add_member(:width, Shapes::ShapeRef.new(shape: Float, location_name: "Width"))
|
@@ -388,6 +398,7 @@ module Aws::Rekognition
|
|
388
398
|
Celebrity.add_member(:id, Shapes::ShapeRef.new(shape: RekognitionUniqueId, location_name: "Id"))
|
389
399
|
Celebrity.add_member(:face, Shapes::ShapeRef.new(shape: ComparedFace, location_name: "Face"))
|
390
400
|
Celebrity.add_member(:match_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MatchConfidence"))
|
401
|
+
Celebrity.add_member(:known_gender, Shapes::ShapeRef.new(shape: KnownGender, location_name: "KnownGender"))
|
391
402
|
Celebrity.struct_class = Types::Celebrity
|
392
403
|
|
393
404
|
CelebrityDetail.add_member(:urls, Shapes::ShapeRef.new(shape: Urls, location_name: "Urls"))
|
@@ -434,6 +445,8 @@ module Aws::Rekognition
|
|
434
445
|
ComparedFace.add_member(:landmarks, Shapes::ShapeRef.new(shape: Landmarks, location_name: "Landmarks"))
|
435
446
|
ComparedFace.add_member(:pose, Shapes::ShapeRef.new(shape: Pose, location_name: "Pose"))
|
436
447
|
ComparedFace.add_member(:quality, Shapes::ShapeRef.new(shape: ImageQuality, location_name: "Quality"))
|
448
|
+
ComparedFace.add_member(:emotions, Shapes::ShapeRef.new(shape: Emotions, location_name: "Emotions"))
|
449
|
+
ComparedFace.add_member(:smile, Shapes::ShapeRef.new(shape: Smile, location_name: "Smile"))
|
437
450
|
ComparedFace.struct_class = Types::ComparedFace
|
438
451
|
|
439
452
|
ComparedFaceList.member = Shapes::ShapeRef.new(shape: ComparedFace)
|
@@ -727,6 +740,7 @@ module Aws::Rekognition
|
|
727
740
|
|
728
741
|
GetCelebrityInfoResponse.add_member(:urls, Shapes::ShapeRef.new(shape: Urls, location_name: "Urls"))
|
729
742
|
GetCelebrityInfoResponse.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
743
|
+
GetCelebrityInfoResponse.add_member(:known_gender, Shapes::ShapeRef.new(shape: KnownGender, location_name: "KnownGender"))
|
730
744
|
GetCelebrityInfoResponse.struct_class = Types::GetCelebrityInfoResponse
|
731
745
|
|
732
746
|
GetCelebrityRecognitionRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
|
@@ -906,6 +920,9 @@ module Aws::Rekognition
|
|
906
920
|
KinesisVideoStream.add_member(:arn, Shapes::ShapeRef.new(shape: KinesisVideoArn, location_name: "Arn"))
|
907
921
|
KinesisVideoStream.struct_class = Types::KinesisVideoStream
|
908
922
|
|
923
|
+
KnownGender.add_member(:type, Shapes::ShapeRef.new(shape: KnownGenderType, location_name: "Type"))
|
924
|
+
KnownGender.struct_class = Types::KnownGender
|
925
|
+
|
909
926
|
Label.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
910
927
|
Label.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
911
928
|
Label.add_member(:instances, Shapes::ShapeRef.new(shape: Instances, location_name: "Instances"))
|
@@ -1132,6 +1149,9 @@ module Aws::Rekognition
|
|
1132
1149
|
SegmentDetection.add_member(:duration_smpte, Shapes::ShapeRef.new(shape: Timecode, location_name: "DurationSMPTE"))
|
1133
1150
|
SegmentDetection.add_member(:technical_cue_segment, Shapes::ShapeRef.new(shape: TechnicalCueSegment, location_name: "TechnicalCueSegment"))
|
1134
1151
|
SegmentDetection.add_member(:shot_segment, Shapes::ShapeRef.new(shape: ShotSegment, location_name: "ShotSegment"))
|
1152
|
+
SegmentDetection.add_member(:start_frame_number, Shapes::ShapeRef.new(shape: ULong, location_name: "StartFrameNumber"))
|
1153
|
+
SegmentDetection.add_member(:end_frame_number, Shapes::ShapeRef.new(shape: ULong, location_name: "EndFrameNumber"))
|
1154
|
+
SegmentDetection.add_member(:duration_frames, Shapes::ShapeRef.new(shape: ULong, location_name: "DurationFrames"))
|
1135
1155
|
SegmentDetection.struct_class = Types::SegmentDetection
|
1136
1156
|
|
1137
1157
|
SegmentDetections.member = Shapes::ShapeRef.new(shape: SegmentDetection)
|
@@ -1244,6 +1264,7 @@ module Aws::Rekognition
|
|
1244
1264
|
StartStreamProcessorResponse.struct_class = Types::StartStreamProcessorResponse
|
1245
1265
|
|
1246
1266
|
StartTechnicalCueDetectionFilter.add_member(:min_segment_confidence, Shapes::ShapeRef.new(shape: SegmentConfidence, location_name: "MinSegmentConfidence"))
|
1267
|
+
StartTechnicalCueDetectionFilter.add_member(:black_frame, Shapes::ShapeRef.new(shape: BlackFrame, location_name: "BlackFrame"))
|
1247
1268
|
StartTechnicalCueDetectionFilter.struct_class = Types::StartTechnicalCueDetectionFilter
|
1248
1269
|
|
1249
1270
|
StartTextDetectionFilters.add_member(:word_filter, Shapes::ShapeRef.new(shape: DetectionFilter, location_name: "WordFilter"))
|
@@ -1371,6 +1392,7 @@ module Aws::Rekognition
|
|
1371
1392
|
VideoMetadata.add_member(:frame_rate, Shapes::ShapeRef.new(shape: Float, location_name: "FrameRate"))
|
1372
1393
|
VideoMetadata.add_member(:frame_height, Shapes::ShapeRef.new(shape: ULong, location_name: "FrameHeight"))
|
1373
1394
|
VideoMetadata.add_member(:frame_width, Shapes::ShapeRef.new(shape: ULong, location_name: "FrameWidth"))
|
1395
|
+
VideoMetadata.add_member(:color_range, Shapes::ShapeRef.new(shape: VideoColorRange, location_name: "ColorRange"))
|
1374
1396
|
VideoMetadata.struct_class = Types::VideoMetadata
|
1375
1397
|
|
1376
1398
|
VideoMetadataList.member = Shapes::ShapeRef.new(shape: VideoMetadata)
|
@@ -111,6 +111,55 @@ module Aws::Rekognition
|
|
111
111
|
include Aws::Structure
|
112
112
|
end
|
113
113
|
|
114
|
+
# A filter that allows you to control the black frame detection by
|
115
|
+
# specifying the black levels and pixel coverage of black pixels in a
|
116
|
+
# frame. As videos can come from multiple sources, formats, and time
|
117
|
+
# periods, they may contain different standards and varying noise levels
|
118
|
+
# for black frames that need to be accounted for. For more information,
|
119
|
+
# see StartSegmentDetection.
|
120
|
+
#
|
121
|
+
# @note When making an API call, you may pass BlackFrame
|
122
|
+
# data as a hash:
|
123
|
+
#
|
124
|
+
# {
|
125
|
+
# max_pixel_threshold: 1.0,
|
126
|
+
# min_coverage_percentage: 1.0,
|
127
|
+
# }
|
128
|
+
#
|
129
|
+
# @!attribute [rw] max_pixel_threshold
|
130
|
+
# A threshold used to determine the maximum luminance value for a
|
131
|
+
# pixel to be considered black. In a full color range video, luminance
|
132
|
+
# values range from 0-255. A pixel value of 0 is pure black, and the
|
133
|
+
# most strict filter. The maximum black pixel value is computed as
|
134
|
+
# follows: max\_black\_pixel\_value = minimum\_luminance +
|
135
|
+
# MaxPixelThreshold *luminance\_range.
|
136
|
+
#
|
137
|
+
# For example, for a full range video with BlackPixelThreshold = 0.1,
|
138
|
+
# max\_black\_pixel\_value is 0 + 0.1 * (255-0) = 25.5.
|
139
|
+
#
|
140
|
+
# The default value of MaxPixelThreshold is 0.2, which maps to a
|
141
|
+
# max\_black\_pixel\_value of 51 for a full range video. You can lower
|
142
|
+
# this threshold to be more strict on black levels.
|
143
|
+
# @return [Float]
|
144
|
+
#
|
145
|
+
# @!attribute [rw] min_coverage_percentage
|
146
|
+
# The minimum percentage of pixels in a frame that need to have a
|
147
|
+
# luminance below the max\_black\_pixel\_value for a frame to be
|
148
|
+
# considered a black frame. Luminance is calculated using the BT.709
|
149
|
+
# matrix.
|
150
|
+
#
|
151
|
+
# The default value is 99, which means at least 99% of all pixels in
|
152
|
+
# the frame are black pixels as per the `MaxPixelThreshold` set. You
|
153
|
+
# can reduce this value to allow more noise on the black frame.
|
154
|
+
# @return [Float]
|
155
|
+
#
|
156
|
+
class BlackFrame < Struct.new(
|
157
|
+
:max_pixel_threshold,
|
158
|
+
:min_coverage_percentage)
|
159
|
+
SENSITIVE = []
|
160
|
+
include Aws::Structure
|
161
|
+
end
|
162
|
+
|
114
163
|
# Identifies the bounding box around the label, face, text or personal
|
115
164
|
# protective equipment. The `left` (x-coordinate) and `top`
|
116
165
|
# (y-coordinate) are coordinates representing the top and left sides of
|
@@ -201,12 +250,18 @@ module Aws::Rekognition
|
|
201
250
|
# recognized face is the celebrity.
|
202
251
|
# @return [Float]
|
203
252
|
#
|
253
|
+
# @!attribute [rw] known_gender
|
254
|
+
# The known gender identity for the celebrity that matches the
|
255
|
+
# provided ID.
|
256
|
+
# @return [Types::KnownGender]
|
257
|
+
#
|
204
258
|
class Celebrity < Struct.new(
|
205
259
|
:urls,
|
206
260
|
:name,
|
207
261
|
:id,
|
208
262
|
:face,
|
209
|
-
:match_confidence
|
263
|
+
:match_confidence,
|
264
|
+
:known_gender)
|
210
265
|
SENSITIVE = []
|
211
266
|
include Aws::Structure
|
212
267
|
end
|
@@ -452,12 +507,26 @@ module Aws::Rekognition
|
|
452
507
|
# Identifies face image brightness and sharpness.
|
453
508
|
# @return [Types::ImageQuality]
|
454
509
|
#
|
510
|
+
# @!attribute [rw] emotions
|
511
|
+
# The emotions that appear to be expressed on the face, and the
|
512
|
+
# confidence level in the determination. Valid values include
|
513
|
+
# "Happy", "Sad", "Angry", "Confused", "Disgusted",
|
514
|
+
# "Surprised", "Calm", "Unknown", and "Fear".
|
515
|
+
# @return [Array<Types::Emotion>]
|
516
|
+
#
|
517
|
+
# @!attribute [rw] smile
|
518
|
+
# Indicates whether or not the face is smiling, and the confidence
|
519
|
+
# level in the determination.
|
520
|
+
# @return [Types::Smile]
|
521
|
+
#
|
455
522
|
class ComparedFace < Struct.new(
|
456
523
|
:bounding_box,
|
457
524
|
:confidence,
|
458
525
|
:landmarks,
|
459
526
|
:pose,
|
460
|
-
:quality
|
527
|
+
:quality,
|
528
|
+
:emotions,
|
529
|
+
:smile)
|
461
530
|
SENSITIVE = []
|
462
531
|
include Aws::Structure
|
463
532
|
end
|
@@ -483,15 +552,16 @@ module Aws::Rekognition
|
|
483
552
|
include Aws::Structure
|
484
553
|
end
|
485
554
|
|
486
|
-
# Information about an
|
555
|
+
# Information about an inappropriate, unwanted, or offensive content
|
556
|
+
# label detection in a stored video.
|
487
557
|
#
|
488
558
|
# @!attribute [rw] timestamp
|
489
559
|
# Time, in milliseconds from the beginning of the video, that the
|
490
|
-
#
|
560
|
+
# content moderation label was detected.
|
491
561
|
# @return [Integer]
|
492
562
|
#
|
493
563
|
# @!attribute [rw] moderation_label
|
494
|
-
# The
|
564
|
+
# The content moderation label detected by in the stored video.
|
495
565
|
# @return [Types::ModerationLabel]
|
496
566
|
#
|
497
567
|
class ContentModerationDetection < Struct.new(
|
@@ -649,7 +719,9 @@ module Aws::Rekognition
|
|
649
719
|
# @return [String]
|
650
720
|
#
|
651
721
|
# @!attribute [rw] output_config
|
652
|
-
# The Amazon S3 location to store the results of training.
|
722
|
+
# The Amazon S3 bucket location to store the results of training. The
|
723
|
+
# S3 bucket can be in any AWS account as long as the caller has
|
724
|
+
# `s3:PutObject` permissions on the S3 bucket.
|
653
725
|
# @return [Types::OutputConfig]
|
654
726
|
#
|
655
727
|
# @!attribute [rw] training_data
|
@@ -668,11 +740,23 @@ module Aws::Rekognition
|
|
668
740
|
# @!attribute [rw] kms_key_id
|
669
741
|
# The identifier for your AWS Key Management Service (AWS KMS)
|
670
742
|
# customer master key (CMK). You can supply the Amazon Resource Name
|
671
|
-
# (ARN) of your CMK, the ID of your CMK,
|
672
|
-
# key is used to encrypt training and test images
|
673
|
-
# service for model training. Your source images are
|
674
|
-
# key is also used to encrypt training results and
|
675
|
-
# written to the output Amazon S3 bucket
|
743
|
+
# (ARN) of your CMK, the ID of your CMK, an alias for your CMK, or an
|
744
|
+
# alias ARN. The key is used to encrypt training and test images
|
745
|
+
# copied into the service for model training. Your source images are
|
746
|
+
# unaffected. The key is also used to encrypt training results and
|
747
|
+
# manifest files written to the output Amazon S3 bucket
|
748
|
+
# (`OutputConfig`).
|
749
|
+
#
|
750
|
+
# If you choose to use your own CMK, you need the following
|
751
|
+
# permissions on the CMK.
|
752
|
+
#
|
753
|
+
# * kms:CreateGrant
|
754
|
+
#
|
755
|
+
# * kms:DescribeKey
|
756
|
+
#
|
757
|
+
# * kms:GenerateDataKey
|
758
|
+
#
|
759
|
+
# * kms:Decrypt
|
676
760
|
#
|
677
761
|
# If you don't specify a value for `KmsKeyId`, images copied into the
|
678
762
|
# service are encrypted using a key that AWS owns and manages.
|
@@ -1246,10 +1330,12 @@ module Aws::Rekognition
|
|
1246
1330
|
#
|
1247
1331
|
# @!attribute [rw] min_confidence
|
1248
1332
|
# Specifies the minimum confidence level for the labels to return.
|
1249
|
-
#
|
1250
|
-
# lower than this specified value. If you specify a
|
1251
|
-
#
|
1252
|
-
#
|
1333
|
+
# `DetectCustomLabels` doesn't return any labels with a confidence
|
1334
|
+
# value that's lower than this specified value. If you specify a
|
1335
|
+
# value of 0, `DetectCustomLabels` returns all labels, regardless of
|
1336
|
+
# the assumed threshold applied to each label. If you don't specify a
|
1337
|
+
# value for `MinConfidence`, `DetectCustomLabels` returns labels based
|
1338
|
+
# on the assumed threshold of each label.
|
1253
1339
|
# @return [Float]
|
1254
1340
|
#
|
1255
1341
|
class DetectCustomLabelsRequest < Struct.new(
|
@@ -2153,9 +2239,14 @@ module Aws::Rekognition
|
|
2153
2239
|
# The name of the celebrity.
|
2154
2240
|
# @return [String]
|
2155
2241
|
#
|
2242
|
+
# @!attribute [rw] known_gender
|
2243
|
+
# Retrieves the known gender for the celebrity.
|
2244
|
+
# @return [Types::KnownGender]
|
2245
|
+
#
|
2156
2246
|
class GetCelebrityInfoResponse < Struct.new(
|
2157
2247
|
:urls,
|
2158
|
-
:name
|
2248
|
+
:name,
|
2249
|
+
:known_gender)
|
2159
2250
|
SENSITIVE = []
|
2160
2251
|
include Aws::Structure
|
2161
2252
|
end
|
@@ -2251,8 +2342,9 @@ module Aws::Rekognition
|
|
2251
2342
|
# }
|
2252
2343
|
#
|
2253
2344
|
# @!attribute [rw] job_id
|
2254
|
-
# The identifier for the
|
2255
|
-
# the job in a subsequent call
|
2345
|
+
# The identifier for the inappropriate, unwanted, or offensive content
|
2346
|
+
# moderation job. Use `JobId` to identify the job in a subsequent call
|
2347
|
+
# to `GetContentModeration`.
|
2256
2348
|
# @return [String]
|
2257
2349
|
#
|
2258
2350
|
# @!attribute [rw] max_results
|
@@ -2266,7 +2358,7 @@ module Aws::Rekognition
|
|
2266
2358
|
# If the previous response was incomplete (because there is more data
|
2267
2359
|
# to retrieve), Amazon Rekognition returns a pagination token in the
|
2268
2360
|
# response. You can use this pagination token to retrieve the next set
|
2269
|
-
# of
|
2361
|
+
# of content moderation labels.
|
2270
2362
|
# @return [String]
|
2271
2363
|
#
|
2272
2364
|
# @!attribute [rw] sort_by
|
@@ -2287,7 +2379,7 @@ module Aws::Rekognition
|
|
2287
2379
|
end
|
2288
2380
|
|
2289
2381
|
# @!attribute [rw] job_status
|
2290
|
-
# The current status of the
|
2382
|
+
# The current status of the content moderation analysis job.
|
2291
2383
|
# @return [String]
|
2292
2384
|
#
|
2293
2385
|
# @!attribute [rw] status_message
|
@@ -2302,19 +2394,19 @@ module Aws::Rekognition
|
|
2302
2394
|
# @return [Types::VideoMetadata]
|
2303
2395
|
#
|
2304
2396
|
# @!attribute [rw] moderation_labels
|
2305
|
-
# The detected
|
2306
|
-
# detected.
|
2397
|
+
# The detected inappropriate, unwanted, or offensive content
|
2398
|
+
# moderation labels and the time(s) they were detected.
|
2307
2399
|
# @return [Array<Types::ContentModerationDetection>]
|
2308
2400
|
#
|
2309
2401
|
# @!attribute [rw] next_token
|
2310
2402
|
# If the response is truncated, Amazon Rekognition Video returns this
|
2311
2403
|
# token that you can use in the subsequent request to retrieve the
|
2312
|
-
# next set of
|
2404
|
+
# next set of content moderation labels.
|
2313
2405
|
# @return [String]
|
2314
2406
|
#
|
2315
2407
|
# @!attribute [rw] moderation_model_version
|
2316
2408
|
# Version number of the moderation detection model that was used to
|
2317
|
-
# detect
|
2409
|
+
# detect inappropriate, unwanted, or offensive content.
|
2318
2410
|
# @return [String]
|
2319
2411
|
#
|
2320
2412
|
class GetContentModerationResponse < Struct.new(
|
@@ -3303,6 +3395,19 @@ module Aws::Rekognition
|
|
3303
3395
|
include Aws::Structure
|
3304
3396
|
end
|
3305
3397
|
|
3398
|
+
# The known gender identity for the celebrity that matches the provided
|
3399
|
+
# ID.
|
3400
|
+
#
|
3401
|
+
# @!attribute [rw] type
|
3402
|
+
# A string value of the KnownGender info about the Celebrity.
|
3403
|
+
# @return [String]
|
3404
|
+
#
|
3405
|
+
class KnownGender < Struct.new(
|
3406
|
+
:type)
|
3407
|
+
SENSITIVE = []
|
3408
|
+
include Aws::Structure
|
3409
|
+
end
|
3410
|
+
|
3306
3411
|
# Structure containing details about the detected label, including the
|
3307
3412
|
# name, detected instances, parent labels, and level of confidence.
|
3308
3413
|
#
|
@@ -3566,10 +3671,11 @@ module Aws::Rekognition
|
|
3566
3671
|
include Aws::Structure
|
3567
3672
|
end
|
3568
3673
|
|
3569
|
-
# Provides information about a single type of
|
3570
|
-
# image or video. Each type of
|
3571
|
-
# hierarchical taxonomy. For more
|
3572
|
-
# Content in the Amazon Rekognition
|
3674
|
+
# Provides information about a single type of inappropriate, unwanted,
|
3675
|
+
# or offensive content found in an image or video. Each type of
|
3676
|
+
# moderated content has a label within a hierarchical taxonomy. For more
|
3677
|
+
# information, see Content moderation in the Amazon Rekognition
|
3678
|
+
# Developer Guide.
|
3573
3679
|
#
|
3574
3680
|
# @!attribute [rw] confidence
|
3575
3681
|
# Specifies the confidence that Amazon Rekognition has that the label
|
@@ -3636,7 +3742,15 @@ module Aws::Rekognition
|
|
3636
3742
|
|
3637
3743
|
# The Amazon Simple Notification Service topic to which Amazon
|
3638
3744
|
# Rekognition publishes the completion status of a video analysis
|
3639
|
-
# operation. For more information, see api-video.
|
3745
|
+
# operation. For more information, see api-video. Note that the Amazon
|
3746
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
3747
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy
|
3748
|
+
# to access the topic. For more information, see [Giving access to
|
3749
|
+
# multiple Amazon SNS topics][1].
|
3750
|
+
#
|
3751
|
+
#
|
3752
|
+
#
|
3753
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html#api-video-roles-all-topics
|
3640
3754
|
#
|
3641
3755
|
# @note When making an API call, you may pass NotificationChannel
|
3642
3756
|
# data as a hash:
|
@@ -4115,7 +4229,10 @@ module Aws::Rekognition
|
|
4115
4229
|
|
4116
4230
|
# @!attribute [rw] celebrity_faces
|
4117
4231
|
# Details about each celebrity found in the image. Amazon Rekognition
|
4118
|
-
# can detect a maximum of 64 celebrities in an image.
|
4232
|
+
# can detect a maximum of 64 celebrities in an image. Each celebrity
|
4233
|
+
# object includes the following attributes: `Face`, `Confidence`,
|
4234
|
+
# `Emotions`, `Landmarks`, `Pose`, `Quality`, `Smile`, `Id`,
|
4235
|
+
# `KnownGender`, `MatchConfidence`, `Name`, `Urls`.
|
4119
4236
|
# @return [Array<Types::Celebrity>]
|
4120
4237
|
#
|
4121
4238
|
# @!attribute [rw] unrecognized_faces
|
@@ -4123,6 +4240,13 @@ module Aws::Rekognition
|
|
4123
4240
|
# @return [Array<Types::ComparedFace>]
|
4124
4241
|
#
|
4125
4242
|
# @!attribute [rw] orientation_correction
|
4243
|
+
# <note markdown="1"> Support for estimating image orientation using the the
|
4244
|
+
# OrientationCorrection field has ceased as of August 2021. Any
|
4245
|
+
# returned values for this field included in an API response will
|
4246
|
+
# always be NULL.
|
4247
|
+
#
|
4248
|
+
# </note>
|
4249
|
+
#
|
4126
4250
|
# The orientation of the input image (counterclockwise direction). If
|
4127
4251
|
# your application displays the image, you can use this value to
|
4128
4252
|
# correct the orientation. The bounding box coordinates returned in
|
@@ -4447,6 +4571,20 @@ module Aws::Rekognition
|
|
4447
4571
|
# shot detection.
|
4448
4572
|
# @return [Types::ShotSegment]
|
4449
4573
|
#
|
4574
|
+
# @!attribute [rw] start_frame_number
|
4575
|
+
# The frame number of the start of a video segment, using a frame
|
4576
|
+
# index that starts with 0.
|
4577
|
+
# @return [Integer]
|
4578
|
+
#
|
4579
|
+
# @!attribute [rw] end_frame_number
|
4580
|
+
# The frame number at the end of a video segment, using a frame index
|
4581
|
+
# that starts with 0.
|
4582
|
+
# @return [Integer]
|
4583
|
+
#
|
4584
|
+
# @!attribute [rw] duration_frames
|
4585
|
+
# The duration of a video segment, expressed in frames.
|
4586
|
+
# @return [Integer]
|
4587
|
+
#
|
4450
4588
|
class SegmentDetection < Struct.new(
|
4451
4589
|
:type,
|
4452
4590
|
:start_timestamp_millis,
|
@@ -4456,7 +4594,10 @@ module Aws::Rekognition
|
|
4456
4594
|
:end_timecode_smpte,
|
4457
4595
|
:duration_smpte,
|
4458
4596
|
:technical_cue_segment,
|
4459
|
-
:shot_segment
|
4597
|
+
:shot_segment,
|
4598
|
+
:start_frame_number,
|
4599
|
+
:end_frame_number,
|
4600
|
+
:duration_frames)
|
4460
4601
|
SENSITIVE = []
|
4461
4602
|
include Aws::Structure
|
4462
4603
|
end
|
@@ -4557,7 +4698,9 @@ module Aws::Rekognition
|
|
4557
4698
|
# @!attribute [rw] notification_channel
|
4558
4699
|
# The Amazon SNS topic ARN that you want Amazon Rekognition Video to
|
4559
4700
|
# publish the completion status of the celebrity recognition analysis
|
4560
|
-
# to.
|
4701
|
+
# to. The Amazon SNS topic must have a topic name that begins with
|
4702
|
+
# *AmazonRekognition* if you are using the
|
4703
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4561
4704
|
# @return [Types::NotificationChannel]
|
4562
4705
|
#
|
4563
4706
|
# @!attribute [rw] job_tag
|
@@ -4609,8 +4752,8 @@ module Aws::Rekognition
|
|
4609
4752
|
# }
|
4610
4753
|
#
|
4611
4754
|
# @!attribute [rw] video
|
4612
|
-
# The video in which you want to detect
|
4613
|
-
# be stored in an Amazon S3 bucket.
|
4755
|
+
# The video in which you want to detect inappropriate, unwanted, or
|
4756
|
+
# offensive content. The video must be stored in an Amazon S3 bucket.
|
4614
4757
|
# @return [Types::Video]
|
4615
4758
|
#
|
4616
4759
|
# @!attribute [rw] min_confidence
|
@@ -4633,7 +4776,10 @@ module Aws::Rekognition
|
|
4633
4776
|
#
|
4634
4777
|
# @!attribute [rw] notification_channel
|
4635
4778
|
# The Amazon SNS topic ARN that you want Amazon Rekognition Video to
|
4636
|
-
# publish the completion status of the
|
4779
|
+
# publish the completion status of the content analysis to. The Amazon
|
4780
|
+
# SNS topic must have a topic name that begins with
|
4781
|
+
# *AmazonRekognition* if you are using the
|
4782
|
+
# AmazonRekognitionServiceRole permissions policy to access the topic.
|
4637
4783
|
# @return [Types::NotificationChannel]
|
4638
4784
|
#
|
4639
4785
|
# @!attribute [rw] job_tag
|
@@ -4654,8 +4800,8 @@ module Aws::Rekognition
|
|
4654
4800
|
end
|
4655
4801
|
|
4656
4802
|
# @!attribute [rw] job_id
|
4657
|
-
# The identifier for the
|
4658
|
-
#
|
4803
|
+
# The identifier for the content analysis job. Use `JobId` to identify
|
4804
|
+
# the job in a subsequent call to `GetContentModeration`.
|
4659
4805
|
# @return [String]
|
4660
4806
|
#
|
4661
4807
|
class StartContentModerationResponse < Struct.new(
|
@@ -4699,7 +4845,9 @@ module Aws::Rekognition
|
|
4699
4845
|
# @!attribute [rw] notification_channel
|
4700
4846
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4701
4847
|
# Video to publish the completion status of the face detection
|
4702
|
-
# operation.
|
4848
|
+
# operation. The Amazon SNS topic must have a topic name that begins
|
4849
|
+
# with *AmazonRekognition* if you are using the
|
4850
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4703
4851
|
# @return [Types::NotificationChannel]
|
4704
4852
|
#
|
4705
4853
|
# @!attribute [rw] face_attributes
|
@@ -4784,7 +4932,10 @@ module Aws::Rekognition
|
|
4784
4932
|
#
|
4785
4933
|
# @!attribute [rw] notification_channel
|
4786
4934
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4787
|
-
# Video to publish the completion status of the search.
|
4935
|
+
# Video to publish the completion status of the search. The Amazon SNS
|
4936
|
+
# topic must have a topic name that begins with *AmazonRekognition* if
|
4937
|
+
# you are using the AmazonRekognitionServiceRole permissions policy to
|
4938
|
+
# access the topic.
|
4788
4939
|
# @return [Types::NotificationChannel]
|
4789
4940
|
#
|
4790
4941
|
# @!attribute [rw] job_tag
|
@@ -4863,6 +5014,9 @@ module Aws::Rekognition
|
|
4863
5014
|
# @!attribute [rw] notification_channel
|
4864
5015
|
# The Amazon SNS topic ARN you want Amazon Rekognition Video to
|
4865
5016
|
# publish the completion status of the label detection operation to.
|
5017
|
+
# The Amazon SNS topic must have a topic name that begins with
|
5018
|
+
# *AmazonRekognition* if you are using the
|
5019
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4866
5020
|
# @return [Types::NotificationChannel]
|
4867
5021
|
#
|
4868
5022
|
# @!attribute [rw] job_tag
|
@@ -4927,6 +5081,9 @@ module Aws::Rekognition
|
|
4927
5081
|
# @!attribute [rw] notification_channel
|
4928
5082
|
# The Amazon SNS topic ARN you want Amazon Rekognition Video to
|
4929
5083
|
# publish the completion status of the people detection operation to.
|
5084
|
+
# The Amazon SNS topic must have a topic name that begins with
|
5085
|
+
# *AmazonRekognition* if you are using the
|
5086
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4930
5087
|
# @return [Types::NotificationChannel]
|
4931
5088
|
#
|
4932
5089
|
# @!attribute [rw] job_tag
|
@@ -5003,6 +5160,10 @@ module Aws::Rekognition
|
|
5003
5160
|
# {
|
5004
5161
|
# technical_cue_filter: {
|
5005
5162
|
# min_segment_confidence: 1.0,
|
5163
|
+
# black_frame: {
|
5164
|
+
# max_pixel_threshold: 1.0,
|
5165
|
+
# min_coverage_percentage: 1.0,
|
5166
|
+
# },
|
5006
5167
|
# },
|
5007
5168
|
# shot_filter: {
|
5008
5169
|
# min_segment_confidence: 1.0,
|
@@ -5044,6 +5205,10 @@ module Aws::Rekognition
|
|
5044
5205
|
# filters: {
|
5045
5206
|
# technical_cue_filter: {
|
5046
5207
|
# min_segment_confidence: 1.0,
|
5208
|
+
# black_frame: {
|
5209
|
+
# max_pixel_threshold: 1.0,
|
5210
|
+
# min_coverage_percentage: 1.0,
|
5211
|
+
# },
|
5047
5212
|
# },
|
5048
5213
|
# shot_filter: {
|
5049
5214
|
# min_segment_confidence: 1.0,
|
@@ -5069,7 +5234,9 @@ module Aws::Rekognition
|
|
5069
5234
|
# @!attribute [rw] notification_channel
|
5070
5235
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
5071
5236
|
# Video to publish the completion status of the segment detection
|
5072
|
-
# operation.
|
5237
|
+
# operation. Note that the Amazon SNS topic must have a topic name
|
5238
|
+
# that begins with *AmazonRekognition* if you are using the
|
5239
|
+
# AmazonRekognitionServiceRole permissions policy to access the topic.
|
5073
5240
|
# @return [Types::NotificationChannel]
|
5074
5241
|
#
|
5075
5242
|
# @!attribute [rw] job_tag
|
@@ -5167,6 +5334,10 @@ module Aws::Rekognition
|
|
5167
5334
|
#
|
5168
5335
|
# {
|
5169
5336
|
# min_segment_confidence: 1.0,
|
5337
|
+
# black_frame: {
|
5338
|
+
# max_pixel_threshold: 1.0,
|
5339
|
+
# min_coverage_percentage: 1.0,
|
5340
|
+
# },
|
5170
5341
|
# }
|
5171
5342
|
#
|
5172
5343
|
# @!attribute [rw] min_segment_confidence
|
@@ -5182,8 +5353,17 @@ module Aws::Rekognition
|
|
5182
5353
|
# percent.
|
5183
5354
|
# @return [Float]
|
5184
5355
|
#
|
5356
|
+
# @!attribute [rw] black_frame
|
5357
|
+
# A filter that allows you to control the black frame detection by
|
5358
|
+
# specifying the black levels and pixel coverage of black pixels in a
|
5359
|
+
# frame. Videos can come from multiple sources, formats, and time
|
5360
|
+
# periods, with different standards and varying noise levels for black
|
5361
|
+
# frames that need to be accounted for.
|
5362
|
+
# @return [Types::BlackFrame]
|
5363
|
+
#
|
5185
5364
|
class StartTechnicalCueDetectionFilter < Struct.new(
|
5186
|
-
:min_segment_confidence
|
5365
|
+
:min_segment_confidence,
|
5366
|
+
:black_frame)
|
5187
5367
|
SENSITIVE = []
|
5188
5368
|
include Aws::Structure
|
5189
5369
|
end
|
@@ -5284,7 +5464,16 @@ module Aws::Rekognition
|
|
5284
5464
|
# @!attribute [rw] notification_channel
|
5285
5465
|
# The Amazon Simple Notification Service topic to which Amazon
|
5286
5466
|
# Rekognition publishes the completion status of a video analysis
|
5287
|
-
# operation. For more information, see api-video.
|
5467
|
+
# operation. For more information, see api-video. Note that the Amazon
|
5468
|
+
# SNS topic must have a topic name that begins with
|
5469
|
+
# *AmazonRekognition* if you are using the
|
5470
|
+
# AmazonRekognitionServiceRole permissions policy to access the topic.
|
5471
|
+
# For more information, see [Giving access to multiple Amazon SNS
|
5472
|
+
# topics][1].
|
5473
|
+
#
|
5474
|
+
#
|
5475
|
+
#
|
5476
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html#api-video-roles-all-topics
|
5288
5477
|
# @return [Types::NotificationChannel]
|
5289
5478
|
#
|
5290
5479
|
# @!attribute [rw] job_tag
|
@@ -5892,13 +6081,19 @@ module Aws::Rekognition
|
|
5892
6081
|
# Horizontal pixel dimension of the video.
|
5893
6082
|
# @return [Integer]
|
5894
6083
|
#
|
6084
|
+
# @!attribute [rw] color_range
|
6085
|
+
# A description of the range of luminance values in a video, either
|
6086
|
+
# LIMITED (16 to 235) or FULL (0 to 255).
|
6087
|
+
# @return [String]
|
6088
|
+
#
|
5895
6089
|
class VideoMetadata < Struct.new(
|
5896
6090
|
:codec,
|
5897
6091
|
:duration_millis,
|
5898
6092
|
:format,
|
5899
6093
|
:frame_rate,
|
5900
6094
|
:frame_height,
|
5901
|
-
:frame_width
|
6095
|
+
:frame_width,
|
6096
|
+
:color_range)
|
5902
6097
|
SENSITIVE = []
|
5903
6098
|
include Aws::Structure
|
5904
6099
|
end
|
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.57.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: 2021-
|
11
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.121.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.121.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
77
|
requirements:
|
78
78
|
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '
|
80
|
+
version: '2.3'
|
81
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
83
|
- - ">="
|