line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Azure::CognitiveServices::Face; |
2
|
29
|
|
|
29
|
|
1867764
|
use 5.008001; |
|
29
|
|
|
|
|
343
|
|
3
|
29
|
|
|
29
|
|
165
|
use strict; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
590
|
|
4
|
29
|
|
|
29
|
|
150
|
use warnings; |
|
29
|
|
|
|
|
75
|
|
|
29
|
|
|
|
|
925
|
|
5
|
29
|
|
|
29
|
|
12832
|
use Net::Azure::CognitiveServices::Face::Face; |
|
29
|
|
|
|
|
102
|
|
|
29
|
|
|
|
|
1002
|
|
6
|
29
|
|
|
29
|
|
14249
|
use Net::Azure::CognitiveServices::Face::FaceList; |
|
29
|
|
|
|
|
92
|
|
|
29
|
|
|
|
|
775
|
|
7
|
29
|
|
|
29
|
|
12768
|
use Net::Azure::CognitiveServices::Face::Person; |
|
29
|
|
|
|
|
470
|
|
|
29
|
|
|
|
|
855
|
|
8
|
29
|
|
|
29
|
|
12457
|
use Net::Azure::CognitiveServices::Face::PersonGroup; |
|
29
|
|
|
|
|
88
|
|
|
29
|
|
|
|
|
6238
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = "0.03"; |
11
|
|
|
|
|
|
|
our $AUTOLOAD; |
12
|
|
|
|
|
|
|
our $INSTANCES = {}; |
13
|
|
|
|
|
|
|
our $ACCESS_KEY; |
14
|
|
|
|
|
|
|
our $ENDPOINT = 'https://westus.api.cognitive.microsoft.com'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub access_key { |
17
|
28
|
|
|
28
|
1
|
2978
|
my ($class, $key) = @_; |
18
|
28
|
50
|
|
|
|
125
|
if ($key) { |
19
|
28
|
|
|
|
|
82
|
$ACCESS_KEY = $key; |
20
|
|
|
|
|
|
|
} |
21
|
28
|
|
|
|
|
81
|
return $ACCESS_KEY; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub endpoint { |
25
|
1
|
|
|
1
|
1
|
7
|
my ($class, $url) = @_; |
26
|
1
|
50
|
|
|
|
3
|
if ($url) { |
27
|
1
|
|
|
|
|
3
|
$ENDPOINT = $url; |
28
|
|
|
|
|
|
|
} |
29
|
1
|
|
|
|
|
3
|
return $ENDPOINT; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub AUTOLOAD { |
33
|
28
|
|
|
28
|
|
334
|
my $class = shift; |
34
|
28
|
|
|
|
|
76
|
my $subclass = $AUTOLOAD; |
35
|
28
|
|
33
|
|
|
451
|
$INSTANCES->{$subclass} ||= $subclass->new(access_key => $ACCESS_KEY, endpoint => $ENDPOINT); |
36
|
28
|
|
|
|
|
103
|
$INSTANCES->{$subclass}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
__END__ |