aws-sdk-rekognition 1.45.0 → 1.50.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -42,6 +42,7 @@ module Aws::Rekognition
42
42
  # * {ResourceInUseException}
43
43
  # * {ResourceNotFoundException}
44
44
  # * {ResourceNotReadyException}
45
+ # * {ServiceQuotaExceededException}
45
46
  # * {ThrottlingException}
46
47
  # * {VideoTooLargeException}
47
48
  #
@@ -216,6 +217,16 @@ module Aws::Rekognition
216
217
  end
217
218
  end
218
219
 
220
+ class ServiceQuotaExceededException < ServiceError
221
+
222
+ # @param [Seahorse::Client::RequestContext] context
223
+ # @param [String] message
224
+ # @param [Aws::Rekognition::Types::ServiceQuotaExceededException] data
225
+ def initialize(context, message, data = Aws::EmptyStructure.new)
226
+ super(context, message, data)
227
+ end
228
+ end
229
+
219
230
  class ThrottlingException < ServiceError
220
231
 
221
232
  # @param [Seahorse::Client::RequestContext] context
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -37,8 +37,8 @@ module Aws::Rekognition
37
37
  end
38
38
 
39
39
  # Assets are the images that you use to train and evaluate a model
40
- # version. Assets are referenced by Sagemaker GroundTruth manifest
41
- # files.
40
+ # version. Assets can also contain validation information that you use
41
+ # to debug a failed model training.
42
42
  #
43
43
  # @note When making an API call, you may pass Asset
44
44
  # data as a hash:
@@ -54,7 +54,8 @@ module Aws::Rekognition
54
54
  # }
55
55
  #
56
56
  # @!attribute [rw] ground_truth_manifest
57
- # The S3 bucket that contains the Ground Truth manifest file.
57
+ # The S3 bucket that contains an Amazon Sagemaker Ground Truth format
58
+ # manifest file.
58
59
  # @return [Types::GroundTruthManifest]
59
60
  #
60
61
  class Asset < Struct.new(
@@ -80,7 +81,7 @@ module Aws::Rekognition
80
81
  # @return [Integer]
81
82
  #
82
83
  # @!attribute [rw] number_of_channels
83
- # The number of audio channels in the segement.
84
+ # The number of audio channels in the segment.
84
85
  # @return [Integer]
85
86
  #
86
87
  class AudioMetadata < Struct.new(
@@ -110,10 +111,11 @@ module Aws::Rekognition
110
111
  include Aws::Structure
111
112
  end
112
113
 
113
- # Identifies the bounding box around the label, face, or text. The
114
- # `left` (x-coordinate) and `top` (y-coordinate) are coordinates
115
- # representing the top and left sides of the bounding box. Note that the
116
- # upper-left corner of the image is the origin (0,0).
114
+ # Identifies the bounding box around the label, face, text or personal
115
+ # protective equipment. The `left` (x-coordinate) and `top`
116
+ # (y-coordinate) are coordinates representing the top and left sides of
117
+ # the bounding box. Note that the upper-left corner of the image is the
118
+ # origin (0,0).
117
119
  #
118
120
  # The `top` and `left` values returned are ratios of the overall image
119
121
  # size. For example, if the input image is 700x200 pixels, and the
@@ -499,19 +501,47 @@ module Aws::Rekognition
499
501
  include Aws::Structure
500
502
  end
501
503
 
504
+ # Information about an item of Personal Protective Equipment covering a
505
+ # corresponding body part. For more information, see
506
+ # DetectProtectiveEquipment.
507
+ #
508
+ # @!attribute [rw] confidence
509
+ # The confidence that Amazon Rekognition has in the value of `Value`.
510
+ # @return [Float]
511
+ #
512
+ # @!attribute [rw] value
513
+ # True if the PPE covers the corresponding body part, otherwise false.
514
+ # @return [Boolean]
515
+ #
516
+ class CoversBodyPart < Struct.new(
517
+ :confidence,
518
+ :value)
519
+ SENSITIVE = []
520
+ include Aws::Structure
521
+ end
522
+
502
523
  # @note When making an API call, you may pass CreateCollectionRequest
503
524
  # data as a hash:
504
525
  #
505
526
  # {
506
527
  # collection_id: "CollectionId", # required
528
+ # tags: {
529
+ # "TagKey" => "TagValue",
530
+ # },
507
531
  # }
508
532
  #
509
533
  # @!attribute [rw] collection_id
510
534
  # ID for the collection that you are creating.
511
535
  # @return [String]
512
536
  #
537
+ # @!attribute [rw] tags
538
+ # A set of tags (key-value pairs) that you want to attach to the
539
+ # collection.
540
+ # @return [Hash<String,String>]
541
+ #
513
542
  class CreateCollectionRequest < Struct.new(
514
- :collection_id)
543
+ :collection_id,
544
+ :tags)
515
545
  SENSITIVE = []
516
546
  include Aws::Structure
517
547
  end
@@ -603,6 +633,9 @@ module Aws::Rekognition
603
633
  # ],
604
634
  # auto_create: false,
605
635
  # },
636
+ # tags: {
637
+ # "TagKey" => "TagValue",
638
+ # },
606
639
  # }
607
640
  #
608
641
  # @!attribute [rw] project_arn
@@ -626,12 +659,18 @@ module Aws::Rekognition
626
659
  # The dataset to use for testing.
627
660
  # @return [Types::TestingData]
628
661
  #
662
+ # @!attribute [rw] tags
663
+ # A set of tags (key-value pairs) that you want to attach to the
664
+ # model.
665
+ # @return [Hash<String,String>]
666
+ #
629
667
  class CreateProjectVersionRequest < Struct.new(
630
668
  :project_arn,
631
669
  :version_name,
632
670
  :output_config,
633
671
  :training_data,
634
- :testing_data)
672
+ :testing_data,
673
+ :tags)
635
674
  SENSITIVE = []
