aws-sdk-rekognition 1.60.0 → 1.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rekognition/client.rb +28 -13
- data/lib/aws-sdk-rekognition/client_api.rb +2 -0
- data/lib/aws-sdk-rekognition/types.rb +50 -17
- data/lib/aws-sdk-rekognition.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ca46a33566055a71bea9339881fffa6412bed2f32a33bec7183f763f33f82d9
|
4
|
+
data.tar.gz: 0e972e4f58cab69555bf0bf2fdc9e9199c1f18d339868a84cd78de1a8b850417
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c9ac8506716b223a5c931300f5ccf4cfdbdf0878d9e967c97f55c16dc4b2d14f2c4d13df2ba4f68e1923d361f6801293fdbc2658da14822c24bf83922ccb311
|
7
|
+
data.tar.gz: 13c9829fc3fc3e6ed19fd1fa8a6413a7d938b89cb740ae3776429c9f2b7fad46f597e1c15b99ec19d5e78a375124e3be038f2e21fda33b1e65c2e36ea1198a62
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.64.0 (2022-01-04)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release introduces a new field IndexFacesModelVersion, which is the version of the face detect and storage model that was used when indexing the face vector.
|
8
|
+
|
9
|
+
1.63.0 (2021-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.62.0 (2021-12-03)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release added new KnownGender types for Celebrity Recognition.
|
18
|
+
|
19
|
+
1.61.0 (2021-11-30)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.60.0 (2021-11-04)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.64.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
30
31
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
32
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
32
33
|
|
@@ -73,6 +74,7 @@ module Aws::Rekognition
|
|
73
74
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
75
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
76
|
add_plugin(Aws::Plugins::HttpChecksum)
|
77
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
76
78
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
79
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
78
80
|
|
@@ -119,7 +121,9 @@ module Aws::Rekognition
|
|
119
121
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
122
|
# are very aggressive. Construct and pass an instance of
|
121
123
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
124
|
+
# enable retries and extended timeouts. Instance profile credential
|
125
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
126
|
+
# to true.
|
123
127
|
#
|
124
128
|
# @option options [required, String] :region
|
125
129
|
# The AWS region to connect to. The configured `:region` is
|
@@ -173,6 +177,10 @@ module Aws::Rekognition
|
|
173
177
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
178
|
# a clock skew correction and retry requests with skewed client clocks.
|
175
179
|
#
|
180
|
+
# @option options [String] :defaults_mode ("legacy")
|
181
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
182
|
+
# accepted modes and the configuration defaults that are included.
|
183
|
+
#
|
176
184
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
185
|
# Set to true to disable SDK automatically adding host prefix
|
178
186
|
# to default service endpoint when available.
|
@@ -305,7 +313,7 @@ module Aws::Rekognition
|
|
305
313
|
# seconds to wait when opening a HTTP session before raising a
|
306
314
|
# `Timeout::Error`.
|
307
315
|
#
|
308
|
-
# @option options [
|
316
|
+
# @option options [Float] :http_read_timeout (60) The default
|
309
317
|
# number of seconds to wait for response data. This value can
|
310
318
|
# safely be set per-request on the session.
|
311
319
|
#
|
@@ -321,6 +329,9 @@ module Aws::Rekognition
|
|
321
329
|
# disables this behaviour. This value can safely be set per
|
322
330
|
# request on the session.
|
323
331
|
#
|
332
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
333
|
+
# in seconds.
|
334
|
+
#
|
324
335
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
325
336
|
# HTTP debug output will be sent to the `:logger`.
|
326
337
|
#
|
@@ -373,7 +384,7 @@ module Aws::Rekognition
|
|
373
384
|
# In response, the operation returns an array of face matches ordered by
|
374
385
|
# similarity score in descending order. For each face match, the
|
375
386
|
# response provides a bounding box of the face, facial landmarks, pose
|
376
|
-
# details (pitch,
|
387
|
+
# details (pitch, roll, and yaw), quality (brightness and sharpness),
|
377
388
|
# and confidence value (indicating the level of confidence that the
|
378
389
|
# bounding box contains a face). The response also provides a similarity
|
379
390
|
# score, which indicates how closely the faces match.
|
@@ -2222,9 +2233,8 @@ module Aws::Rekognition
|
|
2222
2233
|
# information about a single word or line of text that was detected in
|
2223
2234
|
# the image.
|
2224
2235
|
#
|
2225
|
-
# A word is one or more
|
2226
|
-
#
|
2227
|
-
# image.
|
2236
|
+
# A word is one or more script characters that are not separated by
|
2237
|
+
# spaces. `DetectText` can detect up to 100 words in an image.
|
2228
2238
|
#
|
2229
2239
|
# A line is a string of equally spaced words. A line isn't necessarily
|
2230
2240
|
# a complete sentence. For example, a driver's license number is
|
@@ -2395,7 +2405,7 @@ module Aws::Rekognition
|
|
2395
2405
|
# resp.urls #=> Array
|
2396
2406
|
# resp.urls[0] #=> String
|
2397
2407
|
# resp.name #=> String
|
2398
|
-
# resp.known_gender.type #=> String, one of "Male", "Female"
|
2408
|
+
# resp.known_gender.type #=> String, one of "Male", "Female", "Nonbinary", "Unlisted"
|
2399
2409
|
#
|
2400
2410
|
# @overload get_celebrity_info(params = {})
|
2401
2411
|
# @param [Hash] params ({})
|
@@ -2557,7 +2567,7 @@ module Aws::Rekognition
|
|
2557
2567
|
# resp.celebrities[0].celebrity.face.quality.brightness #=> Float
|
2558
2568
|
# resp.celebrities[0].celebrity.face.quality.sharpness #=> Float
|
2559
2569
|
# resp.celebrities[0].celebrity.face.confidence #=> Float
|
2560
|
-
# resp.celebrities[0].celebrity.known_gender.type #=> String, one of "Male", "Female"
|
2570
|
+
# resp.celebrities[0].celebrity.known_gender.type #=> String, one of "Male", "Female", "Nonbinary", "Unlisted"
|
2561
2571
|
#
|
2562
2572
|
# @overload get_celebrity_recognition(params = {})
|
2563
2573
|
# @param [Hash] params ({})
|
@@ -2935,6 +2945,7 @@ module Aws::Rekognition
|
|
2935
2945
|
# resp.persons[0].face_matches[0].face.image_id #=> String
|
2936
2946
|
# resp.persons[0].face_matches[0].face.external_image_id #=> String
|
2937
2947
|
# resp.persons[0].face_matches[0].face.confidence #=> Float
|
2948
|
+
# resp.persons[0].face_matches[0].face.index_faces_model_version #=> String
|
2938
2949
|
#
|
2939
2950
|
# @overload get_face_search(params = {})
|
2940
2951
|
# @param [Hash] params ({})
|
@@ -3502,9 +3513,9 @@ module Aws::Rekognition
|
|
3502
3513
|
# `detectionAttributes` parameter), Amazon Rekognition returns detailed
|
3503
3514
|
# facial attributes, such as facial landmarks (for example, location of
|
3504
3515
|
# eye and mouth) and other facial attributes. If you provide the same
|
3505
|
-
# image, specify the same collection,
|
3506
|
-
# the `IndexFaces` operation, Amazon
|
3507
|
-
# face metadata.
|
3516
|
+
# image, specify the same collection, use the same external ID, and use
|
3517
|
+
# the same model version in the `IndexFaces` operation, Amazon
|
3518
|
+
# Rekognition doesn't save duplicate face metadata.
|
3508
3519
|
#
|
3509
3520
|
#
|
3510
3521
|
#
|
@@ -3757,6 +3768,7 @@ module Aws::Rekognition
|
|
3757
3768
|
# resp.face_records[0].face.image_id #=> String
|
3758
3769
|
# resp.face_records[0].face.external_image_id #=> String
|
3759
3770
|
# resp.face_records[0].face.confidence #=> Float
|
3771
|
+
# resp.face_records[0].face.index_faces_model_version #=> String
|
3760
3772
|
# resp.face_records[0].face_detail.bounding_box.width #=> Float
|
3761
3773
|
# resp.face_records[0].face_detail.bounding_box.height #=> Float
|
3762
3774
|
# resp.face_records[0].face_detail.bounding_box.left #=> Float
|
@@ -4235,6 +4247,7 @@ module Aws::Rekognition
|
|
4235
4247
|
# resp.faces[0].image_id #=> String
|
4236
4248
|
# resp.faces[0].external_image_id #=> String
|
4237
4249
|
# resp.faces[0].confidence #=> Float
|
4250
|
+
# resp.faces[0].index_faces_model_version #=> String
|
4238
4251
|
# resp.next_token #=> String
|
4239
4252
|
# resp.face_model_version #=> String
|
4240
4253
|
#
|
@@ -4409,7 +4422,7 @@ module Aws::Rekognition
|
|
4409
4422
|
# resp.celebrity_faces[0].face.smile.value #=> Boolean
|
4410
4423
|
# resp.celebrity_faces[0].face.smile.confidence #=> Float
|
4411
4424
|
# resp.celebrity_faces[0].match_confidence #=> Float
|
4412
|
-
# resp.celebrity_faces[0].known_gender.type #=> String, one of "Male", "Female"
|
4425
|
+
# resp.celebrity_faces[0].known_gender.type #=> String, one of "Male", "Female", "Nonbinary", "Unlisted"
|
4413
4426
|
# resp.unrecognized_faces #=> Array
|
4414
4427
|
# resp.unrecognized_faces[0].bounding_box.width #=> Float
|
4415
4428
|
# resp.unrecognized_faces[0].bounding_box.height #=> Float
|
@@ -4567,6 +4580,7 @@ module Aws::Rekognition
|
|
4567
4580
|
# resp.face_matches[0].face.image_id #=> String
|
4568
4581
|
# resp.face_matches[0].face.external_image_id #=> String
|
4569
4582
|
# resp.face_matches[0].face.confidence #=> Float
|
4583
|
+
# resp.face_matches[0].face.index_faces_model_version #=> String
|
4570
4584
|
# resp.face_model_version #=> String
|
4571
4585
|
#
|
4572
4586
|
# @overload search_faces(params = {})
|
@@ -4749,6 +4763,7 @@ module Aws::Rekognition
|
|
4749
4763
|
# resp.face_matches[0].face.image_id #=> String
|
4750
4764
|
# resp.face_matches[0].face.external_image_id #=> String
|
4751
4765
|
# resp.face_matches[0].face.confidence #=> Float
|
4766
|
+
# resp.face_matches[0].face.index_faces_model_version #=> String
|
4752
4767
|
# resp.face_model_version #=> String
|
4753
4768
|
#
|
4754
4769
|
# @overload search_faces_by_image(params = {})
|
@@ -5703,7 +5718,7 @@ module Aws::Rekognition
|
|
5703
5718
|
params: params,
|
5704
5719
|
config: config)
|
5705
5720
|
context[:gem_name] = 'aws-sdk-rekognition'
|
5706
|
-
context[:gem_version] = '1.
|
5721
|
+
context[:gem_version] = '1.64.0'
|
5707
5722
|
Seahorse::Client::Request.new(handlers, context)
|
5708
5723
|
end
|
5709
5724
|
|
@@ -190,6 +190,7 @@ module Aws::Rekognition
|
|
190
190
|
ImageId = Shapes::StringShape.new(name: 'ImageId')
|
191
191
|
ImageQuality = Shapes::StructureShape.new(name: 'ImageQuality')
|
192
192
|
ImageTooLargeException = Shapes::StructureShape.new(name: 'ImageTooLargeException')
|
193
|
+
IndexFacesModelVersion = Shapes::StringShape.new(name: 'IndexFacesModelVersion')
|
193
194
|
IndexFacesRequest = Shapes::StructureShape.new(name: 'IndexFacesRequest')
|
194
195
|
IndexFacesResponse = Shapes::StructureShape.new(name: 'IndexFacesResponse')
|
195
196
|
InferenceUnits = Shapes::IntegerShape.new(name: 'InferenceUnits')
|
@@ -794,6 +795,7 @@ module Aws::Rekognition
|
|
794
795
|
Face.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, location_name: "ImageId"))
|
795
796
|
Face.add_member(:external_image_id, Shapes::ShapeRef.new(shape: ExternalImageId, location_name: "ExternalImageId"))
|
796
797
|
Face.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
798
|
+
Face.add_member(:index_faces_model_version, Shapes::ShapeRef.new(shape: IndexFacesModelVersion, location_name: "IndexFacesModelVersion"))
|
797
799
|
Face.struct_class = Types::Face
|
798
800
|
|
799
801
|
FaceDetail.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
|
@@ -252,7 +252,8 @@ module Aws::Rekognition
|
|
252
252
|
#
|
253
253
|
# @!attribute [rw] known_gender
|
254
254
|
# The known gender identity for the celebrity that matches the
|
255
|
-
# provided ID.
|
255
|
+
# provided ID. The known gender identity can be Male, Female,
|
256
|
+
# Nonbinary, or Unlisted.
|
256
257
|
# @return [Types::KnownGender]
|
257
258
|
#
|
258
259
|
class Celebrity < Struct.new(
|
@@ -631,8 +632,12 @@ module Aws::Rekognition
|
|
631
632
|
# @return [String]
|
632
633
|
#
|
633
634
|
# @!attribute [rw] face_model_version
|
634
|
-
#
|
635
|
-
#
|
635
|
+
# Latest face model being used with the collection. For more
|
636
|
+
# information, see [Model versioning][1].
|
637
|
+
#
|
638
|
+
#
|
639
|
+
#
|
640
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html
|
636
641
|
# @return [String]
|
637
642
|
#
|
638
643
|
class CreateCollectionResponse < Struct.new(
|
@@ -2331,12 +2336,18 @@ module Aws::Rekognition
|
|
2331
2336
|
# different object such as a tree).
|
2332
2337
|
# @return [Float]
|
2333
2338
|
#
|
2339
|
+
# @!attribute [rw] index_faces_model_version
|
2340
|
+
# The version of the face detect and storage model that was used when
|
2341
|
+
# indexing the face vector.
|
2342
|
+
# @return [String]
|
2343
|
+
#
|
2334
2344
|
class Face < Struct.new(
|
2335
2345
|
:face_id,
|
2336
2346
|
:bounding_box,
|
2337
2347
|
:image_id,
|
2338
2348
|
:external_image_id,
|
2339
|
-
:confidence
|
2349
|
+
:confidence,
|
2350
|
+
:index_faces_model_version)
|
2340
2351
|
SENSITIVE = []
|
2341
2352
|
include Aws::Structure
|
2342
2353
|
end
|
@@ -3683,8 +3694,12 @@ module Aws::Rekognition
|
|
3683
3694
|
# @return [String]
|
3684
3695
|
#
|
3685
3696
|
# @!attribute [rw] face_model_version
|
3686
|
-
#
|
3687
|
-
#
|
3697
|
+
# Latest face model being used with the collection. For more
|
3698
|
+
# information, see [Model versioning][1].
|
3699
|
+
#
|
3700
|
+
#
|
3701
|
+
#
|
3702
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html
|
3688
3703
|
# @return [String]
|
3689
3704
|
#
|
3690
3705
|
# @!attribute [rw] unindexed_faces
|
@@ -3790,7 +3805,8 @@ module Aws::Rekognition
|
|
3790
3805
|
end
|
3791
3806
|
|
3792
3807
|
# The known gender identity for the celebrity that matches the provided
|
3793
|
-
# ID.
|
3808
|
+
# ID. The known gender identity can be Male, Female, Nonbinary, or
|
3809
|
+
# Unlisted.
|
3794
3810
|
#
|
3795
3811
|
# @!attribute [rw] type
|
3796
3812
|
# A string value of the KnownGender info about the Celebrity.
|
@@ -3924,10 +3940,15 @@ module Aws::Rekognition
|
|
3924
3940
|
# @return [String]
|
3925
3941
|
#
|
3926
3942
|
# @!attribute [rw] face_model_versions
|
3927
|
-
#
|
3928
|
-
#
|
3929
|
-
# `FaceModelVersions[2]` is the version number
|
3930
|
-
# model used by the collection in
|
3943
|
+
# Latest face models being used with the corresponding collections in
|
3944
|
+
# the array. For more information, see [Model versioning][1]. For
|
3945
|
+
# example, the value of `FaceModelVersions[2]` is the version number
|
3946
|
+
# for the face detection model used by the collection in
|
3947
|
+
# `CollectionId[2]`.
|
3948
|
+
#
|
3949
|
+
#
|
3950
|
+
#
|
3951
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html
|
3931
3952
|
# @return [Array<String>]
|
3932
3953
|
#
|
3933
3954
|
class ListCollectionsResponse < Struct.new(
|
@@ -4123,8 +4144,12 @@ module Aws::Rekognition
|
|
4123
4144
|
# @return [String]
|
4124
4145
|
#
|
4125
4146
|
# @!attribute [rw] face_model_version
|
4126
|
-
#
|
4127
|
-
#
|
4147
|
+
# Latest face model being used with the collection. For more
|
4148
|
+
# information, see [Model versioning][1].
|
4149
|
+
#
|
4150
|
+
#
|
4151
|
+
#
|
4152
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html
|
4128
4153
|
# @return [String]
|
4129
4154
|
#
|
4130
4155
|
class ListFacesResponse < Struct.new(
|
@@ -4989,8 +5014,12 @@ module Aws::Rekognition
|
|
4989
5014
|
# @return [Array<Types::FaceMatch>]
|
4990
5015
|
#
|
4991
5016
|
# @!attribute [rw] face_model_version
|
4992
|
-
#
|
4993
|
-
#
|
5017
|
+
# Latest face model being used with the collection. For more
|
5018
|
+
# information, see [Model versioning][1].
|
5019
|
+
#
|
5020
|
+
#
|
5021
|
+
#
|
5022
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html
|
4994
5023
|
# @return [String]
|
4995
5024
|
#
|
4996
5025
|
class SearchFacesByImageResponse < Struct.new(
|
@@ -5050,8 +5079,12 @@ module Aws::Rekognition
|
|
5050
5079
|
# @return [Array<Types::FaceMatch>]
|
5051
5080
|
#
|
5052
5081
|
# @!attribute [rw] face_model_version
|
5053
|
-
#
|
5054
|
-
#
|
5082
|
+
# Latest face model being used with the collection. For more
|
5083
|
+
# information, see [Model versioning][1].
|
5084
|
+
#
|
5085
|
+
#
|
5086
|
+
#
|
5087
|
+
# [1]: https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html
|
5055
5088
|
# @return [String]
|
5056
5089
|
#
|
5057
5090
|
class SearchFacesResponse < Struct.new(
|
data/lib/aws-sdk-rekognition.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rekognition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.64.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:
|
11
|
+
date: 2022-01-04 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.125.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.125.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|