aws-sdk-rekognition 1.77.0 → 1.78.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bf5c7859181522a4322bb28b227f826708fea75bb9e6e6fd17a27cf253ebe4a
4
- data.tar.gz: 5810b0c1f8db97a648758699fe24588a16ae36c84fb98f20ce5cc6a28f0e8325
3
+ metadata.gz: 92fdb88e568540ca97efe52954c59a0e67b3cfedcd162ef96f8d5983a4942ca0
4
+ data.tar.gz: a0372d1b1246e81cf6700ed793c2a7d65d9037a09982d419be0f4ee152610572
5
5
  SHA512:
6
- metadata.gz: 21eb95aafca3a2e86e776c3236dab83c68711aba389eaa584cf71a49bd697f9944beb183a0bc634bb252e4e2ab316aaf98a6b996f3aa3c17b6a525f188821580
7
- data.tar.gz: 4e80e911c1d258bf8d48dcd2c2f108c89aff9199d81b798cc9f6d942cc8a0845df06c37747247c7ff9da9bb0d8ff746047a3bc5db80b371c46f4f71ea2c15fb3
6
+ metadata.gz: 8c09938c4a35cabab9304c8ce6d86e6b48512531053bcc8c303a804202c33e5cbb7f3fa7fd5bb18ba24db19802034abaa0edca28d6d78e23f36cfdcfb9576ad3
7
+ data.tar.gz: dd3b85fa26ea01b6149f8e728d08addc2de2693c001af0576e91abc5d4a7919bac9633a24981e35f0915e92c56cf126793b95ad423be3c12235b367e4dea4dc8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.78.0 (2023-05-04)
5
+ ------------------
6
+
7
+ * Feature - This release adds a new attribute FaceOccluded. Additionally, you can now select attributes individually (e.g. ["DEFAULT", "FACE_OCCLUDED", "AGE_RANGE"] instead of ["ALL"]), which can reduce response time.
8
+
4
9
  1.77.0 (2023-04-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.77.0
1
+ 1.78.0
@@ -2056,8 +2056,8 @@ module Aws::Rekognition
2056
2056
  # face detected, the operation returns face details. These details
2057
2057
  # include a bounding box of the face, a confidence value (that the
2058
2058
  # bounding box contains a face), and a fixed set of attributes such as
2059
- # facial landmarks (for example, coordinates of eye and mouth), presence
2060
- # of beard, sunglasses, and so on.
2059
+ # facial landmarks (for example, coordinates of eye and mouth), pose,
2060
+ # presence of facial occlusion, and so on.
2061
2061
  #
2062
2062
  # The face-detection algorithm is most effective on frontal faces. For
2063
2063
  # non-frontal or obscured faces, the algorithm might not detect the
@@ -2087,17 +2087,17 @@ module Aws::Rekognition
2087
2087
  # guide.
2088
2088
  #
2089
2089
  # @option params [Array<String>] :attributes
2090
- # An array of facial attributes you want to be returned. This can be the
2091
- # default list of attributes or all attributes. If you don't specify a
2092
- # value for `Attributes` or if you specify `["DEFAULT"]`, the API
2093
- # returns the following subset of facial attributes: `BoundingBox`,
2094
- # `Confidence`, `Pose`, `Quality`, and `Landmarks`. If you provide
2095
- # `["ALL"]`, all facial attributes are returned, but the operation takes
2096
- # longer to complete.
2090
+ # An array of facial attributes you want to be returned. A `DEFAULT`
2091
+ # subset of facial attributes - `BoundingBox`, `Confidence`, `Pose`,
2092
+ # `Quality`, and `Landmarks` - will always be returned. You can request
2093
+ # for specific facial attributes (in addition to the default list) - by
2094
+ # using \[`"DEFAULT", "FACE_OCCLUDED"`\] or just \[`"FACE_OCCLUDED"`\].
2095
+ # You can request for all facial attributes by using \[`"ALL"]`.
2096
+ # Requesting more attributes may increase response time.
2097
2097
  #
2098
2098
  # If you provide both, `["ALL", "DEFAULT"]`, the service uses a logical
2099
- # AND operator to determine which attributes to return (in this case,
2100
- # all attributes).
2099
+ # "AND" operator to determine which attributes to return (in this
2100
+ # case, all attributes).
2101
2101
  #
2102
2102
  # @return [Types::DetectFacesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2103
2103
  #
@@ -2181,7 +2181,7 @@ module Aws::Rekognition
2181
2181
  # version: "S3ObjectVersion",
2182
2182
  # },
2183
2183
  # },
2184
- # attributes: ["DEFAULT"], # accepts DEFAULT, ALL
2184
+ # attributes: ["DEFAULT"], # accepts DEFAULT, ALL, AGE_RANGE, BEARD, EMOTIONS, EYEGLASSES, EYES_OPEN, GENDER, MOUTH_OPEN, MUSTACHE, FACE_OCCLUDED, SMILE, SUNGLASSES
2185
2185
  # })
2186
2186
  #
2187
2187
  # @example Response structure
@@ -2222,6 +2222,8 @@ module Aws::Rekognition
2222
2222
  # resp.face_details[0].quality.brightness #=> Float
2223
2223
  # resp.face_details[0].quality.sharpness #=> Float
2224
2224
  # resp.face_details[0].confidence #=> Float
2225
+ # resp.face_details[0].face_occluded.value #=> Boolean
2226
+ # resp.face_details[0].face_occluded.confidence #=> Float
2225
2227
  # resp.orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
2226
2228
  #
2227
2229
  # @overload detect_faces(params = {})
@@ -3077,6 +3079,8 @@ module Aws::Rekognition
3077
3079
  # resp.celebrities[0].celebrity.face.quality.brightness #=> Float
3078
3080
  # resp.celebrities[0].celebrity.face.quality.sharpness #=> Float
3079
3081
  # resp.celebrities[0].celebrity.face.confidence #=> Float
3082
+ # resp.celebrities[0].celebrity.face.face_occluded.value #=> Boolean
3083
+ # resp.celebrities[0].celebrity.face.face_occluded.confidence #=> Float
3080
3084
  # resp.celebrities[0].celebrity.known_gender.type #=> String, one of "Male", "Female", "Nonbinary", "Unlisted"
3081
3085
  # resp.job_id #=> String
3082
3086
  # resp.video.s3_object.bucket #=> String
@@ -3335,6 +3339,8 @@ module Aws::Rekognition
3335
3339
  # resp.faces[0].face.quality.brightness #=> Float
3336
3340
  # resp.faces[0].face.quality.sharpness #=> Float
3337
3341
  # resp.faces[0].face.confidence #=> Float
3342
+ # resp.faces[0].face.face_occluded.value #=> Boolean
3343
+ # resp.faces[0].face.face_occluded.confidence #=> Float
3338
3344
  # resp.job_id #=> String
3339
3345
  # resp.video.s3_object.bucket #=> String
3340
3346
  # resp.video.s3_object.name #=> String
@@ -3538,6 +3544,8 @@ module Aws::Rekognition
3538
3544
  # resp.persons[0].person.face.quality.brightness #=> Float
3539
3545
  # resp.persons[0].person.face.quality.sharpness #=> Float
3540
3546
  # resp.persons[0].person.face.confidence #=> Float
3547
+ # resp.persons[0].person.face.face_occluded.value #=> Boolean
3548
+ # resp.persons[0].person.face.face_occluded.confidence #=> Float
3541
3549
  # resp.persons[0].face_matches #=> Array
3542
3550
  # resp.persons[0].face_matches[0].similarity #=> Float
3543
3551
  # resp.persons[0].face_matches[0].face.face_id #=> String
@@ -3885,6 +3893,8 @@ module Aws::Rekognition
3885
3893
  # resp.persons[0].person.face.quality.brightness #=> Float
3886
3894
  # resp.persons[0].person.face.quality.sharpness #=> Float
3887
3895
  # resp.persons[0].person.face.confidence #=> Float
3896
+ # resp.persons[0].person.face.face_occluded.value #=> Boolean
3897
+ # resp.persons[0].person.face.face_occluded.confidence #=> Float
3888
3898
  # resp.job_id #=> String
3889
3899
  # resp.video.s3_object.bucket #=> String
3890
3900
  # resp.video.s3_object.name #=> String
@@ -4216,13 +4226,15 @@ module Aws::Rekognition
4216
4226
  #
4217
4227
  # * An image ID, `ImageId`, assigned by the service for the input image.
4218
4228
  #
4219
- # If you request all facial attributes (by using the
4220
- # `detectionAttributes` parameter), Amazon Rekognition returns detailed
4221
- # facial attributes, such as facial landmarks (for example, location of
4222
- # eye and mouth) and other facial attributes. If you provide the same
4223
- # image, specify the same collection, and use the same external ID in
4224
- # the `IndexFaces` operation, Amazon Rekognition doesn't save duplicate
4225
- # face metadata.
4229
+ # If you request `ALL` or specific facial attributes (e.g.,
4230
+ # `FACE_OCCLUDED`) by using the detectionAttributes parameter, Amazon
4231
+ # Rekognition returns detailed facial attributes, such as facial
4232
+ # landmarks (for example, location of eye and mouth), facial occlusion,
4233
+ # and other facial attributes.
4234
+ #
4235
+ # If you provide the same image, specify the same collection, and use
4236
+ # the same external ID in the `IndexFaces` operation, Amazon Rekognition
4237
+ # doesn't save duplicate face metadata.
4226
4238
  #
4227
4239
  #
4228
4240
  #
@@ -4252,13 +4264,13 @@ module Aws::Rekognition
4252
4264
  # The ID you want to assign to all the faces detected in the image.
4253
4265
  #
4254
4266
  # @option params [Array<String>] :detection_attributes
4255
- # An array of facial attributes that you want to be returned. This can
4256
- # be the default list of attributes or all attributes. If you don't
4257
- # specify a value for `Attributes` or if you specify `["DEFAULT"]`, the
4258
- # API returns the following subset of facial attributes: `BoundingBox`,
4259
- # `Confidence`, `Pose`, `Quality`, and `Landmarks`. If you provide
4260
- # `["ALL"]`, all facial attributes are returned, but the operation takes
4261
- # longer to complete.
4267
+ # An array of facial attributes you want to be returned. A `DEFAULT`
4268
+ # subset of facial attributes - `BoundingBox`, `Confidence`, `Pose`,
4269
+ # `Quality`, and `Landmarks` - will always be returned. You can request
4270
+ # for specific facial attributes (in addition to the default list) - by
4271
+ # using `["DEFAULT", "FACE_OCCLUDED"]` or just `["FACE_OCCLUDED"]`. You
4272
+ # can request for all facial attributes by using `["ALL"]`. Requesting
4273
+ # more attributes may increase response time.
4262
4274
  #
4263
4275
  # If you provide both, `["ALL", "DEFAULT"]`, the service uses a logical
4264
4276
  # AND operator to determine which attributes to return (in this case,
@@ -4459,7 +4471,7 @@ module Aws::Rekognition
4459
4471
  # },
4460
4472
  # },
4461
4473
  # external_image_id: "ExternalImageId",
4462
- # detection_attributes: ["DEFAULT"], # accepts DEFAULT, ALL
4474
+ # detection_attributes: ["DEFAULT"], # accepts DEFAULT, ALL, AGE_RANGE, BEARD, EMOTIONS, EYEGLASSES, EYES_OPEN, GENDER, MOUTH_OPEN, MUSTACHE, FACE_OCCLUDED, SMILE, SUNGLASSES
4463
4475
  # max_faces: 1,
4464
4476
  # quality_filter: "NONE", # accepts NONE, AUTO, LOW, MEDIUM, HIGH
4465
4477
  # })
@@ -4511,6 +4523,8 @@ module Aws::Rekognition
4511
4523
  # resp.face_records[0].face_detail.quality.brightness #=> Float
4512
4524
  # resp.face_records[0].face_detail.quality.sharpness #=> Float
4513
4525
  # resp.face_records[0].face_detail.confidence #=> Float
4526
+ # resp.face_records[0].face_detail.face_occluded.value #=> Boolean
4527
+ # resp.face_records[0].face_detail.face_occluded.confidence #=> Float
4514
4528
  # resp.orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
4515
4529
  # resp.face_model_version #=> String
4516
4530
  # resp.unindexed_faces #=> Array
@@ -4551,6 +4565,8 @@ module Aws::Rekognition
4551
4565
  # resp.unindexed_faces[0].face_detail.quality.brightness #=> Float
4552
4566
  # resp.unindexed_faces[0].face_detail.quality.sharpness #=> Float
4553
4567
  # resp.unindexed_faces[0].face_detail.confidence #=> Float
4568
+ # resp.unindexed_faces[0].face_detail.face_occluded.value #=> Boolean
4569
+ # resp.unindexed_faces[0].face_detail.face_occluded.confidence #=> Float
4554
4570
  #
4555
4571
  # @overload index_faces(params = {})
4556
4572
  # @param [Hash] params ({})
@@ -6766,7 +6782,7 @@ module Aws::Rekognition
6766
6782
  params: params,
6767
6783
  config: config)