636
675
  include Aws::Structure
637
676
  end
@@ -670,6 +709,9 @@ module Aws::Rekognition
670
709
  # },
671
710
  # },
672
711
  # role_arn: "RoleArn", # required
712
+ # tags: {
713
+ # "TagKey" => "TagValue",
714
+ # },
673
715
  # }
674
716
  #
675
717
  # @!attribute [rw] input
@@ -701,12 +743,18 @@ module Aws::Rekognition
701
743
  # ARN of the IAM role that allows access to the stream processor.
702
744
  # @return [String]
703
745
  #
746
+ # @!attribute [rw] tags
747
+ # A set of tags (key-value pairs) that you want to attach to the
748
+ # stream processor.
749
+ # @return [Hash<String,String>]
750
+ #
704
751
  class CreateStreamProcessorRequest < Struct.new(
705
752
  :input,
706
753
  :output,
707
754
  :name,
708
755
  :settings,
709
- :role_arn)
756
+ :role_arn,
757
+ :tags)
710
758
  SENSITIVE = []
711
759
  include Aws::Structure
712
760
  end
@@ -1445,6 +1493,64 @@ module Aws::Rekognition
1445
1493
  include Aws::Structure
1446
1494
  end
1447
1495
 
1496
+ # @note When making an API call, you may pass DetectProtectiveEquipmentRequest
1497
+ # data as a hash:
1498
+ #
1499
+ # {
1500
+ # image: { # required
1501
+ # bytes: "data",
1502
+ # s3_object: {
1503
+ # bucket: "S3Bucket",
1504
+ # name: "S3ObjectName",
1505
+ # version: "S3ObjectVersion",
1506
+ # },
1507
+ # },
1508
+ # summarization_attributes: {
1509
+ # min_confidence: 1.0, # required
1510
+ # required_equipment_types: ["FACE_COVER"], # required, accepts FACE_COVER, HAND_COVER, HEAD_COVER
1511
+ # },
1512
+ # }
1513
+ #
1514
+ # @!attribute [rw] image
1515
+ # The image in which you want to detect PPE on detected persons. The
1516
+ # image can be passed as image bytes or you can reference an image
1517
+ # stored in an Amazon S3 bucket.
1518
+ # @return [Types::Image]
1519
+ #
1520
+ # @!attribute [rw] summarization_attributes
1521
+ # An array of PPE types that you want to summarize.
1522
+ # @return [Types::ProtectiveEquipmentSummarizationAttributes]
1523
+ #
1524
+ class DetectProtectiveEquipmentRequest < Struct.new(
1525
+ :image,
1526
+ :summarization_attributes)
1527
+ SENSITIVE = []
1528
+ include Aws::Structure
1529
+ end
1530
+
1531
+ # @!attribute [rw] protective_equipment_model_version
1532
+ # The version number of the PPE detection model used to detect PPE in
1533
+ # the image.
1534
+ # @return [String]
1535
+ #
1536
+ # @!attribute [rw] persons
1537
+ # An array of persons detected in the image (including persons not
1538
+ # wearing PPE).
1539
+ # @return [Array<Types::ProtectiveEquipmentPerson>]
1540
+ #
1541
+ # @!attribute [rw] summary
1542
+ # Summary information for the types of PPE specified in the
1543
+ # `SummarizationAttributes` input parameter.
1544
+ # @return [Types::ProtectiveEquipmentSummary]
1545
+ #
1546
+ class DetectProtectiveEquipmentResponse < Struct.new(
1547
+ :protective_equipment_model_version,
1548
+ :persons,
1549
+ :summary)
1550
+ SENSITIVE = []
1551
+ include Aws::Structure
1552
+ end
1553
+
1448
1554
  # A set of optional parameters that you can use to set the criteria that
