aws-sdk-rekognition 1.17.0 → 1.18.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/lib/aws-sdk-rekognition.rb +1 -1
- data/lib/aws-sdk-rekognition/client.rb +52 -4
- data/lib/aws-sdk-rekognition/client_api.rb +1 -0
- data/lib/aws-sdk-rekognition/types.rb +55 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f24ddac47f320869e78a045c586a2c7577f3189
|
4
|
+
data.tar.gz: 3ad843cb358bd28372ed2134ef8229695b483d0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b7dcb0434ac00e294b2a6b4aa67135bc0dc6ebe039b3cc4af65c9748235a92c25e663f54277a5862c3561ef4310c7adf207dde2148ccc63fed3d501fc33c693
|
7
|
+
data.tar.gz: 6223f3dfdb4d9996f76cd1a4cbbd45364e577a760c1d5ad880fd68c527780ae68ad7b24eabe8e30ccc89901ba2b4fa79a76f7d542fae489d302996a2920c96f6
|
data/lib/aws-sdk-rekognition.rb
CHANGED
@@ -272,11 +272,21 @@ module Aws::Rekognition
|
|
272
272
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
273
273
|
# base64-encoded image bytes is not supported.
|
274
274
|
#
|
275
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might not
|
276
|
+
# need to base64-encode image bytes passed using the `Bytes` field. For
|
277
|
+
# more information, see Images in the Amazon Rekognition developer
|
278
|
+
# guide.
|
279
|
+
#
|
275
280
|
# @option params [required, Types::Image] :target_image
|
276
281
|
# The target image as base64-encoded bytes or an S3 object. If you use
|
277
282
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
278
283
|
# base64-encoded image bytes is not supported.
|
279
284
|
#
|
285
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might not
|
286
|
+
# need to base64-encode image bytes passed using the `Bytes` field. For
|
287
|
+
# more information, see Images in the Amazon Rekognition developer
|
288
|
+
# guide.
|
289
|
+
#
|
280
290
|
# @option params [Float] :similarity_threshold
|
281
291
|
# The minimum level of confidence in the face matches that a match must
|
282
292
|
# meet to be included in the `FaceMatches` array.
|
@@ -789,6 +799,11 @@ module Aws::Rekognition
|
|
789
799
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
790
800
|
# base64-encoded image bytes is not supported.
|
791
801
|
#
|
802
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might not
|
803
|
+
# need to base64-encode image bytes passed using the `Bytes` field. For
|
804
|
+
# more information, see Images in the Amazon Rekognition developer
|
805
|
+
# guide.
|
806
|
+
#
|
792
807
|
# @option params [Array<String>] :attributes
|
793
808
|
# An array of facial attributes you want to be returned. This can be the
|
794
809
|
# default list of attributes or all attributes. If you don't specify a
|
@@ -1013,8 +1028,14 @@ module Aws::Rekognition
|
|
1013
1028
|
#
|
1014
1029
|
# @option params [required, Types::Image] :image
|
1015
1030
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
1016
|
-
# the AWS CLI to call Amazon Rekognition operations, passing
|
1017
|
-
#
|
1031
|
+
# the AWS CLI to call Amazon Rekognition operations, passing image bytes
|
1032
|
+
# is not supported. Images stored in an S3 Bucket do not need to be
|
1033
|
+
# base64-encoded.
|
1034
|
+
#
|
1035
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might not
|
1036
|
+
# need to base64-encode image bytes passed using the `Bytes` field. For
|
1037
|
+
# more information, see Images in the Amazon Rekognition developer
|
1038
|
+
# guide.
|
1018
1039
|
#
|
1019
1040
|
# @option params [Integer] :max_labels
|
1020
1041
|
# Maximum number of labels you want the service to return in the
|
@@ -1125,6 +1146,11 @@ module Aws::Rekognition
|
|
1125
1146
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
1126
1147
|
# base64-encoded image bytes is not supported.
|
1127
1148
|
#
|
1149
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might not
|
1150
|
+
# need to base64-encode image bytes passed using the `Bytes` field. For
|
1151
|
+
# more information, see Images in the Amazon Rekognition developer
|
1152
|
+
# guide.
|
1153
|
+
#
|
1128
1154
|
# @option params [Float] :min_confidence
|
1129
1155
|
# Specifies the minimum confidence level for the labels to return.
|
1130
1156
|
# Amazon Rekognition doesn't return any labels with a confidence level
|
@@ -1210,6 +1236,11 @@ module Aws::Rekognition
|
|
1210
1236
|
# use the AWS CLI to call Amazon Rekognition operations, you can't pass
|
1211
1237
|
# image bytes.
|
1212
1238
|
#
|
1239
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might not
|
1240
|
+
# need to base64-encode image bytes passed using the `Bytes` field. For
|
1241
|
+
# more information, see Images in the Amazon Rekognition developer
|
1242
|
+
# guide.
|
1243
|
+
#
|
1213
1244
|
# @return [Types::DetectTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1214
1245
|
#
|
1215
1246
|
# * {Types::DetectTextResponse#text_detections #text_detections} => Array<Types::TextDetection>
|
@@ -1510,6 +1541,7 @@ module Aws::Rekognition
|
|
1510
1541
|
# * {Types::GetContentModerationResponse#video_metadata #video_metadata} => Types::VideoMetadata
|
1511
1542
|
# * {Types::GetContentModerationResponse#moderation_labels #moderation_labels} => Array<Types::ContentModerationDetection>
|
1512
1543
|
# * {Types::GetContentModerationResponse#next_token #next_token} => String
|
1544
|
+
# * {Types::GetContentModerationResponse#moderation_model_version #moderation_model_version} => String
|
1513
1545
|
#
|
1514
1546
|
# @example Request syntax with placeholder values
|
1515
1547
|
#
|
@@ -1536,6 +1568,7 @@ module Aws::Rekognition
|
|
1536
1568
|
# resp.moderation_labels[0].moderation_label.name #=> String
|
1537
1569
|
# resp.moderation_labels[0].moderation_label.parent_name #=> String
|
1538
1570
|
# resp.next_token #=> String
|
1571
|
+
# resp.moderation_model_version #=> String
|
1539
1572
|
#
|
1540
1573
|
# @overload get_content_moderation(params = {})
|
1541
1574
|
# @param [Hash] params ({})
|
@@ -2129,7 +2162,7 @@ module Aws::Rekognition
|
|
2129
2162
|
# * A confidence value, `Confidence`, which indicates the confidence
|
2130
2163
|
# that the bounding box contains a face.
|
2131
2164
|
#
|
2132
|
-
# * A face ID, `
|
2165
|
+
# * A face ID, `FaceId`, assigned by the service for each face that's
|
2133
2166
|
# detected and stored.
|
2134
2167
|
#
|
2135
2168
|
# * An image ID, `ImageId`, assigned by the service for the input image.
|
@@ -2161,6 +2194,11 @@ module Aws::Rekognition
|
|
2161
2194
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
2162
2195
|
# base64-encoded image bytes isn't supported.
|
2163
2196
|
#
|
2197
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might not
|
2198
|
+
# need to base64-encode image bytes passed using the `Bytes` field. For
|
2199
|
+
# more information, see Images in the Amazon Rekognition developer
|
2200
|
+
# guide.
|
2201
|
+
#
|
2164
2202
|
# @option params [String] :external_image_id
|
2165
2203
|
# The ID you want to assign to all the faces detected in the image.
|
2166
2204
|
#
|
@@ -2801,6 +2839,11 @@ module Aws::Rekognition
|
|
2801
2839
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
2802
2840
|
# base64-encoded image bytes is not supported.
|
2803
2841
|
#
|
2842
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might not
|
2843
|
+
# need to base64-encode image bytes passed using the `Bytes` field. For
|
2844
|
+
# more information, see Images in the Amazon Rekognition developer
|
2845
|
+
# guide.
|
2846
|
+
#
|
2804
2847
|
# @return [Types::RecognizeCelebritiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2805
2848
|
#
|
2806
2849
|
# * {Types::RecognizeCelebritiesResponse#celebrity_faces #celebrity_faces} => Array<Types::Celebrity>
|
@@ -3046,6 +3089,11 @@ module Aws::Rekognition
|
|
3046
3089
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
3047
3090
|
# base64-encoded image bytes is not supported.
|
3048
3091
|
#
|
3092
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might not
|
3093
|
+
# need to base64-encode image bytes passed using the `Bytes` field. For
|
3094
|
+
# more information, see Images in the Amazon Rekognition developer
|
3095
|
+
# guide.
|
3096
|
+
#
|
3049
3097
|
# @option params [Integer] :max_faces
|
3050
3098
|
# Maximum number of faces to return. The operation returns the maximum
|
3051
3099
|
# number of faces with the highest confidence in the match.
|
@@ -3661,7 +3709,7 @@ module Aws::Rekognition
|
|
3661
3709
|
params: params,
|
3662
3710
|
config: config)
|
3663
3711
|
context[:gem_name] = 'aws-sdk-rekognition'
|
3664
|
-
context[:gem_version] = '1.
|
3712
|
+
context[:gem_version] = '1.18.0'
|
3665
3713
|
Seahorse::Client::Request.new(handlers, context)
|
3666
3714
|
end
|
3667
3715
|
|
@@ -505,6 +505,7 @@ module Aws::Rekognition
|
|
505
505
|
GetContentModerationResponse.add_member(:video_metadata, Shapes::ShapeRef.new(shape: VideoMetadata, location_name: "VideoMetadata"))
|
506
506
|
GetContentModerationResponse.add_member(:moderation_labels, Shapes::ShapeRef.new(shape: ContentModerationDetections, location_name: "ModerationLabels"))
|
507
507
|
GetContentModerationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
508
|
+
GetContentModerationResponse.add_member(:moderation_model_version, Shapes::ShapeRef.new(shape: String, location_name: "ModerationModelVersion"))
|
508
509
|
GetContentModerationResponse.struct_class = Types::GetContentModerationResponse
|
509
510
|
|
510
511
|
GetFaceDetectionRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
|
@@ -237,12 +237,22 @@ module Aws::Rekognition
|
|
237
237
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
238
238
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
239
239
|
# base64-encoded image bytes is not supported.
|
240
|
+
#
|
241
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might
|
242
|
+
# not need to base64-encode image bytes passed using the `Bytes`
|
243
|
+
# field. For more information, see Images in the Amazon Rekognition
|
244
|
+
# developer guide.
|
240
245
|
# @return [Types::Image]
|
241
246
|
#
|
242
247
|
# @!attribute [rw] target_image
|
243
248
|
# The target image as base64-encoded bytes or an S3 object. If you use
|
244
249
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
245
250
|
# base64-encoded image bytes is not supported.
|
251
|
+
#
|
252
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might
|
253
|
+
# not need to base64-encode image bytes passed using the `Bytes`
|
254
|
+
# field. For more information, see Images in the Amazon Rekognition
|
255
|
+
# developer guide.
|
246
256
|
# @return [Types::Image]
|
247
257
|
#
|
248
258
|
# @!attribute [rw] similarity_threshold
|
@@ -710,6 +720,11 @@ module Aws::Rekognition
|
|
710
720
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
711
721
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
712
722
|
# base64-encoded image bytes is not supported.
|
723
|
+
#
|
724
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might
|
725
|
+
# not need to base64-encode image bytes passed using the `Bytes`
|
726
|
+
# field. For more information, see Images in the Amazon Rekognition
|
727
|
+
# developer guide.
|
713
728
|
# @return [Types::Image]
|
714
729
|
#
|
715
730
|
# @!attribute [rw] attributes
|
@@ -777,8 +792,14 @@ module Aws::Rekognition
|
|
777
792
|
#
|
778
793
|
# @!attribute [rw] image
|
779
794
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
780
|
-
# the AWS CLI to call Amazon Rekognition operations, passing
|
781
|
-
#
|
795
|
+
# the AWS CLI to call Amazon Rekognition operations, passing image
|
796
|
+
# bytes is not supported. Images stored in an S3 Bucket do not need to
|
797
|
+
# be base64-encoded.
|
798
|
+
#
|
799
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might
|
800
|
+
# not need to base64-encode image bytes passed using the `Bytes`
|
801
|
+
# field. For more information, see Images in the Amazon Rekognition
|
802
|
+
# developer guide.
|
782
803
|
# @return [Types::Image]
|
783
804
|
#
|
784
805
|
# @!attribute [rw] max_labels
|
@@ -855,6 +876,11 @@ module Aws::Rekognition
|
|
855
876
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
856
877
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
857
878
|
# base64-encoded image bytes is not supported.
|
879
|
+
#
|
880
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might
|
881
|
+
# not need to base64-encode image bytes passed using the `Bytes`
|
882
|
+
# field. For more information, see Images in the Amazon Rekognition
|
883
|
+
# developer guide.
|
858
884
|
# @return [Types::Image]
|
859
885
|
#
|
860
886
|
# @!attribute [rw] min_confidence
|
@@ -906,6 +932,11 @@ module Aws::Rekognition
|
|
906
932
|
# The input image as base64-encoded bytes or an Amazon S3 object. If
|
907
933
|
# you use the AWS CLI to call Amazon Rekognition operations, you
|
908
934
|
# can't pass image bytes.
|
935
|
+
#
|
936
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might
|
937
|
+
# not need to base64-encode image bytes passed using the `Bytes`
|
938
|
+
# field. For more information, see Images in the Amazon Rekognition
|
939
|
+
# developer guide.
|
909
940
|
# @return [Types::Image]
|
910
941
|
#
|
911
942
|
class DetectTextRequest < Struct.new(
|
@@ -1425,12 +1456,18 @@ module Aws::Rekognition
|
|
1425
1456
|
# next set of moderation labels.
|
1426
1457
|
# @return [String]
|
1427
1458
|
#
|
1459
|
+
# @!attribute [rw] moderation_model_version
|
1460
|
+
# Version number of the moderation detection model that was used to
|
1461
|
+
# detect unsafe content.
|
1462
|
+
# @return [String]
|
1463
|
+
#
|
1428
1464
|
class GetContentModerationResponse < Struct.new(
|
1429
1465
|
:job_status,
|
1430
1466
|
:status_message,
|
1431
1467
|
:video_metadata,
|
1432
1468
|
:moderation_labels,
|
1433
|
-
:next_token
|
1469
|
+
:next_token,
|
1470
|
+
:moderation_model_version)
|
1434
1471
|
include Aws::Structure
|
1435
1472
|
end
|
1436
1473
|
|
@@ -1860,6 +1897,11 @@ module Aws::Rekognition
|
|
1860
1897
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
1861
1898
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
1862
1899
|
# base64-encoded image bytes isn't supported.
|
1900
|
+
#
|
1901
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might
|
1902
|
+
# not need to base64-encode image bytes passed using the `Bytes`
|
1903
|
+
# field. For more information, see Images in the Amazon Rekognition
|
1904
|
+
# developer guide.
|
1863
1905
|
# @return [Types::Image]
|
1864
1906
|
#
|
1865
1907
|
# @!attribute [rw] external_image_id
|
@@ -2502,6 +2544,11 @@ module Aws::Rekognition
|
|
2502
2544
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
2503
2545
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
2504
2546
|
# base64-encoded image bytes is not supported.
|
2547
|
+
#
|
2548
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might
|
2549
|
+
# not need to base64-encode image bytes passed using the `Bytes`
|
2550
|
+
# field. For more information, see Images in the Amazon Rekognition
|
2551
|
+
# developer guide.
|
2505
2552
|
# @return [Types::Image]
|
2506
2553
|
#
|
2507
2554
|
class RecognizeCelebritiesRequest < Struct.new(
|
@@ -2607,6 +2654,11 @@ module Aws::Rekognition
|
|
2607
2654
|
# The input image as base64-encoded bytes or an S3 object. If you use
|
2608
2655
|
# the AWS CLI to call Amazon Rekognition operations, passing
|
2609
2656
|
# base64-encoded image bytes is not supported.
|
2657
|
+
#
|
2658
|
+
# If you are using an AWS SDK to call Amazon Rekognition, you might
|
2659
|
+
# not need to base64-encode image bytes passed using the `Bytes`
|
2660
|
+
# field. For more information, see Images in the Amazon Rekognition
|
2661
|
+
# developer guide.
|
2610
2662
|
# @return [Types::Image]
|
2611
2663
|
#
|
2612
2664
|
# @!attribute [rw] max_faces
|
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.18.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: 2019-
|
11
|
+
date: 2019-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|