6768
6784
  context[:gem_name] = 'aws-sdk-rekognition'
6769
- context[:gem_version] = '1.77.0'
6785
+ context[:gem_version] = '1.78.0'
6770
6786
  Seahorse::Client::Request.new(handlers, context)
6771
6787
  end
6772
6788
 
@@ -171,6 +171,7 @@ module Aws::Rekognition
171
171
  FaceMatch = Shapes::StructureShape.new(name: 'FaceMatch')
172
172
  FaceMatchList = Shapes::ListShape.new(name: 'FaceMatchList')
173
173
  FaceModelVersionList = Shapes::ListShape.new(name: 'FaceModelVersionList')
174
+ FaceOccluded = Shapes::StructureShape.new(name: 'FaceOccluded')
174
175
  FaceRecord = Shapes::StructureShape.new(name: 'FaceRecord')
175
176
  FaceRecordList = Shapes::ListShape.new(name: 'FaceRecordList')
176
177
  FaceSearchSettings = Shapes::StructureShape.new(name: 'FaceSearchSettings')
@@ -987,6 +988,7 @@ module Aws::Rekognition
987
988
  FaceDetail.add_member(:pose, Shapes::ShapeRef.new(shape: Pose, location_name: "Pose"))
988
989
  FaceDetail.add_member(:quality, Shapes::ShapeRef.new(shape: ImageQuality, location_name: "Quality"))