1449
1555
  # the text must meet to be included in your response. `WordFilter` looks
1450
1556
  # at a word’s height, width, and minimum confidence. `RegionOfInterest`
@@ -1570,10 +1676,10 @@ module Aws::Rekognition
1570
1676
  # }
1571
1677
  #
1572
1678
  # @!attribute [rw] min_confidence
1573
- # Sets confidence of word detection. Words with detection confidence
1574
- # below this will be excluded from the result. Values should be
1575
- # between 0.5 and 1 as Text in Video will not return any result below
1576
- # 0.5.
1679
+ # Sets the confidence of word detection. Words with detection
1680
+ # confidence below this will be excluded from the result. Values
1681
+ # should be between 50 and 100 as Text in Video will not return any
1682
+ # result below 50.
1577
1683
  # @return [Float]
1578
1684
  #
1579
1685
  # @!attribute [rw] min_bounding_box_height
@@ -1618,6 +1724,36 @@ module Aws::Rekognition
1618
1724
  include Aws::Structure
1619
1725
  end
1620
1726
 
1727
+ # Information about an item of Personal Protective Equipment (PPE)
1728
+ # detected by DetectProtectiveEquipment. For more information, see
1729
+ # DetectProtectiveEquipment.
1730
+ #
1731
+ # @!attribute [rw] bounding_box
1732
+ # A bounding box surrounding the item of detected PPE.
1733
+ # @return [Types::BoundingBox]
1734
+ #
1735
+ # @!attribute [rw] confidence
1736
+ # The confidence that Amazon Rekognition has that the bounding box
1737
+ # (`BoundingBox`) contains an item of PPE.
1738
+ # @return [Float]
1739
+ #
1740
+ # @!attribute [rw] type
1741
+ # The type of detected PPE.
1742
+ # @return [String]
1743
+ #
1744
+ # @!attribute [rw] covers_body_part
1745
+ # Information about the body part covered by the detected PPE.
1746
+ # @return [Types::CoversBodyPart]
1747
+ #
1748
+ class EquipmentDetection < Struct.new(
1749
+ :bounding_box,
1750
+ :confidence,
1751
+ :type,
1752
+ :covers_body_part)
1753
+ SENSITIVE = []
1754
+ include Aws::Structure
1755
+ end
1756
+
1621
1757
  # The evaluation results for the training of a model.
1622
1758
  #
1623
1759
  # @!attribute [rw] f1_score
@@ -2578,7 +2714,10 @@ module Aws::Rekognition
2578
2714
  # @return [String]
2579
2715
  #
2580
2716
  # @!attribute [rw] segments
2581
- # An array of segments detected in a video.
2717
+ # An array of segments detected in a video. The array is sorted by the
2718
+ # segment types (TECHNICAL\_CUE or SHOT) specified in the
2719
+ # `SegmentTypes` input parameter of `StartSegmentDetection`. Within
2720
+ # each segment type the array is sorted by timestamp values.
2582
2721
  # @return [Array<Types::SegmentDetection>]
2583
2722
  #
2584
2723
  # @!attribute [rw] selected_segment_types
