« blib/lib/Paws/Rekognition/DetectModerationLabelsResponse.pm
↑ Summary
blib/lib/Paws/Rekognition/DetectProtectiveEquipmentResponse.pm »
| 1 | |||
| 2 | package Paws::Rekognition::DetectProtectiveEquipment; | ||
| 3 | use Moose; | ||
| 4 | has Image => (is => 'ro', isa => 'Paws::Rekognition::Image', required => 1); | ||
| 5 | has SummarizationAttributes => (is => 'ro', isa => 'Paws::Rekognition::ProtectiveEquipmentSummarizationAttributes'); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DetectProtectiveEquipment'); | ||
| 10 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Rekognition::DetectProtectiveEquipmentResponse'); | ||
| 11 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::Rekognition::DetectProtectiveEquipment - Arguments for method DetectProtectiveEquipment on L<Paws::Rekognition> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method DetectProtectiveEquipment on the | ||
| 23 | L<Amazon Rekognition|Paws::Rekognition> service. Use the attributes of this class | ||
| 24 | as arguments to method DetectProtectiveEquipment. | ||
| 25 | |||
| 26 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DetectProtectiveEquipment. | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $rekognition = Paws->service('Rekognition'); | ||
| 31 | my $DetectProtectiveEquipmentResponse = | ||
| 32 | $rekognition->DetectProtectiveEquipment( | ||
| 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 | SummarizationAttributes => { | ||
| 42 | MinConfidence => 1.0, # max: 100 | ||
| 43 | RequiredEquipmentTypes => [ | ||
| 44 | 'FACE_COVER', ... # values: FACE_COVER, HAND_COVER, HEAD_COVER | ||
| 45 | ], | ||
| 46 | |||
| 47 | }, # OPTIONAL | ||
| 48 | ); | ||
| 49 | |||
| 50 | # Results: | ||
| 51 | my $Persons = $DetectProtectiveEquipmentResponse->Persons; | ||
| 52 | my $ProtectiveEquipmentModelVersion = | ||
| 53 | $DetectProtectiveEquipmentResponse->ProtectiveEquipmentModelVersion; | ||
| 54 | my $Summary = $DetectProtectiveEquipmentResponse->Summary; | ||
| 55 | |||
| 56 | # Returns a L<Paws::Rekognition::DetectProtectiveEquipmentResponse> object. | ||
| 57 | |||
| 58 | 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. | ||
| 59 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/rekognition/DetectProtectiveEquipment> | ||
| 60 | |||
| 61 | =head1 ATTRIBUTES | ||
| 62 | |||
| 63 | |||
| 64 | =head2 B<REQUIRED> Image => L<Paws::Rekognition::Image> | ||
| 65 | |||
| 66 | The image in which you want to detect PPE on detected persons. The | ||
| 67 | image can be passed as image bytes or you can reference an image stored | ||
| 68 | in an Amazon S3 bucket. | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 SummarizationAttributes => L<Paws::Rekognition::ProtectiveEquipmentSummarizationAttributes> | ||
| 73 | |||
| 74 | An array of PPE types that you want to summarize. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head1 SEE ALSO | ||
| 80 | |||
| 81 | This class forms part of L<Paws>, documenting arguments for method DetectProtectiveEquipment in L<Paws::Rekognition> | ||
| 82 | |||
| 83 | =head1 BUGS and CONTRIBUTIONS | ||
| 84 | |||
| 85 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 86 | |||
| 87 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 88 | |||
| 89 | =cut | ||
| 90 |