989
990
  FaceDetail.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
991
+ FaceDetail.add_member(:face_occluded, Shapes::ShapeRef.new(shape: FaceOccluded, location_name: "FaceOccluded"))
990
992
  FaceDetail.struct_class = Types::FaceDetail
991
993
 
992
994
  FaceDetailList.member = Shapes::ShapeRef.new(shape: FaceDetail)
@@ -1009,6 +1011,10 @@ module Aws::Rekognition
1009
1011
 
1010
1012
  FaceModelVersionList.member = Shapes::ShapeRef.new(shape: String)
1011
1013
 
1014
+ FaceOccluded.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
1015
+ FaceOccluded.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
1016
+ FaceOccluded.struct_class = Types::FaceOccluded
1017
+
1012
1018
  FaceRecord.add_member(:face, Shapes::ShapeRef.new(shape: Face, location_name: "Face"))
1013
1019
  FaceRecord.add_member(:face_detail, Shapes::ShapeRef.new(shape: FaceDetail, location_name: "FaceDetail"))
1014
1020
  FaceRecord.struct_class = Types::FaceRecord
@@ -851,7 +851,8 @@ module Aws::Rekognition
851
851
  # audit images will be stored. Note that the Amazon S3 bucket must be
852
852
  # located in the caller's AWS account and in the same region as the