@@ -2676,7 +2815,8 @@ module Aws::Rekognition
2676
2815
  include Aws::Structure
2677
2816
  end
2678
2817
 
2679
- # The S3 bucket that contains the Ground Truth manifest file.
2818
+ # The S3 bucket that contains an Amazon Sagemaker Ground Truth format
2819
+ # manifest file.
2680
2820
  #
2681
2821
  # @note When making an API call, you may pass GroundTruthManifest
2682
2822
  # data as a hash:
@@ -2898,9 +3038,10 @@ module Aws::Rekognition
2898
3038
  include Aws::Structure
2899
3039
  end
2900
3040
 
2901
- # The input image size exceeds the allowed limit. For more information,
2902
- # see Limits in Amazon Rekognition in the Amazon Rekognition Developer
2903
- # Guide.
3041
+ # The input image size exceeds the allowed limit. If you are calling
3042
+ # DetectProtectiveEquipment, the image size or resolution exceeds the
3043
+ # allowed limit. For more information, see Limits in Amazon Rekognition
3044
+ # in the Amazon Rekognition Developer Guide.
2904
3045
  #
2905
3046
  class ImageTooLargeException < Aws::EmptyStructure; end
2906
3047
 
@@ -3205,17 +3346,17 @@ module Aws::Rekognition
3205
3346
  # @return [String]
3206
3347
  #
3207
3348
  # @!attribute [rw] x
3208
- # The x-coordinate from the top left of the landmark expressed as the
3209
- # ratio of the width of the image. For example, if the image is 700 x
3210
- # 200 and the x-coordinate of the landmark is at 350 pixels, this
3211
- # value is 0.5.
3349
+ # The x-coordinate of the landmark expressed as a ratio of the width
3350
+ # of the image. The x-coordinate is measured from the left-side of the
3351
+ # image. For example, if the image is 700 pixels wide and the
3352
+ # x-coordinate of the landmark is at 350 pixels, this value is 0.5.
3212
3353
  # @return [Float]
3213
3354
  #
3214
3355
  # @!attribute [rw] y
3215
- # The y-coordinate from the top left of the landmark expressed as the
3216
- # ratio of the height of the image. For example, if the image is 700 x
3217
- # 200 and the y-coordinate of the landmark is at 100 pixels, this
3218
- # value is 0.5.
3356
+ # The y-coordinate of the landmark expressed as a ratio of the height
3357
+ # of the image. The y-coordinate is measured from the top of the
3358
+ # image. For example, if the image height is 200 pixels and the
3359
+ # y-coordinate of the landmark is at 50 pixels, this value is 0.25.
3219
3360
  # @return [Float]
3220
3361
  #
