aws-sdk-rekognition 1.54.0 → 1.55.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rekognition/client.rb +53 -20
- data/lib/aws-sdk-rekognition/client_api.rb +9 -0
- data/lib/aws-sdk-rekognition/types.rb +58 -8
- data/lib/aws-sdk-rekognition.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eeed39966b02dbca262b06448e70e72199cf1be48216013201792fb3f4bc779
|
4
|
+
data.tar.gz: 328270c34037105ee62bb85c125603be2d9f3d7bdf3c47d0195e2118171ebb07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdf637272f8f63dd7cd98e866de36e35a5be0c11ba3d3e04cc7ebb41922a52fb7c0d6e78b4d160e8cdb90ada2d1c1bb2cdb1682bdfd086d010b746d8c4a3baf5
|
7
|
+
data.tar.gz: 93af3da3840cfc76847214f6f7ae61789cca32152f9978256030332ea169b052a40354e72c7d38f6fb5ed913731277ee741d3d6b6081660c483232a1369b607d
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.55.0
|
@@ -547,6 +547,11 @@ module Aws::Rekognition
|
|
547
547
|
# resp.face_matches[0].face.pose.pitch #=> Float
|
548
548
|
# resp.face_matches[0].face.quality.brightness #=> Float
|
549
549
|
# resp.face_matches[0].face.quality.sharpness #=> Float
|
550
|
+
# resp.face_matches[0].face.emotions #=> Array
|
551
|
+
# resp.face_matches[0].face.emotions[0].type #=> String, one of "HAPPY", "SAD", "ANGRY", "CONFUSED", "DISGUSTED", "SURPRISED", "CALM", "UNKNOWN", "FEAR"
|
552
|
+
# resp.face_matches[0].face.emotions[0].confidence #=> Float
|
553
|
+
# resp.face_matches[0].face.smile.value #=> Boolean
|
554
|
+
# resp.face_matches[0].face.smile.confidence #=> Float
|
550
555
|
# resp.unmatched_faces #=> Array
|
551
556
|
# resp.unmatched_faces[0].bounding_box.width #=> Float
|
552
557
|
# resp.unmatched_faces[0].bounding_box.height #=> Float
|
@@ -562,6 +567,11 @@ module Aws::Rekognition
|
|
562
567
|
# resp.unmatched_faces[0].pose.pitch #=> Float
|
563
568
|
# resp.unmatched_faces[0].quality.brightness #=> Float
|
564
569
|
# resp.unmatched_faces[0].quality.sharpness #=> Float
|
570
|
+
# resp.unmatched_faces[0].emotions #=> Array
|
571
|
+
# resp.unmatched_faces[0].emotions[0].type #=> String, one of "HAPPY", "SAD", "ANGRY", "CONFUSED", "DISGUSTED", "SURPRISED", "CALM", "UNKNOWN", "FEAR"
|
572
|
+
# resp.unmatched_faces[0].emotions[0].confidence #=> Float
|
573
|
+
# resp.unmatched_faces[0].smile.value #=> Boolean
|
574
|
+
# resp.unmatched_faces[0].smile.confidence #=> Float
|
565
575
|
# resp.source_image_orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
|
566
576
|
# resp.target_image_orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
|
567
577
|
#
|
@@ -1335,18 +1345,23 @@ module Aws::Rekognition
|
|
1335
1345
|
# object location information, if it exists, for the label on the image
|
1336
1346
|
# (`Geometry`).
|
1337
1347
|
#
|
1338
|
-
#
|
1339
|
-
#
|
1340
|
-
#
|
1341
|
-
#
|
1342
|
-
#
|
1343
|
-
#
|
1344
|
-
#
|
1345
|
-
#
|
1346
|
-
#
|
1347
|
-
#
|
1348
|
-
#
|
1349
|
-
#
|
1348
|
+
# To filter labels that are returned, specify a value for
|
1349
|
+
# `MinConfidence`. `DetectCustomLabelsLabels` only returns labels with a
|
1350
|
+
# confidence that's higher than the specified value. The value of
|
1351
|
+
# `MinConfidence` maps to the assumed threshold values created during
|
1352
|
+
# training. For more information, see *Assumed threshold* in the Amazon
|
1353
|
+
# Rekognition Custom Labels Developer Guide. Amazon Rekognition Custom
|
1354
|
+
# Labels metrics expresses an assumed threshold as a floating point
|
1355
|
+
# value between 0-1. The range of `MinConfidence` normalizes the
|
1356
|
+
# threshold value to a percentage value (0-100). Confidence responses
|
1357
|
+
# from `DetectCustomLabels` are also returned as a percentage. You can
|
1358
|
+
# use `MinConfidence` to change the precision and recall or your model.
|
1359
|
+
# For more information, see *Analyzing an image* in the Amazon
|
1360
|
+
# Rekognition Custom Labels Developer Guide.
|
1361
|
+
#
|
1362
|
+
# If you don't specify a value for `MinConfidence`,
|
1363
|
+
# `DetectCustomLabels` returns labels based on the assumed threshold of
|
1364
|
+
# each label.
|
1350
1365
|
#
|
1351
1366
|
# This is a stateless API operation. That is, the operation does not
|
1352
1367
|
# persist any data.
|
@@ -1354,6 +1369,9 @@ module Aws::Rekognition
|
|
1354
1369
|
# This operation requires permissions to perform the
|
1355
1370
|
# `rekognition:DetectCustomLabels` action.
|
1356
1371
|
#
|
1372
|
+
# For more information, see *Analyzing an image* in the Amazon
|
1373
|
+
# Rekognition Custom Labels Developer Guide.
|
1374
|
+
#
|
1357
1375
|
# @option params [required, String] :project_version_arn
|
1358
1376
|
# The ARN of the model version that you want to use.
|
1359
1377
|
#
|
@@ -1393,10 +1411,12 @@ module Aws::Rekognition
|
|
1393
1411
|
#
|
1394
1412
|
# @option params [Float] :min_confidence
|
1395
1413
|
# Specifies the minimum confidence level for the labels to return.
|
1396
|
-
#
|
1397
|
-
# than this specified value. If you specify a value
|
1398
|
-
#
|
1399
|
-
#
|
1414
|
+
# `DetectCustomLabels` doesn't return any labels with a confidence
|
1415
|
+
# value that's lower than this specified value. If you specify a value
|
1416
|
+
# of 0, `DetectCustomLabels` returns all labels, regardless of the
|
1417
|
+
# assumed threshold applied to each label. If you don't specify a value
|
1418
|
+
# for `MinConfidence`, `DetectCustomLabels` returns labels based on the
|
1419
|
+
# assumed threshold of each label.
|
1400
1420
|
#
|
1401
1421
|
# @return [Types::DetectCustomLabelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1402
1422
|
#
|
@@ -2099,9 +2119,9 @@ module Aws::Rekognition
|
|
2099
2119
|
end
|
2100
2120
|
|
2101
2121
|
# Gets the name and additional information about a celebrity based on
|
2102
|
-
#
|
2103
|
-
#
|
2104
|
-
#
|
2122
|
+
# their Amazon Rekognition ID. The additional information is returned as
|
2123
|
+
# an array of URLs. If there is no additional information about the
|
2124
|
+
# celebrity, this list is empty.
|
2105
2125
|
#
|
2106
2126
|
# For more information, see Recognizing Celebrities in an Image in the
|
2107
2127
|
# Amazon Rekognition Developer Guide.
|
@@ -2118,6 +2138,7 @@ module Aws::Rekognition
|
|
2118
2138
|
#
|
2119
2139
|
# * {Types::GetCelebrityInfoResponse#urls #urls} => Array<String>
|
2120
2140
|
# * {Types::GetCelebrityInfoResponse#name #name} => String
|
2141
|
+
# * {Types::GetCelebrityInfoResponse#known_gender #known_gender} => Types::KnownGender
|
2121
2142
|
#
|
2122
2143
|
# @example Request syntax with placeholder values
|
2123
2144
|
#
|
@@ -2130,6 +2151,7 @@ module Aws::Rekognition
|
|
2130
2151
|
# resp.urls #=> Array
|
2131
2152
|
# resp.urls[0] #=> String
|
2132
2153
|
# resp.name #=> String
|
2154
|
+
# resp.known_gender.type #=> String, one of "Male", "Female"
|
2133
2155
|
#
|
2134
2156
|
# @overload get_celebrity_info(params = {})
|
2135
2157
|
# @param [Hash] params ({})
|
@@ -3982,7 +4004,13 @@ module Aws::Rekognition
|
|
3982
4004
|
# resp.celebrity_faces[0].face.pose.pitch #=> Float
|
3983
4005
|
# resp.celebrity_faces[0].face.quality.brightness #=> Float
|
3984
4006
|
# resp.celebrity_faces[0].face.quality.sharpness #=> Float
|
4007
|
+
# resp.celebrity_faces[0].face.emotions #=> Array
|
4008
|
+
# resp.celebrity_faces[0].face.emotions[0].type #=> String, one of "HAPPY", "SAD", "ANGRY", "CONFUSED", "DISGUSTED", "SURPRISED", "CALM", "UNKNOWN", "FEAR"
|
4009
|
+
# resp.celebrity_faces[0].face.emotions[0].confidence #=> Float
|
4010
|
+
# resp.celebrity_faces[0].face.smile.value #=> Boolean
|
4011
|
+
# resp.celebrity_faces[0].face.smile.confidence #=> Float
|
3985
4012
|
# resp.celebrity_faces[0].match_confidence #=> Float
|
4013
|
+
# resp.celebrity_faces[0].known_gender.type #=> String, one of "Male", "Female"
|
3986
4014
|
# resp.unrecognized_faces #=> Array
|
3987
4015
|
# resp.unrecognized_faces[0].bounding_box.width #=> Float
|
3988
4016
|
# resp.unrecognized_faces[0].bounding_box.height #=> Float
|
@@ -3998,6 +4026,11 @@ module Aws::Rekognition
|
|
3998
4026
|
# resp.unrecognized_faces[0].pose.pitch #=> Float
|
3999
4027
|
# resp.unrecognized_faces[0].quality.brightness #=> Float
|
4000
4028
|
# resp.unrecognized_faces[0].quality.sharpness #=> Float
|
4029
|
+
# resp.unrecognized_faces[0].emotions #=> Array
|
4030
|
+
# resp.unrecognized_faces[0].emotions[0].type #=> String, one of "HAPPY", "SAD", "ANGRY", "CONFUSED", "DISGUSTED", "SURPRISED", "CALM", "UNKNOWN", "FEAR"
|
4031
|
+
# resp.unrecognized_faces[0].emotions[0].confidence #=> Float
|
4032
|
+
# resp.unrecognized_faces[0].smile.value #=> Boolean
|
4033
|
+
# resp.unrecognized_faces[0].smile.confidence #=> Float
|
4001
4034
|
# resp.orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
|
4002
4035
|
#
|
4003
4036
|
# @overload recognize_celebrities(params = {})
|
@@ -5216,7 +5249,7 @@ module Aws::Rekognition
|
|
5216
5249
|
params: params,
|
5217
5250
|
config: config)
|
5218
5251
|
context[:gem_name] = 'aws-sdk-rekognition'
|
5219
|
-
context[:gem_version] = '1.
|
5252
|
+
context[:gem_version] = '1.55.0'
|
5220
5253
|
Seahorse::Client::Request.new(handlers, context)
|
5221
5254
|
end
|
5222
5255
|
|
@@ -178,6 +178,8 @@ module Aws::Rekognition
|
|
178
178
|
KinesisVideoArn = Shapes::StringShape.new(name: 'KinesisVideoArn')
|
179
179
|
KinesisVideoStream = Shapes::StructureShape.new(name: 'KinesisVideoStream')
|
180
180
|
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
181
|
+
KnownGender = Shapes::StructureShape.new(name: 'KnownGender')
|
182
|
+
KnownGenderType = Shapes::StringShape.new(name: 'KnownGenderType')
|
181
183
|
Label = Shapes::StructureShape.new(name: 'Label')
|
182
184
|
LabelDetection = Shapes::StructureShape.new(name: 'LabelDetection')
|
183
185
|
LabelDetectionSortBy = Shapes::StringShape.new(name: 'LabelDetectionSortBy')
|
@@ -396,6 +398,7 @@ module Aws::Rekognition
|
|
396
398
|
Celebrity.add_member(:id, Shapes::ShapeRef.new(shape: RekognitionUniqueId, location_name: "Id"))
|
397
399
|
Celebrity.add_member(:face, Shapes::ShapeRef.new(shape: ComparedFace, location_name: "Face"))
|
398
400
|
Celebrity.add_member(:match_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MatchConfidence"))
|
401
|
+
Celebrity.add_member(:known_gender, Shapes::ShapeRef.new(shape: KnownGender, location_name: "KnownGender"))
|
399
402
|
Celebrity.struct_class = Types::Celebrity
|
400
403
|
|
401
404
|
CelebrityDetail.add_member(:urls, Shapes::ShapeRef.new(shape: Urls, location_name: "Urls"))
|
@@ -442,6 +445,8 @@ module Aws::Rekognition
|
|
442
445
|
ComparedFace.add_member(:landmarks, Shapes::ShapeRef.new(shape: Landmarks, location_name: "Landmarks"))
|
443
446
|
ComparedFace.add_member(:pose, Shapes::ShapeRef.new(shape: Pose, location_name: "Pose"))
|
444
447
|
ComparedFace.add_member(:quality, Shapes::ShapeRef.new(shape: ImageQuality, location_name: "Quality"))
|
448
|
+
ComparedFace.add_member(:emotions, Shapes::ShapeRef.new(shape: Emotions, location_name: "Emotions"))
|
449
|
+
ComparedFace.add_member(:smile, Shapes::ShapeRef.new(shape: Smile, location_name: "Smile"))
|
445
450
|
ComparedFace.struct_class = Types::ComparedFace
|
446
451
|
|
447
452
|
ComparedFaceList.member = Shapes::ShapeRef.new(shape: ComparedFace)
|
@@ -735,6 +740,7 @@ module Aws::Rekognition
|
|
735
740
|
|
736
741
|
GetCelebrityInfoResponse.add_member(:urls, Shapes::ShapeRef.new(shape: Urls, location_name: "Urls"))
|
737
742
|
GetCelebrityInfoResponse.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
743
|
+
GetCelebrityInfoResponse.add_member(:known_gender, Shapes::ShapeRef.new(shape: KnownGender, location_name: "KnownGender"))
|
738
744
|
GetCelebrityInfoResponse.struct_class = Types::GetCelebrityInfoResponse
|
739
745
|
|
740
746
|
GetCelebrityRecognitionRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
|
@@ -914,6 +920,9 @@ module Aws::Rekognition
|
|
914
920
|
KinesisVideoStream.add_member(:arn, Shapes::ShapeRef.new(shape: KinesisVideoArn, location_name: "Arn"))
|
915
921
|
KinesisVideoStream.struct_class = Types::KinesisVideoStream
|
916
922
|
|
923
|
+
KnownGender.add_member(:type, Shapes::ShapeRef.new(shape: KnownGenderType, location_name: "Type"))
|
924
|
+
KnownGender.struct_class = Types::KnownGender
|
925
|
+
|
917
926
|
Label.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
918
927
|
Label.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
919
928
|
Label.add_member(:instances, Shapes::ShapeRef.new(shape: Instances, location_name: "Instances"))
|
@@ -250,12 +250,18 @@ module Aws::Rekognition
|
|
250
250
|
# recognized face is the celebrity.
|
251
251
|
# @return [Float]
|
252
252
|
#
|
253
|
+
# @!attribute [rw] known_gender
|
254
|
+
# The known gender identity for the celebrity that matches the
|
255
|
+
# provided ID.
|
256
|
+
# @return [Types::KnownGender]
|
257
|
+
#
|
253
258
|
class Celebrity < Struct.new(
|
254
259
|
:urls,
|
255
260
|
:name,
|
256
261
|
:id,
|
257
262
|
:face,
|
258
|
-
:match_confidence
|
263
|
+
:match_confidence,
|
264
|
+
:known_gender)
|
259
265
|
SENSITIVE = []
|
260
266
|
include Aws::Structure
|
261
267
|
end
|
@@ -501,12 +507,26 @@ module Aws::Rekognition
|
|
501
507
|
# Identifies face image brightness and sharpness.
|
502
508
|
# @return [Types::ImageQuality]
|
503
509
|
#
|
510
|
+
# @!attribute [rw] emotions
|
511
|
+
# The emotions that appear to be expressed on the face, and the
|
512
|
+
# confidence level in the determination. Valid values include
|
513
|
+
# "Happy", "Sad", "Angry", "Confused", "Disgusted",
|
514
|
+
# "Surprised", "Calm", "Unknown", and "Fear".
|
515
|
+
# @return [Array<Types::Emotion>]
|
516
|
+
#
|
517
|
+
# @!attribute [rw] smile
|
518
|
+
# Indicates whether or not the face is smiling, and the confidence
|
519
|
+
# level in the determination.
|
520
|
+
# @return [Types::Smile]
|
521
|
+
#
|
504
522
|
class ComparedFace < Struct.new(
|
505
523
|
:bounding_box,
|
506
524
|
:confidence,
|
507
525
|
:landmarks,
|
508
526
|
:pose,
|
509
|
-
:quality
|
527
|
+
:quality,
|
528
|
+
:emotions,
|
529
|
+
:smile)
|
510
530
|
SENSITIVE = []
|
511
531
|
include Aws::Structure
|
512
532
|
end
|
@@ -1310,10 +1330,12 @@ module Aws::Rekognition
|
|
1310
1330
|
#
|
1311
1331
|
# @!attribute [rw] min_confidence
|
1312
1332
|
# Specifies the minimum confidence level for the labels to return.
|
1313
|
-
#
|
1314
|
-
# lower than this specified value. If you specify a
|
1315
|
-
#
|
1316
|
-
#
|
1333
|
+
# `DetectCustomLabels` doesn't return any labels with a confidence
|
1334
|
+
# value that's lower than this specified value. If you specify a
|
1335
|
+
# value of 0, `DetectCustomLabels` returns all labels, regardless of
|
1336
|
+
# the assumed threshold applied to each label. If you don't specify a
|
1337
|
+
# value for `MinConfidence`, `DetectCustomLabels` returns labels based
|
1338
|
+
# on the assumed threshold of each label.
|
1317
1339
|
# @return [Float]
|
1318
1340
|
#
|
1319
1341
|
class DetectCustomLabelsRequest < Struct.new(
|
@@ -2217,9 +2239,14 @@ module Aws::Rekognition
|
|
2217
2239
|
# The name of the celebrity.
|
2218
2240
|
# @return [String]
|
2219
2241
|
#
|
2242
|
+
# @!attribute [rw] known_gender
|
2243
|
+
# Retrieves the known gender for the celebrity.
|
2244
|
+
# @return [Types::KnownGender]
|
2245
|
+
#
|
2220
2246
|
class GetCelebrityInfoResponse < Struct.new(
|
2221
2247
|
:urls,
|
2222
|
-
:name
|
2248
|
+
:name,
|
2249
|
+
:known_gender)
|
2223
2250
|
SENSITIVE = []
|
2224
2251
|
include Aws::Structure
|
2225
2252
|
end
|
@@ -3368,6 +3395,19 @@ module Aws::Rekognition
|
|
3368
3395
|
include Aws::Structure
|
3369
3396
|
end
|
3370
3397
|
|
3398
|
+
# The known gender identity for the celebrity that matches the provided
|
3399
|
+
# ID.
|
3400
|
+
#
|
3401
|
+
# @!attribute [rw] type
|
3402
|
+
# A string value of the KnownGender info about the Celebrity.
|
3403
|
+
# @return [String]
|
3404
|
+
#
|
3405
|
+
class KnownGender < Struct.new(
|
3406
|
+
:type)
|
3407
|
+
SENSITIVE = []
|
3408
|
+
include Aws::Structure
|
3409
|
+
end
|
3410
|
+
|
3371
3411
|
# Structure containing details about the detected label, including the
|
3372
3412
|
# name, detected instances, parent labels, and level of confidence.
|
3373
3413
|
#
|
@@ -4189,7 +4229,10 @@ module Aws::Rekognition
|
|
4189
4229
|
|
4190
4230
|
# @!attribute [rw] celebrity_faces
|
4191
4231
|
# Details about each celebrity found in the image. Amazon Rekognition
|
4192
|
-
# can detect a maximum of 64 celebrities in an image.
|
4232
|
+
# can detect a maximum of 64 celebrities in an image. Each celebrity
|
4233
|
+
# object includes the following attributes: `Face`, `Confidence`,
|
4234
|
+
# `Emotions`, `Landmarks`, `Pose`, `Quality`, `Smile`, `Id`,
|
4235
|
+
# `KnownGender`, `MatchConfidence`, `Name`, `Urls`.
|
4193
4236
|
# @return [Array<Types::Celebrity>]
|
4194
4237
|
#
|
4195
4238
|
# @!attribute [rw] unrecognized_faces
|
@@ -4197,6 +4240,13 @@ module Aws::Rekognition
|
|
4197
4240
|
# @return [Array<Types::ComparedFace>]
|
4198
4241
|
#
|
4199
4242
|
# @!attribute [rw] orientation_correction
|
4243
|
+
# <note markdown="1"> Support for estimating image orientation using the the
|
4244
|
+
# OrientationCorrection field has ceased as of August 2021. Any
|
4245
|
+
# returned values for this field included in an API response will
|
4246
|
+
# always be NULL.
|
4247
|
+
#
|
4248
|
+
# </note>
|
4249
|
+
#
|
4200
4250
|
# The orientation of the input image (counterclockwise direction). If
|
4201
4251
|
# your application displays the image, you can use this value to
|
4202
4252
|
# correct the orientation. The bounding box coordinates returned in
|
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.55.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-08-
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|