853
853
  # Face Liveness end-point. Additionally, the Amazon S3 object keys are
854
- # auto-generated by the Face Liveness system.
854
+ # auto-generated by the Face Liveness system. Requires that the caller
855
+ # has the `s3:PutObject` permission on the Amazon S3 bucket.
855
856
  # @return [Types::LivenessOutputConfig]
856
857
  #
857
858
  # @!attribute [rw] audit_images_limit
@@ -1819,16 +1820,17 @@ module Aws::Rekognition
1819
1820
  # @return [Types::Image]
1820
1821
  #
1821
1822
  # @!attribute [rw] attributes
1822
- # An array of facial attributes you want to be returned. This can be
1823
- # the default list of attributes or all attributes. If you don't
1824
- # specify a value for `Attributes` or if you specify `["DEFAULT"]`,
1825
- # the API returns the following subset of facial attributes:
1826
- # `BoundingBox`, `Confidence`, `Pose`, `Quality`, and `Landmarks`. If
1827
- # you provide `["ALL"]`, all facial attributes are returned, but the
1828
- # operation takes longer to complete.
1823
+ # An array of facial attributes you want to be returned. A `DEFAULT`
1824
+ # subset of facial attributes - `BoundingBox`, `Confidence`, `Pose`,
1825
+ # `Quality`, and `Landmarks` - will always be returned. You can
1826
+ # request for specific facial attributes (in addition to the default
1827
+ # list) - by using \[`"DEFAULT", "FACE_OCCLUDED"`\] or just
1828
+ # \[`"FACE_OCCLUDED"`\]. You can request for all facial attributes by
1829
+ # using \[`"ALL"]`. Requesting more attributes may increase response
1830
+ # time.
1829
1831
  #
1830
1832
  # If you provide both, `["ALL", "DEFAULT"]`, the service uses a
1831
- # logical AND operator to determine which attributes to return (in
1833
+ # logical "AND" operator to determine which attributes to return (in
1832
1834
  # this case, all attributes).
1833
1835
  # @return [Array<String>]
1834
1836
  #
@@ -2608,6 +2610,16 @@ module Aws::Rekognition
2608
2610
  # different object such as a tree). Default attribute.
2609
2611
  # @return [Float]
2610
2612
  #