3221
3362
  class Landmark < Struct.new(
@@ -3382,6 +3523,34 @@ module Aws::Rekognition
3382
3523
  include Aws::Structure
3383
3524
  end
3384
3525
 
3526
+ # @note When making an API call, you may pass ListTagsForResourceRequest
3527
+ # data as a hash:
3528
+ #
3529
+ # {
3530
+ # resource_arn: "ResourceArn", # required
3531
+ # }
3532
+ #
3533
+ # @!attribute [rw] resource_arn
3534
+ # Amazon Resource Name (ARN) of the model, collection, or stream
3535
+ # processor that contains the tags that you want a list of.
3536
+ # @return [String]
3537
+ #
3538
+ class ListTagsForResourceRequest < Struct.new(
3539
+ :resource_arn)
3540
+ SENSITIVE = []
3541
+ include Aws::Structure
3542
+ end
3543
+
3544
+ # @!attribute [rw] tags
3545
+ # A list of key-value tags assigned to the resource.
3546
+ # @return [Hash<String,String>]
3547
+ #
3548
+ class ListTagsForResourceResponse < Struct.new(
3549
+ :tags)
3550
+ SENSITIVE = []
3551
+ include Aws::Structure
3552
+ end
3553
+
3385
3554
  # Provides information about a single type of unsafe content found in an
3386
3555
  # image or video. Each type of moderated content has a label within a
3387
3556
  # hierarchical taxonomy. For more information, see Detecting Unsafe
@@ -3702,11 +3871,11 @@ module Aws::Rekognition
3702
3871
  # @return [Types::OutputConfig]
3703
3872
  #
3704
3873
  # @!attribute [rw] training_data_result
3705
- # The manifest file that represents the training results.
3874
+ # Contains information about the training results.
3706
3875
  # @return [Types::TrainingDataResult]
3707
3876
  #
3708
3877
  # @!attribute [rw] testing_data_result
3709
- # The manifest file that represents the testing results.
3878
+ # Contains information about the testing results.
3710
3879
  # @return [Types::TestingDataResult]
3711
3880
  #
3712
3881
  # @!attribute [rw] evaluation_result
@@ -3714,6 +3883,12 @@ module Aws::Rekognition
3714
3883
  # training is successful.
3715
3884
  # @return [Types::EvaluationResult]
3716
3885
  #
3886
+ # @!attribute [rw] manifest_summary
3887
+ # The location of the summary manifest. The summary manifest provides
3888
+ # aggregate data validation results for the training and test
3889
+ # datasets.
3890
+ # @return [Types::GroundTruthManifest]
3891
+ #
3717
3892
  class ProjectVersionDescription < Struct.new(
3718
3893
  :project_version_arn,
3719
3894
  :creation_timestamp,
@@ -3725,7 +3900,158 @@ module Aws::Rekognition
3725
3900
  :output_config,
3726
3901
  :training_data_result,
3727
3902
  :testing_data_result,
3728
- :evaluation_result)
3903
+ :evaluation_result,
3904
+ :manifest_summary)
3905
+ SENSITIVE = []
3906
+ include Aws::Structure
3907
+ end
3908
+
3909
+ # Information about a body part detected by DetectProtectiveEquipment
3910
+ # that contains PPE. An array of `ProtectiveEquipmentBodyPart` objects
3911
+ # is returned for each person detected by `DetectProtectiveEquipment`.
3912
+ #
3913
+ # @!attribute [rw] name
3914
+ # The detected body part.
3915
+ # @return [String]
3916
+ #
3917
+ # @!attribute [rw] confidence
3918
+ # The confidence that Amazon Rekognition has in the detection accuracy
3919
+ # of the detected body part.
3920
+ # @return [Float]
3921
+ #
3922
+ # @!attribute [rw] equipment_detections
3923
+ # An array of Personal Protective Equipment items detected around a
3924
+ # body part.
3925
+ # @return [Array<Types::EquipmentDetection>]
3926
+ #
3927
+ class ProtectiveEquipmentBodyPart < Struct.new(
3928
+ :name,
3929
+ :confidence,
3930
+ :equipment_detections)
3931
+ SENSITIVE = []
3932
+ include Aws::Structure
3933
+ end
3934
+
3935
+ # A person detected by a call to DetectProtectiveEquipment. The API
3936
+ # returns all persons detected in the input image in an array of
3937
+ # `ProtectiveEquipmentPerson` objects.
3938
+ #
3939
+ # @!attribute [rw] body_parts
3940
+ # An array of body parts detected on a person's body (including body
3941
+ # parts without PPE).
3942
+ # @return [Array<Types::ProtectiveEquipmentBodyPart>]
3943
+ #
3944
+ # @!attribute [rw] bounding_box
3945
+ # A bounding box around the detected person.
3946
+ # @return [Types::BoundingBox]
3947
+ #
3948
+ # @!attribute [rw] confidence
3949
+ # The confidence that Amazon Rekognition has that the bounding box
3950
+ # contains a person.
3951
+ # @return [Float]
3952
+ #
3953
+ # @!attribute [rw] id
3954
+ # The identifier for the detected person. The identifier is only
3955
+ # unique for a single call to `DetectProtectiveEquipment`.
3956
+ # @return [Integer]
3957
+ #
3958
+ class ProtectiveEquipmentPerson < Struct.new(
3959
+ :body_parts,
3960
+ :bounding_box,
3961
+ :confidence,
3962
+ :id)
3963
+ SENSITIVE = []
3964
+ include Aws::Structure
3965
+ end
3966
+
3967
+ # Specifies summary attributes to return from a call to
3968
+ # DetectProtectiveEquipment. You can specify which types of PPE to
3969
+ # summarize. You can also specify a minimum confidence value for
3970
+ # detections. Summary information is returned in the `Summary`
3971
+ # (ProtectiveEquipmentSummary) field of the response from
3972
+ # `DetectProtectiveEquipment`. The summary includes which persons in an
3973
+ # image were detected wearing the requested types of person protective
3974
+ # equipment (PPE), which persons were detected as not wearing PPE, and
3975
+ # the persons in which a determination could not be made. For more
3976
+ # information, see ProtectiveEquipmentSummary.
3977
+ #
3978
+ # @note When making an API call, you may pass ProtectiveEquipmentSummarizationAttributes
3979
+ # data as a hash:
3980
+ #
3981
+ # {
3982
+ # min_confidence: 1.0, # required
3983
+ # required_equipment_types: ["FACE_COVER"], # required, accepts FACE_COVER, HAND_COVER, HEAD_COVER
3984
+ # }
3985
+ #
3986
+ # @!attribute [rw] min_confidence
3987
+ # The minimum confidence level for which you want summary information.
3988
+ # The confidence level applies to person detection, body part
3989
+ # detection, equipment detection, and body part coverage. Amazon
3990
+ # Rekognition doesn't return summary information with a confidence
3991
+ # than this specified value. There isn't a default value.
3992
+ #
3993
+ # Specify a `MinConfidence` value that is between 50-100% as
3994
+ # `DetectProtectiveEquipment` returns predictions only where the
3995
+ # detection confidence is between 50% - 100%. If you specify a value
3996
+ # that is less than 50%, the results are the same specifying a value
3997
+ # of 50%.
3998
+ # @return [Float]
3999
+ #
4000
+ # @!attribute [rw] required_equipment_types
4001
+ # An array of personal protective equipment types for which you want
4002
+ # summary information. If a person is detected wearing a required
4003
+ # requipment type, the person's ID is added to the
4004
+ # `PersonsWithRequiredEquipment` array field returned in
4005
+ # ProtectiveEquipmentSummary by `DetectProtectiveEquipment`.
4006
+ # @return [Array<String>]
4007
+ #
4008
+ class ProtectiveEquipmentSummarizationAttributes < Struct.new(
4009
+ :min_confidence,
4010
+ :required_equipment_types)
4011
+ SENSITIVE = []
4012
+ include Aws::Structure
4013
+ end
4014
+
4015
+ # Summary information for required items of personal protective
4016
+ # equipment (PPE) detected on persons by a call to
4017
+ # DetectProtectiveEquipment. You specify the required type of PPE in the
4018
+ # `SummarizationAttributes` (ProtectiveEquipmentSummarizationAttributes)
4019
+ # input parameter. The summary includes which persons were detected
4020
+ # wearing the required personal protective equipment
4021
+ # (`PersonsWithRequiredEquipment`), which persons were detected as not
4022
+ # wearing the required PPE (`PersonsWithoutRequiredEquipment`), and the
4023
+ # persons in which a determination could not be made
4024
+ # (`PersonsIndeterminate`).
4025
+ #
4026
+ # To get a total for each category, use the size of the field array. For
4027
+ # example, to find out how many people were detected as wearing the
4028
+ # specified PPE, use the size of the `PersonsWithRequiredEquipment`
4029
+ # array. If you want to find out more about a person, such as the
4030
+ # location (BoundingBox) of the person on the image, use the person ID
4031
+ # in each array element. Each person ID matches the ID field of a
4032
+ # ProtectiveEquipmentPerson object returned in the `Persons` array by
4033
+ # `DetectProtectiveEquipment`.
4034
+ #
4035
+ # @!attribute [rw] persons_with_required_equipment
4036
+ # An array of IDs for persons who are wearing detected personal
4037
+ # protective equipment.
4038
+ # @return [Array<Integer>]
4039
+ #
4040
+ # @!attribute [rw] persons_without_required_equipment
4041
+ # An array of IDs for persons who are not wearing all of the types of
4042
+ # PPE specified in the `RequiredEquipmentTypes` field of the detected
4043
+ # personal protective equipment.
4044
+ # @return [Array<Integer>]
4045
+ #
4046
+ # @!attribute [rw] persons_indeterminate
4047
+ # An array of IDs for persons where it was not possible to determine
4048
+ # if they are wearing personal protective equipment.
4049
+ # @return [Array<Integer>]
4050
+ #
4051
+ class ProtectiveEquipmentSummary < Struct.new(
4052
+ :persons_with_required_equipment,
4053
+ :persons_without_required_equipment,
4054
+ :persons_indeterminate)
3729
4055
  SENSITIVE = []
