« blib/lib/Paws/Rekognition/DetectLabelsResponse.pm
↑ Summary
blib/lib/Paws/Rekognition/DetectModerationLabelsResponse.pm »
| 1 | |||
| 2 | package Paws::Rekognition::DetectModerationLabels; | ||
| 3 | use Moose; | ||
| 4 | has HumanLoopConfig => (is => 'ro', isa => 'Paws::Rekognition::HumanLoopConfig'); | ||
| 5 | has Image => (is => 'ro', isa => 'Paws::Rekognition::Image', required => 1); | ||
| 6 | has MinConfidence => (is => 'ro', isa => 'Num'); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DetectModerationLabels'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Rekognition::DetectModerationLabelsResponse'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::Rekognition::DetectModerationLabels - Arguments for method DetectModerationLabels on L<Paws::Rekognition> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method DetectModerationLabels on the | ||
| 24 | L<Amazon Rekognition|Paws::Rekognition> service. Use the attributes of this class | ||
| 25 | as arguments to method DetectModerationLabels. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DetectModerationLabels. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $rekognition = Paws->service('Rekognition'); | ||
| 32 | my $DetectModerationLabelsResponse = $rekognition->DetectModerationLabels( | ||
| 33 | Image => { | ||
| 34 | Bytes => 'BlobImageBlob', # min: 1, max: 5242880; OPTIONAL | ||
| 35 | S3Object => { | ||
| 36 | Bucket => 'MyS3Bucket', # min: 3, max: 255; OPTIONAL | ||
| 37 | Name => 'MyS3ObjectName', # min: 1, max: 1024; OPTIONAL | ||
| 38 | Version => 'MyS3ObjectVersion', # min: 1, max: 1024; OPTIONAL | ||
| 39 | }, # OPTIONAL | ||
| 40 | }, | ||
| 41 | HumanLoopConfig => { | ||
| 42 | FlowDefinitionArn => 'MyFlowDefinitionArn', # max: 256 | ||
| 43 | HumanLoopName => 'MyHumanLoopName', # min: 1, max: 63 | ||
| 44 | DataAttributes => { | ||
| 45 | ContentClassifiers => [ | ||
| 46 | 'FreeOfPersonallyIdentifiableInformation', | ||
| 47 | ... # values: FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent | ||
| 48 | ], # max: 256; OPTIONAL | ||
| 49 | }, # OPTIONAL | ||
| 50 | }, # OPTIONAL | ||
| 51 | MinConfidence => 1.0, # OPTIONAL | ||
| 52 | ); | ||
| 53 | |||
| 54 | # Results: | ||
| 55 | my $HumanLoopActivationOutput = | ||
| 56 | $DetectModerationLabelsResponse->HumanLoopActivationOutput; | ||
| 57 | my $ModerationLabels = $DetectModerationLabelsResponse->ModerationLabels; | ||
| 58 | my $ModerationModelVersion = | ||
| 59 | $DetectModerationLabelsResponse->ModerationModelVersion; | ||
| 60 | |||
| 61 | # Returns a L<Paws::Rekognition::DetectModerationLabelsResponse> object. | ||
| 62 | |||
| 63 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 64 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/rekognition/DetectModerationLabels> | ||
| 65 | |||
| 66 | =head1 ATTRIBUTES | ||
| 67 | |||
| 68 | |||
| 69 | =head2 HumanLoopConfig => L<Paws::Rekognition::HumanLoopConfig> | ||
| 70 | |||
| 71 | Sets up the configuration for human evaluation, including the | ||
| 72 | FlowDefinition the image will be sent to. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 B<REQUIRED> Image => L<Paws::Rekognition::Image> | ||
| 77 | |||
| 78 | The input image as base64-encoded bytes or an S3 object. If you use the | ||
| 79 | AWS CLI to call Amazon Rekognition operations, passing base64-encoded | ||
| 80 | image bytes is not supported. | ||
| 81 | |||
| 82 | If you are using an AWS SDK to call Amazon Rekognition, you might not | ||
| 83 | need to base64-encode image bytes passed using the C<Bytes> field. For | ||
| 84 | more information, see Images in the Amazon Rekognition developer guide. | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head2 MinConfidence => Num | ||
| 89 | |||
| 90 | Specifies the minimum confidence level for the labels to return. Amazon | ||
| 91 | Rekognition doesn't return any labels with a confidence level lower | ||
| 92 | than this specified value. | ||
| 93 | |||
| 94 | If you don't specify C<MinConfidence>, the operation returns labels | ||
| 95 | with confidence values greater than or equal to 50 percent. | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head1 SEE ALSO | ||
| 101 | |||
| 102 | This class forms part of L<Paws>, documenting arguments for method DetectModerationLabels in L<Paws::Rekognition> | ||
| 103 | |||
| 104 | =head1 BUGS and CONTRIBUTIONS | ||
| 105 | |||
| 106 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 107 | |||
| 108 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 109 | |||
| 110 | =cut | ||
| 111 |