2613
+ # @!attribute [rw] face_occluded
2614
+ # `FaceOccluded` should return "true" with a high confidence score
2615
+ # if a detected face’s eyes, nose, and mouth are partially captured or
2616
+ # if they are covered by masks, dark sunglasses, cell phones, hands,
2617
+ # or other objects. `FaceOccluded` should return "false" with a high
2618
+ # confidence score if common occurrences that do not impact face
2619
+ # verification are detected, such as eye glasses, lightly tinted
2620
+ # sunglasses, strands of hair, and others.
2621
+ # @return [Types::FaceOccluded]
2622
+ #
2611
2623
  class FaceDetail < Struct.new(
2612
2624
  :bounding_box,
2613
2625
  :age_range,
@@ -2623,7 +2635,8 @@ module Aws::Rekognition
2623
2635
  :landmarks,
2624
2636
  :pose,
2625
2637
  :quality,
2626
- :confidence)
2638
+ :confidence,
2639
+ :face_occluded)
2627
2640
  SENSITIVE = []
2628
2641
  include Aws::Structure
2629
2642
  end
@@ -2668,6 +2681,37 @@ module Aws::Rekognition
2668
2681
  include Aws::Structure
2669
2682
  end
2670
2683
 
2684
+ # `FaceOccluded` should return "true" with a high confidence score if
2685
+ # a detected face’s eyes, nose, and mouth are partially captured or if
2686
+ # they are covered by masks, dark sunglasses, cell phones, hands, or
2687
+ # other objects. `FaceOccluded` should return "false" with a high
2688
+ # confidence score if common occurrences that do not impact face
2689
+ # verification are detected, such as eye glasses, lightly tinted
2690
+ # sunglasses, strands of hair, and others.
2691
+ #
2692
+ # You can use `FaceOccluded` to determine if an obstruction on a face
2693
+ # negatively impacts using the image for face matching.
2694
+ #
2695
+ # @!attribute [rw] value
2696
+ # True if a detected face’s eyes, nose, and mouth are partially
2697
+ # captured or if they are covered by masks, dark sunglasses, cell
2698
+ # phones, hands, or other objects. False if common occurrences that do
2699
+ # not impact face verification are detected, such as eye glasses,
2700
+ # lightly tinted sunglasses, strands of hair, and others.
2701
+ # @return [Boolean]
2702
+ #
2703
+ # @!attribute [rw] confidence
2704
+ # The confidence that the service has detected the presence of a face
2705
+ # occlusion.
2706
+ # @return [Float]
2707
+ #
2708
+ class FaceOccluded < Struct.new(
2709
+ :value,
2710
+ :confidence)
2711
+ SENSITIVE = []
2712
+ include Aws::Structure
2713
+ end
2714
+
2671
2715
  # Object containing both the face metadata (stored in the backend
2672
2716
  # database), and facial attributes that are detected but aren't stored
2673
2717
  # in the database.
@@ -3936,13 +3980,14 @@ module Aws::Rekognition
3936
3980
  # @return [String]
3937
3981
  #
3938
3982
  # @!attribute [rw] detection_attributes
3939
- # An array of facial attributes that you want to be returned. This can
3940
- # be the default list of attributes or all attributes. If you don't
3941
- # specify a value for `Attributes` or if you specify `["DEFAULT"]`,
3942
- # the API returns the following subset of facial attributes:
3943
- # `BoundingBox`, `Confidence`, `Pose`, `Quality`, and `Landmarks`. If
3944
- # you provide `["ALL"]`, all facial attributes are returned, but the
3945
- # operation takes longer to complete.
3983
+ # An array of facial attributes you want to be returned. A `DEFAULT`
3984
+ # subset of facial attributes - `BoundingBox`, `Confidence`, `Pose`,
3985
+ # `Quality`, and `Landmarks` - will always be returned. You can
3986
+ # request for specific facial attributes (in addition to the default
3987
+ # list) - by using `["DEFAULT", "FACE_OCCLUDED"]` or just
3988
+ # `["FACE_OCCLUDED"]`. You can request for all facial attributes by
3989
+ # using `["ALL"]`. Requesting more attributes may increase response
3990
+ # time.
3946
3991
  #
3947
3992
  # If you provide both, `["ALL", "DEFAULT"]`, the service uses a
3948
3993
  # logical AND operator to determine which attributes to return (in
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-rekognition/customizations'
53
53
  # @!group service
54
54
  module Aws::Rekognition
55
55
 
56
- GEM_VERSION = '1.77.0'
56
+ GEM_VERSION = '1.78.0'
57
57
 
58
58
  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.77.0
4
+ version: 1.78.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: 2023-04-28 00:00:00.000000000 Z
11
+ date: 2023-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core