3730
4056
  include Aws::Structure
3731
4057
  end
@@ -3768,7 +4094,7 @@ module Aws::Rekognition
3768
4094
 
3769
4095
  # @!attribute [rw] celebrity_faces
3770
4096
  # Details about each celebrity found in the image. Amazon Rekognition
3771
- # can detect a maximum of 15 celebrities in an image.
4097
+ # can detect a maximum of 64 celebrities in an image.
3772
4098
  # @return [Array<Types::Celebrity>]
3773
4099
  #
3774
4100
  # @!attribute [rw] unrecognized_faces
@@ -4059,12 +4385,14 @@ module Aws::Rekognition
4059
4385
  #
4060
4386
  # @!attribute [rw] start_timestamp_millis
4061
4387
  # The start time of the detected segment in milliseconds from the
4062
- # start of the video.
4388
+ # start of the video. This value is rounded down. For example, if the
4389
+ # actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video
4390
+ # returns a value of 100 millis.
4063
4391
  # @return [Integer]
4064
4392
  #
4065
4393
  # @!attribute [rw] end_timestamp_millis
4066
4394
  # The end time of the detected segment, in milliseconds, from the
4067
- # start of the video.
4395
+ # start of the video. This value is rounded down.
4068
4396
  # @return [Integer]
4069
4397
  #
