aws-sdk-rekognition 1.50.0 → 1.54.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 +22 -2
- data/VERSION +1 -1
- data/lib/aws-sdk-rekognition.rb +1 -1
- data/lib/aws-sdk-rekognition/client.rb +145 -46
- data/lib/aws-sdk-rekognition/client_api.rb +16 -0
- data/lib/aws-sdk-rekognition/types.rb +202 -36
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3be2c5689e792a068c696e416622e79a1ef01e2564a6b77a58bd7f9764cdcce9
|
4
|
+
data.tar.gz: 8275849761b724ea256aeb308d281c254f1a46ae0694b0d9a50a81e6e3552073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b53c25a316b0643b6e26034e1f2aa209669fc550799b306e9fe2debc5d824314ac1bb0ec8f5c6663dd14c15203fa8e246504472f8969df8ab8a1fdf42e385e60
|
7
|
+
data.tar.gz: 28041784233e4cea2a86458435fcfb3a5f6c5f313ea202e80458c6580c13705d10b926281ac503987104902f32790be0e6fe12ddd8f25472f3304a5ac19df94b
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,30 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.54.0 (2021-08-09)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* 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.
|
8
|
+
|
9
|
+
1.53.0 (2021-07-30)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.52.0 (2021-07-28)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.51.0 (2021-05-19)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Amazon Rekognition Custom Labels adds support for customer managed encryption, using AWS Key Management Service, of image files copied into the service and files written back to the customer.
|
23
|
+
|
4
24
|
1.50.0 (2021-03-25)
|
5
25
|
------------------
|
6
26
|
|
7
|
-
* Feature -
|
27
|
+
* Feature - This release introduces AWS tagging support for Amazon Rekognition collections, stream processors, and Custom Label models.
|
8
28
|
|
9
29
|
1.49.0 (2021-03-10)
|
10
30
|
------------------
|
@@ -340,4 +360,4 @@ Unreleased Changes
|
|
340
360
|
1.0.0.rc2 (2016-12-09)
|
341
361
|
------------------
|
342
362
|
|
343
|
-
* Feature - Initial release of `aws-sdk-rekognition`.
|
363
|
+
* Feature - Initial release of `aws-sdk-rekognition`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.54.0
|
data/lib/aws-sdk-rekognition.rb
CHANGED
@@ -588,7 +588,9 @@ module Aws::Rekognition
|
|
588
588
|
# </note>
|
589
589
|
#
|
590
590
|
# This operation requires permissions to perform the
|
591
|
-
# `rekognition:CreateCollection` action.
|
591
|
+
# `rekognition:CreateCollection` action. If you want to tag your
|
592
|
+
# collection, you also require permission to perform the
|
593
|
+
# `rekognition:TagResource` operation.
|
592
594
|
#
|
593
595
|
# @option params [required, String] :collection_id
|
594
596
|
# ID for the collection that you are creating.
|
@@ -697,7 +699,9 @@ module Aws::Rekognition
|
|
697
699
|
# A name for the version of the model. This value must be unique.
|
698
700
|
#
|
699
701
|
# @option params [required, Types::OutputConfig] :output_config
|
700
|
-
# The Amazon S3 location to store the results of training.
|
702
|
+
# The Amazon S3 bucket location to store the results of training. The S3
|
703
|
+
# bucket can be in any AWS account as long as the caller has
|
704
|
+
# `s3:PutObject` permissions on the S3 bucket.
|
701
705
|
#
|
702
706
|
# @option params [required, Types::TrainingData] :training_data
|
703
707
|
# The dataset to use for training.
|
@@ -708,6 +712,29 @@ module Aws::Rekognition
|
|
708
712
|
# @option params [Hash<String,String>] :tags
|
709
713
|
# A set of tags (key-value pairs) that you want to attach to the model.
|
710
714
|
#
|
715
|
+
# @option params [String] :kms_key_id
|
716
|
+
# The identifier for your AWS Key Management Service (AWS KMS) customer
|
717
|
+
# master key (CMK). You can supply the Amazon Resource Name (ARN) of
|
718
|
+
# your CMK, the ID of your CMK, an alias for your CMK, or an alias ARN.
|
719
|
+
# The key is used to encrypt training and test images copied into the
|
720
|
+
# service for model training. Your source images are unaffected. The key
|
721
|
+
# is also used to encrypt training results and manifest files written to
|
722
|
+
# the output Amazon S3 bucket (`OutputConfig`).
|
723
|
+
#
|
724
|
+
# If you choose to use your own CMK, you need the following permissions
|
725
|
+
# on the CMK.
|
726
|
+
#
|
727
|
+
# * kms:CreateGrant
|
728
|
+
#
|
729
|
+
# * kms:DescribeKey
|
730
|
+
#
|
731
|
+
# * kms:GenerateDataKey
|
732
|
+
#
|
733
|
+
# * kms:Decrypt
|
734
|
+
#
|
735
|
+
# If you don't specify a value for `KmsKeyId`, images copied into the
|
736
|
+
# service are encrypted using a key that AWS owns and manages.
|
737
|
+
#
|
711
738
|
# @return [Types::CreateProjectVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
712
739
|
#
|
713
740
|
# * {Types::CreateProjectVersionResponse#project_version_arn #project_version_arn} => String
|
@@ -751,6 +778,7 @@ module Aws::Rekognition
|
|
751
778
|
# tags: {
|
752
779
|
# "TagKey" => "TagValue",
|
753
780
|
# },
|
781
|
+
# kms_key_id: "KmsKeyId",
|
754
782
|
# })
|
755
783
|
#
|
756
784
|
# @example Response structure
|
@@ -783,6 +811,11 @@ module Aws::Rekognition
|
|
783
811
|
# StopStreamProcessor to stop processing. You can delete the stream
|
784
812
|
# processor by calling DeleteStreamProcessor.
|
785
813
|
#
|
814
|
+
# This operation requires permissions to perform the
|
815
|
+
# `rekognition:CreateStreamProcessor` action. If you want to tag your
|
816
|
+
# stream processor, you also require permission to perform the
|
817
|
+
# `rekognition:TagResource` operation.
|
818
|
+
#
|
786
819
|
# @option params [required, Types::StreamProcessorInput] :input
|
787
820
|
# Kinesis video stream stream that provides the source streaming video.
|
788
821
|
# If you are using the AWS CLI, the parameter name is
|
@@ -1173,6 +1206,7 @@ module Aws::Rekognition
|
|
1173
1206
|
# resp.project_version_descriptions[0].manifest_summary.s3_object.bucket #=> String
|
1174
1207
|
# resp.project_version_descriptions[0].manifest_summary.s3_object.name #=> String
|
1175
1208
|
# resp.project_version_descriptions[0].manifest_summary.s3_object.version #=> String
|
1209
|
+
# resp.project_version_descriptions[0].kms_key_id #=> String
|
1176
1210
|
# resp.next_token #=> String
|
1177
1211
|
#
|
1178
1212
|
#
|
@@ -1969,7 +2003,7 @@ module Aws::Rekognition
|
|
1969
2003
|
# the image.
|
1970
2004
|
#
|
1971
2005
|
# A word is one or more ISO basic latin script characters that are not
|
1972
|
-
# separated by spaces. `DetectText` can detect up to
|
2006
|
+
# separated by spaces. `DetectText` can detect up to 100 words in an
|
1973
2007
|
# image.
|
1974
2008
|
#
|
1975
2009
|
# A line is a string of equally spaced words. A line isn't necessarily
|
@@ -2204,6 +2238,7 @@ module Aws::Rekognition
|
|
2204
2238
|
# resp.video_metadata.frame_rate #=> Float
|
2205
2239
|
# resp.video_metadata.frame_height #=> Integer
|
2206
2240
|
# resp.video_metadata.frame_width #=> Integer
|
2241
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2207
2242
|
# resp.next_token #=> String
|
2208
2243
|
# resp.celebrities #=> Array
|
2209
2244
|
# resp.celebrities[0].timestamp #=> Integer
|
@@ -2259,26 +2294,29 @@ module Aws::Rekognition
|
|
2259
2294
|
req.send_request(options)
|
2260
2295
|
end
|
2261
2296
|
|
2262
|
-
# Gets the
|
2263
|
-
# Video analysis started by
|
2264
|
-
#
|
2265
|
-
#
|
2266
|
-
#
|
2267
|
-
#
|
2268
|
-
#
|
2269
|
-
#
|
2270
|
-
# `
|
2271
|
-
#
|
2272
|
-
#
|
2273
|
-
# the
|
2274
|
-
# `
|
2297
|
+
# Gets the inappropriate, unwanted, or offensive content analysis
|
2298
|
+
# results for a Amazon Rekognition Video analysis started by
|
2299
|
+
# StartContentModeration. For a list of moderation labels in Amazon
|
2300
|
+
# Rekognition, see [Using the image and video moderation APIs][1].
|
2301
|
+
#
|
2302
|
+
# Amazon Rekognition Video inappropriate or offensive content detection
|
2303
|
+
# in a stored video is an asynchronous operation. You start analysis by
|
2304
|
+
# calling StartContentModeration which returns a job identifier
|
2305
|
+
# (`JobId`). When analysis finishes, Amazon Rekognition Video publishes
|
2306
|
+
# a completion status to the Amazon Simple Notification Service topic
|
2307
|
+
# registered in the initial call to `StartContentModeration`. To get the
|
2308
|
+
# results of the content analysis, first check that the status value
|
2309
|
+
# published to the Amazon SNS topic is `SUCCEEDED`. If so, call
|
2310
|
+
# `GetContentModeration` and pass the job identifier (`JobId`) from the
|
2311
|
+
# initial call to `StartContentModeration`.
|
2275
2312
|
#
|
2276
2313
|
# For more information, see Working with Stored Videos in the Amazon
|
2277
2314
|
# Rekognition Devlopers Guide.
|
2278
2315
|
#
|
2279
|
-
# `GetContentModeration` returns detected
|
2280
|
-
#
|
2281
|
-
# ContentModerationDetection
|
2316
|
+
# `GetContentModeration` returns detected inappropriate, unwanted, or
|
2317
|
+
# offensive content moderation labels, and the time they are detected,
|
2318
|
+
# in an array, `ModerationLabels`, of ContentModerationDetection
|
2319
|
+
# objects.
|
2282
2320
|
#
|
2283
2321
|
# By default, the moderated labels are returned sorted by time, in
|
2284
2322
|
# milliseconds from the start of the video. You can also sort them by
|
@@ -2293,12 +2331,17 @@ module Aws::Rekognition
|
|
2293
2331
|
# and populate the `NextToken` request parameter with the value of
|
2294
2332
|
# `NextToken` returned from the previous call to `GetContentModeration`.
|
2295
2333
|
#
|
2296
|
-
# For more information, see
|
2297
|
-
#
|
2334
|
+
# For more information, see Content moderation in the Amazon Rekognition
|
2335
|
+
# Developer Guide.
|
2336
|
+
#
|
2337
|
+
#
|
2338
|
+
#
|
2339
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html#moderation-api
|
2298
2340
|
#
|
2299
2341
|
# @option params [required, String] :job_id
|
2300
|
-
# The identifier for the
|
2301
|
-
# job in a subsequent call
|
2342
|
+
# The identifier for the inappropriate, unwanted, or offensive content
|
2343
|
+
# moderation job. Use `JobId` to identify the job in a subsequent call
|
2344
|
+
# to `GetContentModeration`.
|
2302
2345
|
#
|
2303
2346
|
# @option params [Integer] :max_results
|
2304
2347
|
# Maximum number of results to return per paginated call. The largest
|
@@ -2310,7 +2353,7 @@ module Aws::Rekognition
|
|
2310
2353
|
# If the previous response was incomplete (because there is more data to
|
2311
2354
|
# retrieve), Amazon Rekognition returns a pagination token in the
|
2312
2355
|
# response. You can use this pagination token to retrieve the next set
|
2313
|
-
# of
|
2356
|
+
# of content moderation labels.
|
2314
2357
|
#
|
2315
2358
|
# @option params [String] :sort_by
|
2316
2359
|
# Sort to use for elements in the `ModerationLabelDetections` array. Use
|
@@ -2349,6 +2392,7 @@ module Aws::Rekognition
|
|
2349
2392
|
# resp.video_metadata.frame_rate #=> Float
|
2350
2393
|
# resp.video_metadata.frame_height #=> Integer
|
2351
2394
|
# resp.video_metadata.frame_width #=> Integer
|
2395
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2352
2396
|
# resp.moderation_labels #=> Array
|
2353
2397
|
# resp.moderation_labels[0].timestamp #=> Integer
|
2354
2398
|
# resp.moderation_labels[0].moderation_label.confidence #=> Float
|
@@ -2432,6 +2476,7 @@ module Aws::Rekognition
|
|
2432
2476
|
# resp.video_metadata.frame_rate #=> Float
|
2433
2477
|
# resp.video_metadata.frame_height #=> Integer
|
2434
2478
|
# resp.video_metadata.frame_width #=> Integer
|
2479
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2435
2480
|
# resp.next_token #=> String
|
2436
2481
|
# resp.faces #=> Array
|
2437
2482
|
# resp.faces[0].timestamp #=> Integer
|
@@ -2565,6 +2610,7 @@ module Aws::Rekognition
|
|
2565
2610
|
# resp.video_metadata.frame_rate #=> Float
|
2566
2611
|
# resp.video_metadata.frame_height #=> Integer
|
2567
2612
|
# resp.video_metadata.frame_width #=> Integer
|
2613
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2568
2614
|
# resp.persons #=> Array
|
2569
2615
|
# resp.persons[0].timestamp #=> Integer
|
2570
2616
|
# resp.persons[0].person.index #=> Integer
|
@@ -2712,6 +2758,7 @@ module Aws::Rekognition
|
|
2712
2758
|
# resp.video_metadata.frame_rate #=> Float
|
2713
2759
|
# resp.video_metadata.frame_height #=> Integer
|
2714
2760
|
# resp.video_metadata.frame_width #=> Integer
|
2761
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2715
2762
|
# resp.next_token #=> String
|
2716
2763
|
# resp.labels #=> Array
|
2717
2764
|
# resp.labels[0].timestamp #=> Integer
|
@@ -2825,6 +2872,7 @@ module Aws::Rekognition
|
|
2825
2872
|
# resp.video_metadata.frame_rate #=> Float
|
2826
2873
|
# resp.video_metadata.frame_height #=> Integer
|
2827
2874
|
# resp.video_metadata.frame_width #=> Integer
|
2875
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
2828
2876
|
# resp.next_token #=> String
|
2829
2877
|
# resp.persons #=> Array
|
2830
2878
|
# resp.persons[0].timestamp #=> Integer
|
@@ -2957,6 +3005,7 @@ module Aws::Rekognition
|
|
2957
3005
|
# resp.video_metadata[0].frame_rate #=> Float
|
2958
3006
|
# resp.video_metadata[0].frame_height #=> Integer
|
2959
3007
|
# resp.video_metadata[0].frame_width #=> Integer
|
3008
|
+
# resp.video_metadata[0].color_range #=> String, one of "FULL", "LIMITED"
|
2960
3009
|
# resp.audio_metadata #=> Array
|
2961
3010
|
# resp.audio_metadata[0].codec #=> String
|
2962
3011
|
# resp.audio_metadata[0].duration_millis #=> Integer
|
@@ -2971,10 +3020,13 @@ module Aws::Rekognition
|
|
2971
3020
|
# resp.segments[0].start_timecode_smpte #=> String
|
2972
3021
|
# resp.segments[0].end_timecode_smpte #=> String
|
2973
3022
|
# resp.segments[0].duration_smpte #=> String
|
2974
|
-
# resp.segments[0].technical_cue_segment.type #=> String, one of "ColorBars", "EndCredits", "BlackFrames"
|
3023
|
+
# resp.segments[0].technical_cue_segment.type #=> String, one of "ColorBars", "EndCredits", "BlackFrames", "OpeningCredits", "StudioLogo", "Slate", "Content"
|
2975
3024
|
# resp.segments[0].technical_cue_segment.confidence #=> Float
|
2976
3025
|
# resp.segments[0].shot_segment.index #=> Integer
|
2977
3026
|
# resp.segments[0].shot_segment.confidence #=> Float
|
3027
|
+
# resp.segments[0].start_frame_number #=> Integer
|
3028
|
+
# resp.segments[0].end_frame_number #=> Integer
|
3029
|
+
# resp.segments[0].duration_frames #=> Integer
|
2978
3030
|
# resp.selected_segment_types #=> Array
|
2979
3031
|
# resp.selected_segment_types[0].type #=> String, one of "TECHNICAL_CUE", "SHOT"
|
2980
3032
|
# resp.selected_segment_types[0].model_version #=> String
|
@@ -3061,6 +3113,7 @@ module Aws::Rekognition
|
|
3061
3113
|
# resp.video_metadata.frame_rate #=> Float
|
3062
3114
|
# resp.video_metadata.frame_height #=> Integer
|
3063
3115
|
# resp.video_metadata.frame_width #=> Integer
|
3116
|
+
# resp.video_metadata.color_range #=> String, one of "FULL", "LIMITED"
|
3064
3117
|
# resp.text_detections #=> Array
|
3065
3118
|
# resp.text_detections[0].timestamp #=> Integer
|
3066
3119
|
# resp.text_detections[0].text_detection.detected_text #=> String
|
@@ -3815,6 +3868,9 @@ module Aws::Rekognition
|
|
3815
3868
|
# Returns a list of tags in an Amazon Rekognition collection, stream
|
3816
3869
|
# processor, or Custom Labels model.
|
3817
3870
|
#
|
3871
|
+
# This operation requires permissions to perform the
|
3872
|
+
# `rekognition:ListTagsForResource` action.
|
3873
|
+
#
|
3818
3874
|
# @option params [required, String] :resource_arn
|
3819
3875
|
# Amazon Resource Name (ARN) of the model, collection, or stream
|
3820
3876
|
# processor that contains the tags that you want a list of.
|
@@ -4117,6 +4173,9 @@ module Aws::Rekognition
|
|
4117
4173
|
# bounding box contains a face) of the face that Amazon Rekognition used
|
4118
4174
|
# for the input image.
|
4119
4175
|
#
|
4176
|
+
# If no faces are detected in the input image, `SearchFacesByImage`
|
4177
|
+
# returns an `InvalidParameterException` error.
|
4178
|
+
#
|
4120
4179
|
# For an example, Searching for a Face Using an Image in the Amazon
|
4121
4180
|
# Rekognition Developer Guide.
|
4122
4181
|
#
|
@@ -4298,7 +4357,9 @@ module Aws::Rekognition
|
|
4298
4357
|
# @option params [Types::NotificationChannel] :notification_channel
|
4299
4358
|
# The Amazon SNS topic ARN that you want Amazon Rekognition Video to
|
4300
4359
|
# publish the completion status of the celebrity recognition analysis
|
4301
|
-
# to.
|
4360
|
+
# to. The Amazon SNS topic must have a topic name that begins with
|
4361
|
+
# *AmazonRekognition* if you are using the AmazonRekognitionServiceRole
|
4362
|
+
# permissions policy.
|
4302
4363
|
#
|
4303
4364
|
# @option params [String] :job_tag
|
4304
4365
|
# An identifier you specify that's returned in the completion
|
@@ -4339,27 +4400,33 @@ module Aws::Rekognition
|
|
4339
4400
|
req.send_request(options)
|
4340
4401
|
end
|
4341
4402
|
|
4342
|
-
# Starts asynchronous detection of
|
4403
|
+
# Starts asynchronous detection of inappropriate, unwanted, or offensive
|
4404
|
+
# content in a stored video. For a list of moderation labels in Amazon
|
4405
|
+
# Rekognition, see [Using the image and video moderation APIs][1].
|
4343
4406
|
#
|
4344
4407
|
# Amazon Rekognition Video can moderate content in a video stored in an
|
4345
4408
|
# Amazon S3 bucket. Use Video to specify the bucket name and the
|
4346
4409
|
# filename of the video. `StartContentModeration` returns a job
|
4347
4410
|
# identifier (`JobId`) which you use to get the results of the analysis.
|
4348
|
-
# When
|
4349
|
-
#
|
4350
|
-
#
|
4411
|
+
# When content analysis is finished, Amazon Rekognition Video publishes
|
4412
|
+
# a completion status to the Amazon Simple Notification Service topic
|
4413
|
+
# that you specify in `NotificationChannel`.
|
4414
|
+
#
|
4415
|
+
# To get the results of the content analysis, first check that the
|
4416
|
+
# status value published to the Amazon SNS topic is `SUCCEEDED`. If so,
|
4417
|
+
# call GetContentModeration and pass the job identifier (`JobId`) from
|
4418
|
+
# the initial call to `StartContentModeration`.
|
4419
|
+
#
|
4420
|
+
# For more information, see Content moderation in the Amazon Rekognition
|
4421
|
+
# Developer Guide.
|
4351
4422
|
#
|
4352
|
-
# To get the results of the unsafe content analysis, first check that
|
4353
|
-
# the status value published to the Amazon SNS topic is `SUCCEEDED`. If
|
4354
|
-
# so, call GetContentModeration and pass the job identifier (`JobId`)
|
4355
|
-
# from the initial call to `StartContentModeration`.
|
4356
4423
|
#
|
4357
|
-
#
|
4358
|
-
#
|
4424
|
+
#
|
4425
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html#moderation-api
|
4359
4426
|
#
|
4360
4427
|
# @option params [required, Types::Video] :video
|
4361
|
-
# The video in which you want to detect
|
4362
|
-
# be stored in an Amazon S3 bucket.
|
4428
|
+
# The video in which you want to detect inappropriate, unwanted, or
|
4429
|
+
# offensive content. The video must be stored in an Amazon S3 bucket.
|
4363
4430
|
#
|
4364
4431
|
# @option params [Float] :min_confidence
|
4365
4432
|
# Specifies the minimum confidence that Amazon Rekognition must have in
|
@@ -4379,7 +4446,10 @@ module Aws::Rekognition
|
|
4379
4446
|
#
|
4380
4447
|
# @option params [Types::NotificationChannel] :notification_channel
|
4381
4448
|
# The Amazon SNS topic ARN that you want Amazon Rekognition Video to
|
4382
|
-
# publish the completion status of the
|
4449
|
+
# publish the completion status of the content analysis to. The Amazon
|
4450
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
4451
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy
|
4452
|
+
# to access the topic.
|
4383
4453
|
#
|
4384
4454
|
# @option params [String] :job_tag
|
4385
4455
|
# An identifier you specify that's returned in the completion
|
@@ -4451,7 +4521,9 @@ module Aws::Rekognition
|
|
4451
4521
|
# @option params [Types::NotificationChannel] :notification_channel
|
4452
4522
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4453
4523
|
# Video to publish the completion status of the face detection
|
4454
|
-
# operation.
|
4524
|
+
# operation. The Amazon SNS topic must have a topic name that begins
|
4525
|
+
# with *AmazonRekognition* if you are using the
|
4526
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4455
4527
|
#
|
4456
4528
|
# @option params [String] :face_attributes
|
4457
4529
|
# The face attributes you want returned.
|
@@ -4536,7 +4608,10 @@ module Aws::Rekognition
|
|
4536
4608
|
#
|
4537
4609
|
# @option params [Types::NotificationChannel] :notification_channel
|
4538
4610
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4539
|
-
# Video to publish the completion status of the search.
|
4611
|
+
# Video to publish the completion status of the search. The Amazon SNS
|
4612
|
+
# topic must have a topic name that begins with *AmazonRekognition* if
|
4613
|
+
# you are using the AmazonRekognitionServiceRole permissions policy to
|
4614
|
+
# access the topic.
|
4540
4615
|
#
|
4541
4616
|
# @option params [String] :job_tag
|
4542
4617
|
# An identifier you specify that's returned in the completion
|
@@ -4622,7 +4697,9 @@ module Aws::Rekognition
|
|
4622
4697
|
#
|
4623
4698
|
# @option params [Types::NotificationChannel] :notification_channel
|
4624
4699
|
# The Amazon SNS topic ARN you want Amazon Rekognition Video to publish
|
4625
|
-
# the completion status of the label detection operation to.
|
4700
|
+
# the completion status of the label detection operation to. The Amazon
|
4701
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
4702
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy.
|
4626
4703
|
#
|
4627
4704
|
# @option params [String] :job_tag
|
4628
4705
|
# An identifier you specify that's returned in the completion
|
@@ -4692,7 +4769,9 @@ module Aws::Rekognition
|
|
4692
4769
|
#
|
4693
4770
|
# @option params [Types::NotificationChannel] :notification_channel
|
4694
4771
|
# The Amazon SNS topic ARN you want Amazon Rekognition Video to publish
|
4695
|
-
# the completion status of the people detection operation to.
|
4772
|
+
# the completion status of the people detection operation to. The Amazon
|
4773
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
4774
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy.
|
4696
4775
|
#
|
4697
4776
|
# @option params [String] :job_tag
|
4698
4777
|
# An identifier you specify that's returned in the completion
|
@@ -4821,7 +4900,9 @@ module Aws::Rekognition
|
|
4821
4900
|
# @option params [Types::NotificationChannel] :notification_channel
|
4822
4901
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4823
4902
|
# Video to publish the completion status of the segment detection
|
4824
|
-
# operation.
|
4903
|
+
# operation. Note that the Amazon SNS topic must have a topic name that
|
4904
|
+
# begins with *AmazonRekognition* if you are using the
|
4905
|
+
# AmazonRekognitionServiceRole permissions policy to access the topic.
|
4825
4906
|
#
|
4826
4907
|
# @option params [String] :job_tag
|
4827
4908
|
# An identifier you specify that's returned in the completion
|
@@ -4859,6 +4940,10 @@ module Aws::Rekognition
|
|
4859
4940
|
# filters: {
|
4860
4941
|
# technical_cue_filter: {
|
4861
4942
|
# min_segment_confidence: 1.0,
|
4943
|
+
# black_frame: {
|
4944
|
+
# max_pixel_threshold: 1.0,
|
4945
|
+
# min_coverage_percentage: 1.0,
|
4946
|
+
# },
|
4862
4947
|
# },
|
4863
4948
|
# shot_filter: {
|
4864
4949
|
# min_segment_confidence: 1.0,
|
@@ -4931,7 +5016,15 @@ module Aws::Rekognition
|
|
4931
5016
|
# @option params [Types::NotificationChannel] :notification_channel
|
4932
5017
|
# The Amazon Simple Notification Service topic to which Amazon
|
4933
5018
|
# Rekognition publishes the completion status of a video analysis
|
4934
|
-
# operation. For more information, see api-video.
|
5019
|
+
# operation. For more information, see api-video. Note that the Amazon
|
5020
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
5021
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy
|
5022
|
+
# to access the topic. For more information, see [Giving access to
|
5023
|
+
# multiple Amazon SNS topics][1].
|
5024
|
+
#
|
5025
|
+
#
|
5026
|
+
#
|
5027
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html#api-video-roles-all-topics
|
4935
5028
|
#
|
4936
5029
|
# @option params [String] :job_tag
|
4937
5030
|
# An identifier returned in the completion status published by your
|
@@ -5049,6 +5142,9 @@ module Aws::Rekognition
|
|
5049
5142
|
# stream processor, or Custom Labels model. For more information, see
|
5050
5143
|
# [Tagging AWS Resources][1].
|
5051
5144
|
#
|
5145
|
+
# This operation requires permissions to perform the
|
5146
|
+
# `rekognition:TagResource` action.
|
5147
|
+
#
|
5052
5148
|
#
|
5053
5149
|
#
|
5054
5150
|
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
|
@@ -5081,6 +5177,9 @@ module Aws::Rekognition
|
|
5081
5177
|
# Removes one or more tags from an Amazon Rekognition collection, stream
|
5082
5178
|
# processor, or Custom Labels model.
|
5083
5179
|
#
|
5180
|
+
# This operation requires permissions to perform the
|
5181
|
+
# `rekognition:UntagResource` action.
|
5182
|
+
#
|
5084
5183
|
# @option params [required, String] :resource_arn
|
5085
5184
|
# Amazon Resource Name (ARN) of the model, collection, or stream
|
5086
5185
|
# processor that you want to remove the tags from.
|
@@ -5117,7 +5216,7 @@ module Aws::Rekognition
|
|
5117
5216
|
params: params,
|
5118
5217
|
config: config)
|
5119
5218
|
context[:gem_name] = 'aws-sdk-rekognition'
|
5120
|
-
context[:gem_version] = '1.
|
5219
|
+
context[:gem_version] = '1.54.0'
|
5121
5220
|
Seahorse::Client::Request.new(handlers, context)
|
5122
5221
|
end
|
5123
5222
|
|
@@ -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')
|
@@ -176,6 +177,7 @@ module Aws::Rekognition
|
|
176
177
|
KinesisDataStream = Shapes::StructureShape.new(name: 'KinesisDataStream')
|
177
178
|
KinesisVideoArn = Shapes::StringShape.new(name: 'KinesisVideoArn')
|
178
179
|
KinesisVideoStream = Shapes::StructureShape.new(name: 'KinesisVideoStream')
|
180
|
+
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
179
181
|
Label = Shapes::StructureShape.new(name: 'Label')
|
180
182
|
LabelDetection = Shapes::StructureShape.new(name: 'LabelDetection')
|
181
183
|
LabelDetectionSortBy = Shapes::StringShape.new(name: 'LabelDetectionSortBy')
|
@@ -195,7 +197,9 @@ module Aws::Rekognition
|
|
195
197
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
196
198
|
MaxFaces = Shapes::IntegerShape.new(name: 'MaxFaces')
|
197
199
|
MaxFacesToIndex = Shapes::IntegerShape.new(name: 'MaxFacesToIndex')
|
200
|
+
MaxPixelThreshold = Shapes::FloatShape.new(name: 'MaxPixelThreshold')
|
198
201
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
202
|
+
MinCoveragePercentage = Shapes::FloatShape.new(name: 'MinCoveragePercentage')
|
199
203
|
ModerationLabel = Shapes::StructureShape.new(name: 'ModerationLabel')
|
200
204
|
ModerationLabels = Shapes::ListShape.new(name: 'ModerationLabels')
|
201
205
|
MouthOpen = Shapes::StructureShape.new(name: 'MouthOpen')
|
@@ -344,6 +348,7 @@ module Aws::Rekognition
|
|
344
348
|
VersionName = Shapes::StringShape.new(name: 'VersionName')
|
345
349
|
VersionNames = Shapes::ListShape.new(name: 'VersionNames')
|
346
350
|
Video = Shapes::StructureShape.new(name: 'Video')
|
351
|
+
VideoColorRange = Shapes::StringShape.new(name: 'VideoColorRange')
|
347
352
|
VideoJobStatus = Shapes::StringShape.new(name: 'VideoJobStatus')
|
348
353
|
VideoMetadata = Shapes::StructureShape.new(name: 'VideoMetadata')
|
349
354
|
VideoMetadataList = Shapes::ListShape.new(name: 'VideoMetadataList')
|
@@ -374,6 +379,10 @@ module Aws::Rekognition
|
|
374
379
|
Beard.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
375
380
|
Beard.struct_class = Types::Beard
|
376
381
|
|
382
|
+
BlackFrame.add_member(:max_pixel_threshold, Shapes::ShapeRef.new(shape: MaxPixelThreshold, location_name: "MaxPixelThreshold"))
|
383
|
+
BlackFrame.add_member(:min_coverage_percentage, Shapes::ShapeRef.new(shape: MinCoveragePercentage, location_name: "MinCoveragePercentage"))
|
384
|
+
BlackFrame.struct_class = Types::BlackFrame
|
385
|
+
|
377
386
|
BodyParts.member = Shapes::ShapeRef.new(shape: ProtectiveEquipmentBodyPart)
|
378
387
|
|
379
388
|
BoundingBox.add_member(:width, Shapes::ShapeRef.new(shape: Float, location_name: "Width"))
|
@@ -474,6 +483,7 @@ module Aws::Rekognition
|
|
474
483
|
CreateProjectVersionRequest.add_member(:training_data, Shapes::ShapeRef.new(shape: TrainingData, required: true, location_name: "TrainingData"))
|
475
484
|
CreateProjectVersionRequest.add_member(:testing_data, Shapes::ShapeRef.new(shape: TestingData, required: true, location_name: "TestingData"))
|
476
485
|
CreateProjectVersionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
486
|
+
CreateProjectVersionRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
|
477
487
|
CreateProjectVersionRequest.struct_class = Types::CreateProjectVersionRequest
|
478
488
|
|
479
489
|
CreateProjectVersionResponse.add_member(:project_version_arn, Shapes::ShapeRef.new(shape: ProjectVersionArn, location_name: "ProjectVersionArn"))
|
@@ -1036,6 +1046,7 @@ module Aws::Rekognition
|
|
1036
1046
|
ProjectVersionDescription.add_member(:testing_data_result, Shapes::ShapeRef.new(shape: TestingDataResult, location_name: "TestingDataResult"))
|
1037
1047
|
ProjectVersionDescription.add_member(:evaluation_result, Shapes::ShapeRef.new(shape: EvaluationResult, location_name: "EvaluationResult"))
|
1038
1048
|
ProjectVersionDescription.add_member(:manifest_summary, Shapes::ShapeRef.new(shape: GroundTruthManifest, location_name: "ManifestSummary"))
|
1049
|
+
ProjectVersionDescription.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
|
1039
1050
|
ProjectVersionDescription.struct_class = Types::ProjectVersionDescription
|
1040
1051
|
|
1041
1052
|
ProjectVersionDescriptions.member = Shapes::ShapeRef.new(shape: ProjectVersionDescription)
|
@@ -1129,6 +1140,9 @@ module Aws::Rekognition
|
|
1129
1140
|
SegmentDetection.add_member(:duration_smpte, Shapes::ShapeRef.new(shape: Timecode, location_name: "DurationSMPTE"))
|
1130
1141
|
SegmentDetection.add_member(:technical_cue_segment, Shapes::ShapeRef.new(shape: TechnicalCueSegment, location_name: "TechnicalCueSegment"))
|
1131
1142
|
SegmentDetection.add_member(:shot_segment, Shapes::ShapeRef.new(shape: ShotSegment, location_name: "ShotSegment"))
|
1143
|
+
SegmentDetection.add_member(:start_frame_number, Shapes::ShapeRef.new(shape: ULong, location_name: "StartFrameNumber"))
|
1144
|
+
SegmentDetection.add_member(:end_frame_number, Shapes::ShapeRef.new(shape: ULong, location_name: "EndFrameNumber"))
|
1145
|
+
SegmentDetection.add_member(:duration_frames, Shapes::ShapeRef.new(shape: ULong, location_name: "DurationFrames"))
|
1132
1146
|
SegmentDetection.struct_class = Types::SegmentDetection
|
1133
1147
|
|
1134
1148
|
SegmentDetections.member = Shapes::ShapeRef.new(shape: SegmentDetection)
|
@@ -1241,6 +1255,7 @@ module Aws::Rekognition
|
|
1241
1255
|
StartStreamProcessorResponse.struct_class = Types::StartStreamProcessorResponse
|
1242
1256
|
|
1243
1257
|
StartTechnicalCueDetectionFilter.add_member(:min_segment_confidence, Shapes::ShapeRef.new(shape: SegmentConfidence, location_name: "MinSegmentConfidence"))
|
1258
|
+
StartTechnicalCueDetectionFilter.add_member(:black_frame, Shapes::ShapeRef.new(shape: BlackFrame, location_name: "BlackFrame"))
|
1244
1259
|
StartTechnicalCueDetectionFilter.struct_class = Types::StartTechnicalCueDetectionFilter
|
1245
1260
|
|
1246
1261
|
StartTextDetectionFilters.add_member(:word_filter, Shapes::ShapeRef.new(shape: DetectionFilter, location_name: "WordFilter"))
|
@@ -1368,6 +1383,7 @@ module Aws::Rekognition
|
|
1368
1383
|
VideoMetadata.add_member(:frame_rate, Shapes::ShapeRef.new(shape: Float, location_name: "FrameRate"))
|
1369
1384
|
VideoMetadata.add_member(:frame_height, Shapes::ShapeRef.new(shape: ULong, location_name: "FrameHeight"))
|
1370
1385
|
VideoMetadata.add_member(:frame_width, Shapes::ShapeRef.new(shape: ULong, location_name: "FrameWidth"))
|
1386
|
+
VideoMetadata.add_member(:color_range, Shapes::ShapeRef.new(shape: VideoColorRange, location_name: "ColorRange"))
|
1371
1387
|
VideoMetadata.struct_class = Types::VideoMetadata
|
1372
1388
|
|
1373
1389
|
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
|
@@ -483,15 +532,16 @@ module Aws::Rekognition
|
|
483
532
|
include Aws::Structure
|
484
533
|
end
|
485
534
|
|
486
|
-
# Information about an
|
535
|
+
# Information about an inappropriate, unwanted, or offensive content
|
536
|
+
# label detection in a stored video.
|
487
537
|
#
|
488
538
|
# @!attribute [rw] timestamp
|
489
539
|
# Time, in milliseconds from the beginning of the video, that the
|
490
|
-
#
|
540
|
+
# content moderation label was detected.
|
491
541
|
# @return [Integer]
|
492
542
|
#
|
493
543
|
# @!attribute [rw] moderation_label
|
494
|
-
# The
|
544
|
+
# The content moderation label detected by in the stored video.
|
495
545
|
# @return [Types::ModerationLabel]
|
496
546
|
#
|
497
547
|
class ContentModerationDetection < Struct.new(
|
@@ -636,6 +686,7 @@ module Aws::Rekognition
|
|
636
686
|
# tags: {
|
637
687
|
# "TagKey" => "TagValue",
|
638
688
|
# },
|
689
|
+
# kms_key_id: "KmsKeyId",
|
639
690
|
# }
|
640
691
|
#
|
641
692
|
# @!attribute [rw] project_arn
|
@@ -648,7 +699,9 @@ module Aws::Rekognition
|
|
648
699
|
# @return [String]
|
649
700
|
#
|
650
701
|
# @!attribute [rw] output_config
|
651
|
-
# The Amazon S3 location to store the results of training.
|
702
|
+
# The Amazon S3 bucket location to store the results of training. The
|
703
|
+
# S3 bucket can be in any AWS account as long as the caller has
|
704
|
+
# `s3:PutObject` permissions on the S3 bucket.
|
652
705
|
# @return [Types::OutputConfig]
|
653
706
|
#
|
654
707
|
# @!attribute [rw] training_data
|
@@ -664,13 +717,39 @@ module Aws::Rekognition
|
|
664
717
|
# model.
|
665
718
|
# @return [Hash<String,String>]
|
666
719
|
#
|
720
|
+
# @!attribute [rw] kms_key_id
|
721
|
+
# The identifier for your AWS Key Management Service (AWS KMS)
|
722
|
+
# customer master key (CMK). You can supply the Amazon Resource Name
|
723
|
+
# (ARN) of your CMK, the ID of your CMK, an alias for your CMK, or an
|
724
|
+
# alias ARN. The key is used to encrypt training and test images
|
725
|
+
# copied into the service for model training. Your source images are
|
726
|
+
# unaffected. The key is also used to encrypt training results and
|
727
|
+
# manifest files written to the output Amazon S3 bucket
|
728
|
+
# (`OutputConfig`).
|
729
|
+
#
|
730
|
+
# If you choose to use your own CMK, you need the following
|
731
|
+
# permissions on the CMK.
|
732
|
+
#
|
733
|
+
# * kms:CreateGrant
|
734
|
+
#
|
735
|
+
# * kms:DescribeKey
|
736
|
+
#
|
737
|
+
# * kms:GenerateDataKey
|
738
|
+
#
|
739
|
+
# * kms:Decrypt
|
740
|
+
#
|
741
|
+
# If you don't specify a value for `KmsKeyId`, images copied into the
|
742
|
+
# service are encrypted using a key that AWS owns and manages.
|
743
|
+
# @return [String]
|
744
|
+
#
|
667
745
|
class CreateProjectVersionRequest < Struct.new(
|
668
746
|
:project_arn,
|
669
747
|
:version_name,
|
670
748
|
:output_config,
|
671
749
|
:training_data,
|
672
750
|
:testing_data,
|
673
|
-
:tags
|
751
|
+
:tags,
|
752
|
+
:kms_key_id)
|
674
753
|
SENSITIVE = []
|
675
754
|
include Aws::Structure
|
676
755
|
end
|
@@ -2236,8 +2315,9 @@ module Aws::Rekognition
|
|
2236
2315
|
# }
|
2237
2316
|
#
|
2238
2317
|
# @!attribute [rw] job_id
|
2239
|
-
# The identifier for the
|
2240
|
-
# the job in a subsequent call
|
2318
|
+
# The identifier for the inappropriate, unwanted, or offensive content
|
2319
|
+
# moderation job. Use `JobId` to identify the job in a subsequent call
|
2320
|
+
# to `GetContentModeration`.
|
2241
2321
|
# @return [String]
|
2242
2322
|
#
|
2243
2323
|
# @!attribute [rw] max_results
|
@@ -2251,7 +2331,7 @@ module Aws::Rekognition
|
|
2251
2331
|
# If the previous response was incomplete (because there is more data
|
2252
2332
|
# to retrieve), Amazon Rekognition returns a pagination token in the
|
2253
2333
|
# response. You can use this pagination token to retrieve the next set
|
2254
|
-
# of
|
2334
|
+
# of content moderation labels.
|
2255
2335
|
# @return [String]
|
2256
2336
|
#
|
2257
2337
|
# @!attribute [rw] sort_by
|
@@ -2272,7 +2352,7 @@ module Aws::Rekognition
|
|
2272
2352
|
end
|
2273
2353
|
|
2274
2354
|
# @!attribute [rw] job_status
|
2275
|
-
# The current status of the
|
2355
|
+
# The current status of the content moderation analysis job.
|
2276
2356
|
# @return [String]
|
2277
2357
|
#
|
2278
2358
|
# @!attribute [rw] status_message
|
@@ -2287,19 +2367,19 @@ module Aws::Rekognition
|
|
2287
2367
|
# @return [Types::VideoMetadata]
|
2288
2368
|
#
|
2289
2369
|
# @!attribute [rw] moderation_labels
|
2290
|
-
# The detected
|
2291
|
-
# detected.
|
2370
|
+
# The detected inappropriate, unwanted, or offensive content
|
2371
|
+
# moderation labels and the time(s) they were detected.
|
2292
2372
|
# @return [Array<Types::ContentModerationDetection>]
|
2293
2373
|
#
|
2294
2374
|
# @!attribute [rw] next_token
|
2295
2375
|
# If the response is truncated, Amazon Rekognition Video returns this
|
2296
2376
|
# token that you can use in the subsequent request to retrieve the
|
2297
|
-
# next set of
|
2377
|
+
# next set of content moderation labels.
|
2298
2378
|
# @return [String]
|
2299
2379
|
#
|
2300
2380
|
# @!attribute [rw] moderation_model_version
|
2301
2381
|
# Version number of the moderation detection model that was used to
|
2302
|
-
# detect
|
2382
|
+
# detect inappropriate, unwanted, or offensive content.
|
2303
2383
|
# @return [String]
|
2304
2384
|
#
|
2305
2385
|
class GetContentModerationResponse < Struct.new(
|
@@ -3551,10 +3631,11 @@ module Aws::Rekognition
|
|
3551
3631
|
include Aws::Structure
|
3552
3632
|
end
|
3553
3633
|
|
3554
|
-
# Provides information about a single type of
|
3555
|
-
# image or video. Each type of
|
3556
|
-
# hierarchical taxonomy. For more
|
3557
|
-
# Content in the Amazon Rekognition
|
3634
|
+
# Provides information about a single type of inappropriate, unwanted,
|
3635
|
+
# or offensive content found in an image or video. Each type of
|
3636
|
+
# moderated content has a label within a hierarchical taxonomy. For more
|
3637
|
+
# information, see Content moderation in the Amazon Rekognition
|
3638
|
+
# Developer Guide.
|
3558
3639
|
#
|
3559
3640
|
# @!attribute [rw] confidence
|
3560
3641
|
# Specifies the confidence that Amazon Rekognition has that the label
|
@@ -3621,7 +3702,15 @@ module Aws::Rekognition
|
|
3621
3702
|
|
3622
3703
|
# The Amazon Simple Notification Service topic to which Amazon
|
3623
3704
|
# Rekognition publishes the completion status of a video analysis
|
3624
|
-
# operation. For more information, see api-video.
|
3705
|
+
# operation. For more information, see api-video. Note that the Amazon
|
3706
|
+
# SNS topic must have a topic name that begins with *AmazonRekognition*
|
3707
|
+
# if you are using the AmazonRekognitionServiceRole permissions policy
|
3708
|
+
# to access the topic. For more information, see [Giving access to
|
3709
|
+
# multiple Amazon SNS topics][1].
|
3710
|
+
#
|
3711
|
+
#
|
3712
|
+
#
|
3713
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html#api-video-roles-all-topics
|
3625
3714
|
#
|
3626
3715
|
# @note When making an API call, you may pass NotificationChannel
|
3627
3716
|
# data as a hash:
|
@@ -3889,6 +3978,11 @@ module Aws::Rekognition
|
|
3889
3978
|
# datasets.
|
3890
3979
|
# @return [Types::GroundTruthManifest]
|
3891
3980
|
#
|
3981
|
+
# @!attribute [rw] kms_key_id
|
3982
|
+
# The identifer for the AWS Key Management Service (AWS KMS) customer
|
3983
|
+
# master key that was used to encrypt the model during training.
|
3984
|
+
# @return [String]
|
3985
|
+
#
|
3892
3986
|
class ProjectVersionDescription < Struct.new(
|
3893
3987
|
:project_version_arn,
|
3894
3988
|
:creation_timestamp,
|
@@ -3901,7 +3995,8 @@ module Aws::Rekognition
|
|
3901
3995
|
:training_data_result,
|
3902
3996
|
:testing_data_result,
|
3903
3997
|
:evaluation_result,
|
3904
|
-
:manifest_summary
|
3998
|
+
:manifest_summary,
|
3999
|
+
:kms_key_id)
|
3905
4000
|
SENSITIVE = []
|
3906
4001
|
include Aws::Structure
|
3907
4002
|
end
|
@@ -4158,7 +4253,7 @@ module Aws::Rekognition
|
|
4158
4253
|
include Aws::Structure
|
4159
4254
|
end
|
4160
4255
|
|
4161
|
-
# A
|
4256
|
+
# A resource with the specified ID already exists.
|
4162
4257
|
#
|
4163
4258
|
class ResourceAlreadyExistsException < Aws::EmptyStructure; end
|
4164
4259
|
|
@@ -4166,7 +4261,7 @@ module Aws::Rekognition
|
|
4166
4261
|
#
|
4167
4262
|
class ResourceInUseException < Aws::EmptyStructure; end
|
4168
4263
|
|
4169
|
-
# The
|
4264
|
+
# The resource specified in the request cannot be found.
|
4170
4265
|
#
|
4171
4266
|
class ResourceNotFoundException < Aws::EmptyStructure; end
|
4172
4267
|
|
@@ -4426,6 +4521,20 @@ module Aws::Rekognition
|
|
4426
4521
|
# shot detection.
|
4427
4522
|
# @return [Types::ShotSegment]
|
4428
4523
|
#
|
4524
|
+
# @!attribute [rw] start_frame_number
|
4525
|
+
# The frame number of the start of a video segment, using a frame
|
4526
|
+
# index that starts with 0.
|
4527
|
+
# @return [Integer]
|
4528
|
+
#
|
4529
|
+
# @!attribute [rw] end_frame_number
|
4530
|
+
# The frame number at the end of a video segment, using a frame index
|
4531
|
+
# that starts with 0.
|
4532
|
+
# @return [Integer]
|
4533
|
+
#
|
4534
|
+
# @!attribute [rw] duration_frames
|
4535
|
+
# The duration of a video segment, expressed in frames.
|
4536
|
+
# @return [Integer]
|
4537
|
+
#
|
4429
4538
|
class SegmentDetection < Struct.new(
|
4430
4539
|
:type,
|
4431
4540
|
:start_timestamp_millis,
|
@@ -4435,7 +4544,10 @@ module Aws::Rekognition
|
|
4435
4544
|
:end_timecode_smpte,
|
4436
4545
|
:duration_smpte,
|
4437
4546
|
:technical_cue_segment,
|
4438
|
-
:shot_segment
|
4547
|
+
:shot_segment,
|
4548
|
+
:start_frame_number,
|
4549
|
+
:end_frame_number,
|
4550
|
+
:duration_frames)
|
4439
4551
|
SENSITIVE = []
|
4440
4552
|
include Aws::Structure
|
4441
4553
|
end
|
@@ -4459,8 +4571,8 @@ module Aws::Rekognition
|
|
4459
4571
|
include Aws::Structure
|
4460
4572
|
end
|
4461
4573
|
|
4462
|
-
# The size of the collection
|
4463
|
-
#
|
4574
|
+
# The size of the collection exceeds the allowed limit. For more
|
4575
|
+
# information, see Limits in Amazon Rekognition in the Amazon
|
4464
4576
|
# Rekognition Developer Guide.
|
4465
4577
|
#
|
4466
4578
|
class ServiceQuotaExceededException < Aws::EmptyStructure; end
|
@@ -4536,7 +4648,9 @@ module Aws::Rekognition
|
|
4536
4648
|
# @!attribute [rw] notification_channel
|
4537
4649
|
# The Amazon SNS topic ARN that you want Amazon Rekognition Video to
|
4538
4650
|
# publish the completion status of the celebrity recognition analysis
|
4539
|
-
# to.
|
4651
|
+
# to. The Amazon SNS topic must have a topic name that begins with
|
4652
|
+
# *AmazonRekognition* if you are using the
|
4653
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4540
4654
|
# @return [Types::NotificationChannel]
|
4541
4655
|
#
|
4542
4656
|
# @!attribute [rw] job_tag
|
@@ -4588,8 +4702,8 @@ module Aws::Rekognition
|
|
4588
4702
|
# }
|
4589
4703
|
#
|
4590
4704
|
# @!attribute [rw] video
|
4591
|
-
# The video in which you want to detect
|
4592
|
-
# be stored in an Amazon S3 bucket.
|
4705
|
+
# The video in which you want to detect inappropriate, unwanted, or
|
4706
|
+
# offensive content. The video must be stored in an Amazon S3 bucket.
|
4593
4707
|
# @return [Types::Video]
|
4594
4708
|
#
|
4595
4709
|
# @!attribute [rw] min_confidence
|
@@ -4612,7 +4726,10 @@ module Aws::Rekognition
|
|
4612
4726
|
#
|
4613
4727
|
# @!attribute [rw] notification_channel
|
4614
4728
|
# The Amazon SNS topic ARN that you want Amazon Rekognition Video to
|
4615
|
-
# publish the completion status of the
|
4729
|
+
# publish the completion status of the content analysis to. The Amazon
|
4730
|
+
# SNS topic must have a topic name that begins with
|
4731
|
+
# *AmazonRekognition* if you are using the
|
4732
|
+
# AmazonRekognitionServiceRole permissions policy to access the topic.
|
4616
4733
|
# @return [Types::NotificationChannel]
|
4617
4734
|
#
|
4618
4735
|
# @!attribute [rw] job_tag
|
@@ -4633,8 +4750,8 @@ module Aws::Rekognition
|
|
4633
4750
|
end
|
4634
4751
|
|
4635
4752
|
# @!attribute [rw] job_id
|
4636
|
-
# The identifier for the
|
4637
|
-
#
|
4753
|
+
# The identifier for the content analysis job. Use `JobId` to identify
|
4754
|
+
# the job in a subsequent call to `GetContentModeration`.
|
4638
4755
|
# @return [String]
|
4639
4756
|
#
|
4640
4757
|
class StartContentModerationResponse < Struct.new(
|
@@ -4678,7 +4795,9 @@ module Aws::Rekognition
|
|
4678
4795
|
# @!attribute [rw] notification_channel
|
4679
4796
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4680
4797
|
# Video to publish the completion status of the face detection
|
4681
|
-
# operation.
|
4798
|
+
# operation. The Amazon SNS topic must have a topic name that begins
|
4799
|
+
# with *AmazonRekognition* if you are using the
|
4800
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4682
4801
|
# @return [Types::NotificationChannel]
|
4683
4802
|
#
|
4684
4803
|
# @!attribute [rw] face_attributes
|
@@ -4763,7 +4882,10 @@ module Aws::Rekognition
|
|
4763
4882
|
#
|
4764
4883
|
# @!attribute [rw] notification_channel
|
4765
4884
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
4766
|
-
# Video to publish the completion status of the search.
|
4885
|
+
# Video to publish the completion status of the search. The Amazon SNS
|
4886
|
+
# topic must have a topic name that begins with *AmazonRekognition* if
|
4887
|
+
# you are using the AmazonRekognitionServiceRole permissions policy to
|
4888
|
+
# access the topic.
|
4767
4889
|
# @return [Types::NotificationChannel]
|
4768
4890
|
#
|
4769
4891
|
# @!attribute [rw] job_tag
|
@@ -4842,6 +4964,9 @@ module Aws::Rekognition
|
|
4842
4964
|
# @!attribute [rw] notification_channel
|
4843
4965
|
# The Amazon SNS topic ARN you want Amazon Rekognition Video to
|
4844
4966
|
# publish the completion status of the label detection operation to.
|
4967
|
+
# The Amazon SNS topic must have a topic name that begins with
|
4968
|
+
# *AmazonRekognition* if you are using the
|
4969
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4845
4970
|
# @return [Types::NotificationChannel]
|
4846
4971
|
#
|
4847
4972
|
# @!attribute [rw] job_tag
|
@@ -4906,6 +5031,9 @@ module Aws::Rekognition
|
|
4906
5031
|
# @!attribute [rw] notification_channel
|
4907
5032
|
# The Amazon SNS topic ARN you want Amazon Rekognition Video to
|
4908
5033
|
# publish the completion status of the people detection operation to.
|
5034
|
+
# The Amazon SNS topic must have a topic name that begins with
|
5035
|
+
# *AmazonRekognition* if you are using the
|
5036
|
+
# AmazonRekognitionServiceRole permissions policy.
|
4909
5037
|
# @return [Types::NotificationChannel]
|
4910
5038
|
#
|
4911
5039
|
# @!attribute [rw] job_tag
|
@@ -4982,6 +5110,10 @@ module Aws::Rekognition
|
|
4982
5110
|
# {
|
4983
5111
|
# technical_cue_filter: {
|
4984
5112
|
# min_segment_confidence: 1.0,
|
5113
|
+
# black_frame: {
|
5114
|
+
# max_pixel_threshold: 1.0,
|
5115
|
+
# min_coverage_percentage: 1.0,
|
5116
|
+
# },
|
4985
5117
|
# },
|
4986
5118
|
# shot_filter: {
|
4987
5119
|
# min_segment_confidence: 1.0,
|
@@ -5023,6 +5155,10 @@ module Aws::Rekognition
|
|
5023
5155
|
# filters: {
|
5024
5156
|
# technical_cue_filter: {
|
5025
5157
|
# min_segment_confidence: 1.0,
|
5158
|
+
# black_frame: {
|
5159
|
+
# max_pixel_threshold: 1.0,
|
5160
|
+
# min_coverage_percentage: 1.0,
|
5161
|
+
# },
|
5026
5162
|
# },
|
5027
5163
|
# shot_filter: {
|
5028
5164
|
# min_segment_confidence: 1.0,
|
@@ -5048,7 +5184,9 @@ module Aws::Rekognition
|
|
5048
5184
|
# @!attribute [rw] notification_channel
|
5049
5185
|
# The ARN of the Amazon SNS topic to which you want Amazon Rekognition
|
5050
5186
|
# Video to publish the completion status of the segment detection
|
5051
|
-
# operation.
|
5187
|
+
# operation. Note that the Amazon SNS topic must have a topic name
|
5188
|
+
# that begins with *AmazonRekognition* if you are using the
|
5189
|
+
# AmazonRekognitionServiceRole permissions policy to access the topic.
|
5052
5190
|
# @return [Types::NotificationChannel]
|
5053
5191
|
#
|
5054
5192
|
# @!attribute [rw] job_tag
|
@@ -5146,6 +5284,10 @@ module Aws::Rekognition
|
|
5146
5284
|
#
|
5147
5285
|
# {
|
5148
5286
|
# min_segment_confidence: 1.0,
|
5287
|
+
# black_frame: {
|
5288
|
+
# max_pixel_threshold: 1.0,
|
5289
|
+
# min_coverage_percentage: 1.0,
|
5290
|
+
# },
|
5149
5291
|
# }
|
5150
5292
|
#
|
5151
5293
|
# @!attribute [rw] min_segment_confidence
|
@@ -5161,8 +5303,17 @@ module Aws::Rekognition
|
|
5161
5303
|
# percent.
|
5162
5304
|
# @return [Float]
|
5163
5305
|
#
|
5306
|
+
# @!attribute [rw] black_frame
|
5307
|
+
# A filter that allows you to control the black frame detection by
|
5308
|
+
# specifying the black levels and pixel coverage of black pixels in a
|
5309
|
+
# frame. Videos can come from multiple sources, formats, and time
|
5310
|
+
# periods, with different standards and varying noise levels for black
|
5311
|
+
# frames that need to be accounted for.
|
5312
|
+
# @return [Types::BlackFrame]
|
5313
|
+
#
|
5164
5314
|
class StartTechnicalCueDetectionFilter < Struct.new(
|
5165
|
-
:min_segment_confidence
|
5315
|
+
:min_segment_confidence,
|
5316
|
+
:black_frame)
|
5166
5317
|
SENSITIVE = []
|
5167
5318
|
include Aws::Structure
|
5168
5319
|
end
|
@@ -5263,7 +5414,16 @@ module Aws::Rekognition
|
|
5263
5414
|
# @!attribute [rw] notification_channel
|
5264
5415
|
# The Amazon Simple Notification Service topic to which Amazon
|
5265
5416
|
# Rekognition publishes the completion status of a video analysis
|
5266
|
-
# operation. For more information, see api-video.
|
5417
|
+
# operation. For more information, see api-video. Note that the Amazon
|
5418
|
+
# SNS topic must have a topic name that begins with
|
5419
|
+
# *AmazonRekognition* if you are using the
|
5420
|
+
# AmazonRekognitionServiceRole permissions policy to access the topic.
|
5421
|
+
# For more information, see [Giving access to multiple Amazon SNS
|
5422
|
+
# topics][1].
|
5423
|
+
#
|
5424
|
+
#
|
5425
|
+
#
|
5426
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html#api-video-roles-all-topics
|
5267
5427
|
# @return [Types::NotificationChannel]
|
5268
5428
|
#
|
5269
5429
|
# @!attribute [rw] job_tag
|
@@ -5871,13 +6031,19 @@ module Aws::Rekognition
|
|
5871
6031
|
# Horizontal pixel dimension of the video.
|
5872
6032
|
# @return [Integer]
|
5873
6033
|
#
|
6034
|
+
# @!attribute [rw] color_range
|
6035
|
+
# A description of the range of luminance values in a video, either
|
6036
|
+
# LIMITED (16 to 235) or FULL (0 to 255).
|
6037
|
+
# @return [String]
|
6038
|
+
#
|
5874
6039
|
class VideoMetadata < Struct.new(
|
5875
6040
|
:codec,
|
5876
6041
|
:duration_millis,
|
5877
6042
|
:format,
|
5878
6043
|
:frame_rate,
|
5879
6044
|
:frame_height,
|
5880
|
-
:frame_width
|
6045
|
+
:frame_width,
|
6046
|
+
:color_range)
|
5881
6047
|
SENSITIVE = []
|
5882
6048
|
include Aws::Structure
|
5883
6049
|
end
|
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.54.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-08-09 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.119.0
|
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.119.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
|
88
|
-
rubygems_version: 2.7.6.2
|
87
|
+
rubygems_version: 3.1.6
|
89
88
|
signing_key:
|
90
89
|
specification_version: 4
|
91
90
|
summary: AWS SDK for Ruby - Amazon Rekognition
|