blib/lib/Paws/Rekognition/DetectCustomLabels.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Rekognition::DetectCustomLabels;
3 use Moose;
4 has Image => (is => 'ro', isa => 'Paws::Rekognition::Image', required => 1);
5 has MaxResults => (is => 'ro', isa => 'Int');
6 has MinConfidence => (is => 'ro', isa => 'Num');
7 has ProjectVersionArn => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DetectCustomLabels');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Rekognition::DetectCustomLabelsResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Rekognition::DetectCustomLabels - Arguments for method DetectCustomLabels on L<Paws::Rekognition>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method DetectCustomLabels on the
25 L<Amazon Rekognition|Paws::Rekognition> service. Use the attributes of this class
26 as arguments to method DetectCustomLabels.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DetectCustomLabels.
29  
30 =head1 SYNOPSIS
31  
32 my $rekognition = Paws->service('Rekognition');
33 my $DetectCustomLabelsResponse = $rekognition->DetectCustomLabels(
34 Image => {
35 Bytes => 'BlobImageBlob', # min: 1, max: 5242880; OPTIONAL
36 S3Object => {
37 Bucket => 'MyS3Bucket', # min: 3, max: 255; OPTIONAL
38 Name => 'MyS3ObjectName', # min: 1, max: 1024; OPTIONAL
39 Version => 'MyS3ObjectVersion', # min: 1, max: 1024; OPTIONAL
40 }, # OPTIONAL
41 },
42 ProjectVersionArn => 'MyProjectVersionArn',
43 MaxResults => 1, # OPTIONAL
44 MinConfidence => 1.0, # OPTIONAL
45 );
46  
47 # Results:
48 my $CustomLabels = $DetectCustomLabelsResponse->CustomLabels;
49  
50 # Returns a L<Paws::Rekognition::DetectCustomLabelsResponse> object.
51  
52 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.
53 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/rekognition/DetectCustomLabels>
54  
55 =head1 ATTRIBUTES
56  
57  
58 =head2 B<REQUIRED> Image => L<Paws::Rekognition::Image>
59  
60  
61  
62  
63  
64 =head2 MaxResults => Int
65  
66 Maximum number of results you want the service to return in the
67 response. The service returns the specified number of highest
68 confidence labels ranked from highest confidence to lowest.
69  
70  
71  
72 =head2 MinConfidence => Num
73  
74 Specifies the minimum confidence level for the labels to return. Amazon
75 Rekognition doesn't return any labels with a confidence lower than this
76 specified value. If you specify a value of 0, all labels are return,
77 regardless of the default thresholds that the model version applies.
78  
79  
80  
81 =head2 B<REQUIRED> ProjectVersionArn => Str
82  
83 The ARN of the model version that you want to use.
84  
85  
86  
87  
88 =head1 SEE ALSO
89  
90 This class forms part of L<Paws>, documenting arguments for method DetectCustomLabels in L<Paws::Rekognition>
91  
92 =head1 BUGS and CONTRIBUTIONS
93  
94 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
95  
96 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
97  
98 =cut
99