4070
4398
  # @!attribute [rw] duration_millis
@@ -4131,11 +4459,17 @@ module Aws::Rekognition
4131
4459
  include Aws::Structure
4132
4460
  end
4133
4461
 
4462
+ # The size of the collection or tag list exceeds the allowed limit. For
4463
+ # more information, see Limits in Amazon Rekognition in the Amazon
4464
+ # Rekognition Developer Guide.
4465
+ #
4466
+ class ServiceQuotaExceededException < Aws::EmptyStructure; end
4467
+
4134
4468
  # Information about a shot detection segment detected in a video. For
4135
4469
  # more information, see SegmentDetection.
4136
4470
  #
4137
4471
  # @!attribute [rw] index
4138
- # An Identifier for a shot detection segment detected in a video
4472
+ # An Identifier for a shot detection segment detected in a video.
4139
4473
  # @return [Integer]
4140
4474
  #
4141
4475
  # @!attribute [rw] confidence
@@ -5150,6 +5484,34 @@ module Aws::Rekognition
5150
5484
  include Aws::Structure
5151
5485
  end
5152
5486
 
5487
+ # @note When making an API call, you may pass TagResourceRequest
5488
+ # data as a hash:
5489
+ #
5490
+ # {
5491
+ # resource_arn: "ResourceArn", # required
5492
+ # tags: { # required
5493
+ # "TagKey" => "TagValue",
5494
+ # },
5495
+ # }
5496
+ #
5497
+ # @!attribute [rw] resource_arn
5498
+ # Amazon Resource Name (ARN) of the model, collection, or stream
5499
+ # processor that you want to assign the tags to.
5500
+ # @return [String]
5501
+ #
5502
+ # @!attribute [rw] tags
5503
+ # The key-value tags to assign to the resource.
5504
+ # @return [Hash<String,String>]
5505
+ #
5506
+ class TagResourceRequest < Struct.new(
5507
+ :resource_arn,
5508
+ :tags)
5509
+ SENSITIVE = []
5510
+ include Aws::Structure
5511
+ end
5512
+
5513
+ class TagResourceResponse < Aws::EmptyStructure; end
5514
+
5153
5515
  # Information about a technical cue segment. For more information, see
5154
5516
  # SegmentDetection.
5155
5517
  #
@@ -5207,8 +5569,8 @@ module Aws::Rekognition
5207
5569
  include Aws::Structure
5208
5570
  end
5209
5571
 
5210
- # A Sagemaker Groundtruth format manifest file representing the dataset
5211
- # used for testing.
5572
+ # Sagemaker Groundtruth format manifest files for the input, output and
5573
+ # validation datasets that are used and created during testing.
5212
5574
  #
5213
5575
  # @!attribute [rw] input
5214
5576
  # The testing dataset that was supplied for training.
@@ -5220,9 +5582,15 @@ module Aws::Rekognition
5220
5582
  # issues.
