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

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::Rekognition::BoundingBox;
3 use Moose;
4 has Height => (is => 'ro', isa => 'Num');
5 has Left => (is => 'ro', isa => 'Num');
6 has Top => (is => 'ro', isa => 'Num');
7 has Width => (is => 'ro', isa => 'Num');
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::Rekognition::BoundingBox
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::Rekognition::BoundingBox object:
27  
28 $service_obj->Method(Att1 => { Height => $value, ..., Width => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::Rekognition::BoundingBox object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->Height
36  
37 =head1 DESCRIPTION
38  
39 Identifies the bounding box around the label, face, text or personal
40 protective equipment. The C<left> (x-coordinate) and C<top>
41 (y-coordinate) are coordinates representing the top and left sides of
42 the bounding box. Note that the upper-left corner of the image is the
43 origin (0,0).
44  
45 The C<top> and C<left> values returned are ratios of the overall image
46 size. For example, if the input image is 700x200 pixels, and the
47 top-left coordinate of the bounding box is 350x50 pixels, the API
48 returns a C<left> value of 0.5 (350/700) and a C<top> value of 0.25
49 (50/200).
50  
51 The C<width> and C<height> values represent the dimensions of the
52 bounding box as a ratio of the overall image dimension. For example, if
53 the input image is 700x200 pixels, and the bounding box width is 70
54 pixels, the width returned is 0.1.
55  
56 The bounding box coordinates can have negative values. For example, if
57 Amazon Rekognition is able to detect a face that is at the image edge
58 and is only partially visible, the service can return coordinates that
59 are outside the image bounds and, depending on the image edge, you
60 might get negative values or values greater than 1 for the C<left> or
61 C<top> values.
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 Height => Num
67  
68 Height of the bounding box as a ratio of the overall image height.
69  
70  
71 =head2 Left => Num
72  
73 Left coordinate of the bounding box as a ratio of overall image width.
74  
75  
76 =head2 Top => Num
77  
78 Top coordinate of the bounding box as a ratio of overall image height.
79  
80  
81 =head2 Width => Num
82  
83 Width of the bounding box as a ratio of the overall image width.
84  
85  
86  
87 =head1 SEE ALSO
88  
89 This class forms part of L<Paws>, describing an object used in L<Paws::Rekognition>
90  
91 =head1 BUGS and CONTRIBUTIONS
92  
93 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
94  
95 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
96  
97 =cut
98