aws-sdk-rekognition 1.0.0.rc4 → 1.0.0.rc5
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 +96 -21
- data/lib/aws-sdk-rekognition/client_api.rb +33 -0
- data/lib/aws-sdk-rekognition/types.rb +123 -23
- 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: a69e8e4280cd0da712f034c5fc5395a84c2b4843
|
4
|
+
data.tar.gz: 2167f746687d49f12ce3ee69fb22080236cc36f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6861a56ae274bad133dd67a62b55d7378461b7fa24d0fc75e3213605620f8bff9863753e089c65771fe81922069052e8390e0c4a84216ef49b4b3e62a034a46
|
7
|
+
data.tar.gz: 4affdef535b7f6826de23f4847dddcb1938f7d759bdaa70bb513864628b6fc27dd66a5383a81d055856c284414158a7bd1810f4a825288d5d5d1b5da037a3974
|
data/lib/aws-sdk-rekognition.rb
CHANGED
@@ -18,6 +18,7 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
|
18
18
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
19
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
20
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
21
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
21
22
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
22
23
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
23
24
|
|
@@ -45,6 +46,7 @@ module Aws::Rekognition
|
|
45
46
|
add_plugin(Aws::Plugins::ResponsePaging)
|
46
47
|
add_plugin(Aws::Plugins::StubResponses)
|
47
48
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
49
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
48
50
|
add_plugin(Aws::Plugins::SignatureV4)
|
49
51
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
50
52
|
|
@@ -378,14 +380,17 @@ module Aws::Rekognition
|
|
378
380
|
# an S3 object.
|
379
381
|
#
|
380
382
|
# @option params [Array<String>] :attributes
|
381
|
-
# A list of facial attributes you
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
385
|
-
#
|
386
|
-
#
|
387
|
-
#
|
388
|
-
#
|
383
|
+
# A list of facial attributes you want to be returned. This can be the
|
384
|
+
# default list of attributes or all attributes. If you don't specify a
|
385
|
+
# value for `Attributes` or if you specify `["DEFAULT"]`, the API
|
386
|
+
# returns the following subset of facial attributes: `BoundingBox`,
|
387
|
+
# `Confidence`, `Pose`, `Quality` and `Landmarks`. If you provide
|
388
|
+
# `["ALL"]`, all facial attributes are returned but the operation will
|
389
|
+
# take longer to complete.
|
390
|
+
#
|
391
|
+
# If you provide both, `["ALL", "DEFAULT"]`, the service uses a logical
|
392
|
+
# AND operator to determine which attributes to return (in this case,
|
393
|
+
# all attributes).
|
389
394
|
#
|
390
395
|
# @return [Types::DetectFacesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
391
396
|
#
|
@@ -518,7 +523,7 @@ module Aws::Rekognition
|
|
518
523
|
# Amazon Rekognition doesn't return any labels with confidence lower
|
519
524
|
# than this specified value.
|
520
525
|
#
|
521
|
-
# If `
|
526
|
+
# If `MinConfidence` is not specified, the operation returns labels with
|
522
527
|
# a confidence values greater than or equal to 50 percent.
|
523
528
|
#
|
524
529
|
# @return [Types::DetectLabelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -555,6 +560,74 @@ module Aws::Rekognition
|
|
555
560
|
req.send_request(options)
|
556
561
|
end
|
557
562
|
|
563
|
+
# Detects explicit or suggestive adult content in a specified .jpeg or
|
564
|
+
# .png image. Use `DetectModerationLabels` to moderate images depending
|
565
|
+
# on your requirements. For example, you might want to filter images
|
566
|
+
# that contain nudity, but not images containing suggestive content.
|
567
|
+
#
|
568
|
+
# To filter images, use the labels returned by `DetectModerationLabels`
|
569
|
+
# to determine which types of content are appropriate. For information
|
570
|
+
# about moderation labels, see howitworks-moderateimage.
|
571
|
+
#
|
572
|
+
# @option params [required, Types::Image] :image
|
573
|
+
# Provides the source image either as bytes or an S3 object.
|
574
|
+
#
|
575
|
+
# The region for the S3 bucket containing the S3 object must match the
|
576
|
+
# region you use for Amazon Rekognition operations.
|
577
|
+
#
|
578
|
+
# You may need to Base64-encode the image bytes depending on the
|
579
|
+
# language you are using and whether or not you are using the AWS SDK.
|
580
|
+
# For more information, see example4.
|
581
|
+
#
|
582
|
+
# If you use the Amazon CLI to call Amazon Rekognition operations,
|
583
|
+
# passing image bytes using the Bytes property is not supported. You
|
584
|
+
# must first upload the image to an Amazon S3 bucket and then call the
|
585
|
+
# operation using the S3Object property.
|
586
|
+
#
|
587
|
+
# For Amazon Rekognition to process an S3 object, the user must have
|
588
|
+
# permission to access the S3 object. For more information, see
|
589
|
+
# manage-access-resource-policies.
|
590
|
+
#
|
591
|
+
# @option params [Float] :min_confidence
|
592
|
+
# Specifies the minimum confidence level for the labels to return.
|
593
|
+
# Amazon Rekognition doesn't return any labels with a confidence level
|
594
|
+
# lower than this specified value.
|
595
|
+
#
|
596
|
+
# If you don't specify `MinConfidence`, the operation returns labels
|
597
|
+
# with confidence values greater than or equal to 50 percent.
|
598
|
+
#
|
599
|
+
# @return [Types::DetectModerationLabelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
600
|
+
#
|
601
|
+
# * {Types::DetectModerationLabelsResponse#moderation_labels #moderation_labels} => Array<Types::ModerationLabel>
|
602
|
+
#
|
603
|
+
# @example Request syntax with placeholder values
|
604
|
+
#
|
605
|
+
# resp = client.detect_moderation_labels({
|
606
|
+
# image: { # required
|
607
|
+
# bytes: "data",
|
608
|
+
# s3_object: {
|
609
|
+
# bucket: "S3Bucket",
|
610
|
+
# name: "S3ObjectName",
|
611
|
+
# version: "S3ObjectVersion",
|
612
|
+
# },
|
613
|
+
# },
|
614
|
+
# min_confidence: 1.0,
|
615
|
+
# })
|
616
|
+
#
|
617
|
+
# @example Response structure
|
618
|
+
#
|
619
|
+
# resp.moderation_labels #=> Array
|
620
|
+
# resp.moderation_labels[0].confidence #=> Float
|
621
|
+
# resp.moderation_labels[0].name #=> String
|
622
|
+
# resp.moderation_labels[0].parent_name #=> String
|
623
|
+
#
|
624
|
+
# @overload detect_moderation_labels(params = {})
|
625
|
+
# @param [Hash] params ({})
|
626
|
+
def detect_moderation_labels(params = {}, options = {})
|
627
|
+
req = build_request(:detect_moderation_labels, params)
|
628
|
+
req.send_request(options)
|
629
|
+
end
|
630
|
+
|
558
631
|
# Detects faces in the input image and adds them to the specified
|
559
632
|
# collection.
|
560
633
|
#
|
@@ -590,8 +663,8 @@ module Aws::Rekognition
|
|
590
663
|
# `rekognition:IndexFaces` action.
|
591
664
|
#
|
592
665
|
# @option params [required, String] :collection_id
|
593
|
-
# ID of an existing collection to which you want to add the faces
|
594
|
-
# are detected in the input images.
|
666
|
+
# The ID of an existing collection to which you want to add the faces
|
667
|
+
# that are detected in the input images.
|
595
668
|
#
|
596
669
|
# @option params [required, Types::Image] :image
|
597
670
|
# Provides the source image either as bytes or an S3 object.
|
@@ -616,15 +689,17 @@ module Aws::Rekognition
|
|
616
689
|
# ID you want to assign to all the faces detected in the image.
|
617
690
|
#
|
618
691
|
# @option params [Array<String>] :detection_attributes
|
619
|
-
#
|
620
|
-
# the
|
621
|
-
#
|
622
|
-
#
|
623
|
-
#
|
624
|
-
#
|
625
|
-
#
|
626
|
-
#
|
627
|
-
#
|
692
|
+
# A list of facial attributes that you want to be returned. This can be
|
693
|
+
# the default list of attributes or all attributes. If you don't
|
694
|
+
# specify a value for `Attributes` or if you specify `["DEFAULT"]`, the
|
695
|
+
# API returns the following subset of facial attributes: `BoundingBox`,
|
696
|
+
# `Confidence`, `Pose`, `Quality` and `Landmarks`. If you provide
|
697
|
+
# `["ALL"]`, all facial attributes are returned but the operation will
|
698
|
+
# take longer to complete.
|
699
|
+
#
|
700
|
+
# If you provide both, `["ALL", "DEFAULT"]`, the service uses a logical
|
701
|
+
# AND operator to determine which attributes to return (in this case,
|
702
|
+
# all attributes).
|
628
703
|
#
|
629
704
|
# @return [Types::IndexFacesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
630
705
|
#
|
@@ -988,7 +1063,7 @@ module Aws::Rekognition
|
|
988
1063
|
params: params,
|
989
1064
|
config: config)
|
990
1065
|
context[:gem_name] = 'aws-sdk-rekognition'
|
991
|
-
context[:gem_version] = '1.0.0.
|
1066
|
+
context[:gem_version] = '1.0.0.rc5'
|
992
1067
|
Seahorse::Client::Request.new(handlers, context)
|
993
1068
|
end
|
994
1069
|
|
@@ -37,6 +37,8 @@ module Aws::Rekognition
|
|
37
37
|
DetectFacesResponse = Shapes::StructureShape.new(name: 'DetectFacesResponse')
|
38
38
|
DetectLabelsRequest = Shapes::StructureShape.new(name: 'DetectLabelsRequest')
|
39
39
|
DetectLabelsResponse = Shapes::StructureShape.new(name: 'DetectLabelsResponse')
|
40
|
+
DetectModerationLabelsRequest = Shapes::StructureShape.new(name: 'DetectModerationLabelsRequest')
|
41
|
+
DetectModerationLabelsResponse = Shapes::StructureShape.new(name: 'DetectModerationLabelsResponse')
|
40
42
|
Emotion = Shapes::StructureShape.new(name: 'Emotion')
|
41
43
|
EmotionName = Shapes::StringShape.new(name: 'EmotionName')
|
42
44
|
Emotions = Shapes::ListShape.new(name: 'Emotions')
|
@@ -78,6 +80,8 @@ module Aws::Rekognition
|
|
78
80
|
ListFacesRequest = Shapes::StructureShape.new(name: 'ListFacesRequest')
|
79
81
|
ListFacesResponse = Shapes::StructureShape.new(name: 'ListFacesResponse')
|
80
82
|
MaxFaces = Shapes::IntegerShape.new(name: 'MaxFaces')
|
83
|
+
ModerationLabel = Shapes::StructureShape.new(name: 'ModerationLabel')
|
84
|
+
ModerationLabels = Shapes::ListShape.new(name: 'ModerationLabels')
|
81
85
|
MouthOpen = Shapes::StructureShape.new(name: 'MouthOpen')
|
82
86
|
Mustache = Shapes::StructureShape.new(name: 'Mustache')
|
83
87
|
OrientationCorrection = Shapes::StringShape.new(name: 'OrientationCorrection')
|
@@ -180,6 +184,13 @@ module Aws::Rekognition
|
|
180
184
|
DetectLabelsResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
|
181
185
|
DetectLabelsResponse.struct_class = Types::DetectLabelsResponse
|
182
186
|
|
187
|
+
DetectModerationLabelsRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
188
|
+
DetectModerationLabelsRequest.add_member(:min_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MinConfidence"))
|
189
|
+
DetectModerationLabelsRequest.struct_class = Types::DetectModerationLabelsRequest
|
190
|
+
|
191
|
+
DetectModerationLabelsResponse.add_member(:moderation_labels, Shapes::ShapeRef.new(shape: ModerationLabels, location_name: "ModerationLabels"))
|
192
|
+
DetectModerationLabelsResponse.struct_class = Types::DetectModerationLabelsResponse
|
193
|
+
|
183
194
|
Emotion.add_member(:type, Shapes::ShapeRef.new(shape: EmotionName, location_name: "Type"))
|
184
195
|
Emotion.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
185
196
|
Emotion.struct_class = Types::Emotion
|
@@ -288,6 +299,13 @@ module Aws::Rekognition
|
|
288
299
|
ListFacesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
289
300
|
ListFacesResponse.struct_class = Types::ListFacesResponse
|
290
301
|
|
302
|
+
ModerationLabel.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
303
|
+
ModerationLabel.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
304
|
+
ModerationLabel.add_member(:parent_name, Shapes::ShapeRef.new(shape: String, location_name: "ParentName"))
|
305
|
+
ModerationLabel.struct_class = Types::ModerationLabel
|
306
|
+
|
307
|
+
ModerationLabels.member = Shapes::ShapeRef.new(shape: ModerationLabel)
|
308
|
+
|
291
309
|
MouthOpen.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
292
310
|
MouthOpen.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
293
311
|
MouthOpen.struct_class = Types::MouthOpen
|
@@ -440,6 +458,21 @@ module Aws::Rekognition
|
|
440
458
|
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
441
459
|
end)
|
442
460
|
|
461
|
+
api.add_operation(:detect_moderation_labels, Seahorse::Model::Operation.new.tap do |o|
|
462
|
+
o.name = "DetectModerationLabels"
|
463
|
+
o.http_method = "POST"
|
464
|
+
o.http_request_uri = "/"
|
465
|
+
o.input = Shapes::ShapeRef.new(shape: DetectModerationLabelsRequest)
|
466
|
+
o.output = Shapes::ShapeRef.new(shape: DetectModerationLabelsResponse)
|
467
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
468
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
469
|
+
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
470
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
471
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
472
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
473
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
474
|
+
end)
|
475
|
+
|
443
476
|
api.add_operation(:index_faces, Seahorse::Model::Operation.new.tap do |o|
|
444
477
|
o.name = "IndexFaces"
|
445
478
|
o.http_method = "POST"
|
@@ -367,14 +367,17 @@ module Aws::Rekognition
|
|
367
367
|
# @return [Types::Image]
|
368
368
|
#
|
369
369
|
# @!attribute [rw] attributes
|
370
|
-
# A list of facial attributes you
|
371
|
-
# default
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
370
|
+
# A list of facial attributes you want to be returned. This can be the
|
371
|
+
# default list of attributes or all attributes. If you don't specify
|
372
|
+
# a value for `Attributes` or if you specify `["DEFAULT"]`, the API
|
373
|
+
# returns the following subset of facial attributes: `BoundingBox`,
|
374
|
+
# `Confidence`, `Pose`, `Quality` and `Landmarks`. If you provide
|
375
|
+
# `["ALL"]`, all facial attributes are returned but the operation will
|
376
|
+
# take longer to complete.
|
377
|
+
#
|
378
|
+
# If you provide both, `["ALL", "DEFAULT"]`, the service uses a
|
379
|
+
# logical AND operator to determine which attributes to return (in
|
380
|
+
# this case, all attributes).
|
378
381
|
# @return [Array<String>]
|
379
382
|
#
|
380
383
|
class DetectFacesRequest < Struct.new(
|
@@ -443,7 +446,7 @@ module Aws::Rekognition
|
|
443
446
|
# Amazon Rekognition doesn't return any labels with confidence lower
|
444
447
|
# than this specified value.
|
445
448
|
#
|
446
|
-
# If `
|
449
|
+
# If `MinConfidence` is not specified, the operation returns labels
|
447
450
|
# with a confidence values greater than or equal to 50 percent.
|
448
451
|
# @return [Float]
|
449
452
|
#
|
@@ -479,6 +482,68 @@ module Aws::Rekognition
|
|
479
482
|
include Aws::Structure
|
480
483
|
end
|
481
484
|
|
485
|
+
# @note When making an API call, you may pass DetectModerationLabelsRequest
|
486
|
+
# data as a hash:
|
487
|
+
#
|
488
|
+
# {
|
489
|
+
# image: { # required
|
490
|
+
# bytes: "data",
|
491
|
+
# s3_object: {
|
492
|
+
# bucket: "S3Bucket",
|
493
|
+
# name: "S3ObjectName",
|
494
|
+
# version: "S3ObjectVersion",
|
495
|
+
# },
|
496
|
+
# },
|
497
|
+
# min_confidence: 1.0,
|
498
|
+
# }
|
499
|
+
#
|
500
|
+
# @!attribute [rw] image
|
501
|
+
# Provides the source image either as bytes or an S3 object.
|
502
|
+
#
|
503
|
+
# The region for the S3 bucket containing the S3 object must match the
|
504
|
+
# region you use for Amazon Rekognition operations.
|
505
|
+
#
|
506
|
+
# You may need to Base64-encode the image bytes depending on the
|
507
|
+
# language you are using and whether or not you are using the AWS SDK.
|
508
|
+
# For more information, see example4.
|
509
|
+
#
|
510
|
+
# If you use the Amazon CLI to call Amazon Rekognition operations,
|
511
|
+
# passing image bytes using the Bytes property is not supported. You
|
512
|
+
# must first upload the image to an Amazon S3 bucket and then call the
|
513
|
+
# operation using the S3Object property.
|
514
|
+
#
|
515
|
+
# For Amazon Rekognition to process an S3 object, the user must have
|
516
|
+
# permission to access the S3 object. For more information, see
|
517
|
+
# manage-access-resource-policies.
|
518
|
+
# @return [Types::Image]
|
519
|
+
#
|
520
|
+
# @!attribute [rw] min_confidence
|
521
|
+
# Specifies the minimum confidence level for the labels to return.
|
522
|
+
# Amazon Rekognition doesn't return any labels with a confidence
|
523
|
+
# level lower than this specified value.
|
524
|
+
#
|
525
|
+
# If you don't specify `MinConfidence`, the operation returns labels
|
526
|
+
# with confidence values greater than or equal to 50 percent.
|
527
|
+
# @return [Float]
|
528
|
+
#
|
529
|
+
class DetectModerationLabelsRequest < Struct.new(
|
530
|
+
:image,
|
531
|
+
:min_confidence)
|
532
|
+
include Aws::Structure
|
533
|
+
end
|
534
|
+
|
535
|
+
# @!attribute [rw] moderation_labels
|
536
|
+
# A list of labels for explicit or suggestive adult content found in
|
537
|
+
# the image. The list includes the top-level label and each child
|
538
|
+
# label detected in the image. This is useful for filtering specific
|
539
|
+
# categories of content.
|
540
|
+
# @return [Array<Types::ModerationLabel>]
|
541
|
+
#
|
542
|
+
class DetectModerationLabelsResponse < Struct.new(
|
543
|
+
:moderation_labels)
|
544
|
+
include Aws::Structure
|
545
|
+
end
|
546
|
+
|
482
547
|
# The emotions detected on the face, and the confidence level in the
|
483
548
|
# determination. For example, HAPPY, SAD, and ANGRY.
|
484
549
|
#
|
@@ -781,15 +846,18 @@ module Aws::Rekognition
|
|
781
846
|
include Aws::Structure
|
782
847
|
end
|
783
848
|
|
784
|
-
# Identifies image brightness and sharpness.
|
849
|
+
# Identifies face image brightness and sharpness.
|
785
850
|
#
|
786
851
|
# @!attribute [rw] brightness
|
787
852
|
# Value representing brightness of the face. The service returns a
|
788
|
-
# value between 0 and
|
853
|
+
# value between 0 and 100 (inclusive). A higher value indicates a
|
854
|
+
# brighter face image.
|
789
855
|
# @return [Float]
|
790
856
|
#
|
791
857
|
# @!attribute [rw] sharpness
|
792
|
-
# Value representing sharpness of the face.
|
858
|
+
# Value representing sharpness of the face. The service returns a
|
859
|
+
# value between 0 and 100 (inclusive). A higher value indicates a
|
860
|
+
# sharper face image.
|
793
861
|
# @return [Float]
|
794
862
|
#
|
795
863
|
class ImageQuality < Struct.new(
|
@@ -816,8 +884,8 @@ module Aws::Rekognition
|
|
816
884
|
# }
|
817
885
|
#
|
818
886
|
# @!attribute [rw] collection_id
|
819
|
-
# ID of an existing collection to which you want to add the faces
|
820
|
-
# are detected in the input images.
|
887
|
+
# The ID of an existing collection to which you want to add the faces
|
888
|
+
# that are detected in the input images.
|
821
889
|
# @return [String]
|
822
890
|
#
|
823
891
|
# @!attribute [rw] image
|
@@ -845,15 +913,17 @@ module Aws::Rekognition
|
|
845
913
|
# @return [String]
|
846
914
|
#
|
847
915
|
# @!attribute [rw] detection_attributes
|
848
|
-
#
|
849
|
-
# the
|
850
|
-
#
|
851
|
-
#
|
852
|
-
#
|
853
|
-
#
|
854
|
-
#
|
855
|
-
#
|
856
|
-
#
|
916
|
+
# A list of facial attributes that you want to be returned. This can
|
917
|
+
# be the default list of attributes or all attributes. If you don't
|
918
|
+
# specify a value for `Attributes` or if you specify `["DEFAULT"]`,
|
919
|
+
# the API returns the following subset of facial attributes:
|
920
|
+
# `BoundingBox`, `Confidence`, `Pose`, `Quality` and `Landmarks`. If
|
921
|
+
# you provide `["ALL"]`, all facial attributes are returned but the
|
922
|
+
# operation will take longer to complete.
|
923
|
+
#
|
924
|
+
# If you provide both, `["ALL", "DEFAULT"]`, the service uses a
|
925
|
+
# logical AND operator to determine which attributes to return (in
|
926
|
+
# this case, all attributes).
|
857
927
|
# @return [Array<String>]
|
858
928
|
#
|
859
929
|
class IndexFacesRequest < Struct.new(
|
@@ -1017,6 +1087,36 @@ module Aws::Rekognition
|
|
1017
1087
|
include Aws::Structure
|
1018
1088
|
end
|
1019
1089
|
|
1090
|
+
# Provides information about a single type of moderated content found in
|
1091
|
+
# an image. Each type of moderated content has a label within a
|
1092
|
+
# hierarchical taxonomy. For more information, see
|
1093
|
+
# howitworks-moderateimage.
|
1094
|
+
#
|
1095
|
+
# @!attribute [rw] confidence
|
1096
|
+
# Specifies the confidence that Amazon Rekognition has that the label
|
1097
|
+
# has been correctly identified.
|
1098
|
+
#
|
1099
|
+
# If you don't specify the `MinConfidence` parameter in the call to
|
1100
|
+
# `DetectModerationLabels`, the operation returns labels with a
|
1101
|
+
# confidence value greater than or equal to 50 percent.
|
1102
|
+
# @return [Float]
|
1103
|
+
#
|
1104
|
+
# @!attribute [rw] name
|
1105
|
+
# The label name for the type of content detected in the image.
|
1106
|
+
# @return [String]
|
1107
|
+
#
|
1108
|
+
# @!attribute [rw] parent_name
|
1109
|
+
# The name for the parent label. Labels at the top-level of the
|
1110
|
+
# hierarchy have the parent label `""`.
|
1111
|
+
# @return [String]
|
1112
|
+
#
|
1113
|
+
class ModerationLabel < Struct.new(
|
1114
|
+
:confidence,
|
1115
|
+
:name,
|
1116
|
+
:parent_name)
|
1117
|
+
include Aws::Structure
|
1118
|
+
end
|
1119
|
+
|
1020
1120
|
# Indicates whether or not the mouth on the face is open, and the
|
1021
1121
|
# confidence level in the determination.
|
1022
1122
|
#
|
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.0.0.
|
4
|
+
version: 1.0.0.rc5
|
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: 2017-
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|