5221
5583
  # @return [Types::TestingData]
5222
5584
  #
5585
+ # @!attribute [rw] validation
5586
+ # The location of the data validation manifest. The data validation
5587
+ # manifest is created for the test dataset during model training.
5588
+ # @return [Types::ValidationData]
5589
+ #
5223
5590
  class TestingDataResult < Struct.new(
5224
5591
  :input,
5225
- :output)
5592
+ :output,
5593
+ :validation)
5226
5594
  SENSITIVE = []
5227
5595
  include Aws::Structure
5228
5596
  end
@@ -5337,8 +5705,8 @@ module Aws::Rekognition
5337
5705
  include Aws::Structure
5338
5706
  end
5339
5707
 
5340
- # A Sagemaker Groundtruth format manifest file that represents the
5341
- # dataset used for training.
5708
+ # Sagemaker Groundtruth format manifest files for the input, output and
5709
+ # validation datasets that are used and created during testing.
5342
5710
  #
5343
5711
  # @!attribute [rw] input
5344
5712
  # The training assets that you supplied for training.
@@ -5349,9 +5717,15 @@ module Aws::Rekognition
5349
5717
  # Custom Labels.
5350
5718
  # @return [Types::TrainingData]
5351
5719
  #
5720
+ # @!attribute [rw] validation
5721
+ # The location of the data validation manifest. The data validation
5722
+ # manifest is created for the training dataset during model training.
5723
+ # @return [Types::ValidationData]
5724
+ #
5352
5725
  class TrainingDataResult < Struct.new(
5353
5726
  :input,
5354
- :output)
5727
+ :output,
5728
+ :validation)
5355
5729
  SENSITIVE = []
5356
5730
  include Aws::Structure
5357
5731
  end
@@ -5391,6 +5765,58 @@ module Aws::Rekognition
5391
5765
  include Aws::Structure
5392
5766
  end
5393
5767
 
5768
+ # @note When making an API call, you may pass UntagResourceRequest
5769
+ # data as a hash:
5770
+ #
5771
+ # {
5772
+ # resource_arn: "ResourceArn", # required
5773
+ # tag_keys: ["TagKey"], # required
5774
+ # }
5775
+ #
5776
+ # @!attribute [rw] resource_arn
5777
+ # Amazon Resource Name (ARN) of the model, collection, or stream
5778
+ # processor that you want to remove the tags from.
5779
+ # @return [String]
5780
+ #
5781
+ # @!attribute [rw] tag_keys
5782
+ # A list of the tags that you want to remove.
5783
+ # @return [Array<String>]
5784
+ #
5785
+ class UntagResourceRequest < Struct.new(
5786
+ :resource_arn,
5787
+ :tag_keys)
5788
+ SENSITIVE = []
5789
+ include Aws::Structure
5790
+ end
5791
+
5792
+ class UntagResourceResponse < Aws::EmptyStructure; end
5793
+
5794
+ # Contains the Amazon S3 bucket location of the validation data for a
5795
+ # model training job.
5796
+ #
5797
+ # The validation data includes error information for individual JSON
5798
+ # lines in the dataset. For more information, see Debugging a Failed
5799
+ # Model Training in the Amazon Rekognition Custom Labels Developer
5800
+ # Guide.
5801
+ #
5802
+ # You get the `ValidationData` object for the training dataset
5803
+ # (TrainingDataResult) and the test dataset (TestingDataResult) by
5804
+ # calling DescribeProjectVersions.
5805
+ #
5806
+ # The assets array contains a single Asset object. The
5807
+ # GroundTruthManifest field of the Asset object contains the S3 bucket
5808
+ # location of the validation data.
5809
+ #
5810
+ # @!attribute [rw] assets
5811
+ # The assets that comprise the validation data.
5812
+ # @return [Array<Types::Asset>]
5813
+ #
5814
+ class ValidationData < Struct.new(
5815
+ :assets)
5816
+ SENSITIVE = []
5817
+ include Aws::Structure
5818
+ end
5819
+
5394
5820
  # Video file stored in an Amazon S3 bucket. Amazon Rekognition video
5395
5821
  # start operations such as StartLabelDetection use `Video` to specify a
5396
5822
  # video for analysis. The supported file formats are .mp4, .mov and