line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Azure::CognitiveServices::Face; |
2
|
29
|
|
|
29
|
|
418292
|
use 5.008001; |
|
29
|
|
|
|
|
113
|
|
3
|
29
|
|
|
29
|
|
155
|
use strict; |
|
29
|
|
|
|
|
64
|
|
|
29
|
|
|
|
|
551
|
|
4
|
29
|
|
|
29
|
|
131
|
use warnings; |
|
29
|
|
|
|
|
65
|
|
|
29
|
|
|
|
|
928
|
|
5
|
29
|
|
|
29
|
|
9973
|
use Net::Azure::CognitiveServices::Face::Face; |
|
29
|
|
|
|
|
104
|
|
|
29
|
|
|
|
|
817
|
|
6
|
29
|
|
|
29
|
|
12727
|
use Net::Azure::CognitiveServices::Face::FaceList; |
|
29
|
|
|
|
|
90
|
|
|
29
|
|
|
|
|
680
|
|
7
|
29
|
|
|
29
|
|
11171
|
use Net::Azure::CognitiveServices::Face::Person; |
|
29
|
|
|
|
|
86
|
|
|
29
|
|
|
|
|
690
|
|
8
|
29
|
|
|
29
|
|
10816
|
use Net::Azure::CognitiveServices::Face::PersonGroup; |
|
29
|
|
|
|
|
86
|
|
|
29
|
|
|
|
|
5089
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = "0.02"; |
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
|
389
|
my ($class, $key) = @_; |
18
|
28
|
50
|
|
|
|
114
|
if ($key) { |
19
|
28
|
|
|
|
|
80
|
$ACCESS_KEY = $key; |
20
|
|
|
|
|
|
|
} |
21
|
28
|
|
|
|
|
79
|
return $ACCESS_KEY; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub endpoint { |
25
|
1
|
|
|
1
|
1
|
5
|
my ($class, $url) = @_; |
26
|
1
|
50
|
|
|
|
3
|
if ($url) { |
27
|
1
|
|
|
|
|
3
|
$ENDPOINT = $url; |
28
|
|
|
|
|
|
|
} |
29
|
1
|
|
|
|
|
2
|
return $ENDPOINT; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub AUTOLOAD { |
33
|
28
|
|
|
28
|
|
285
|
my $class = shift; |
34
|
28
|
|
|
|
|
68
|
my $subclass = $AUTOLOAD; |
35
|
28
|
|
33
|
|
|
456
|
$INSTANCES->{$subclass} ||= $subclass->new(access_key => $ACCESS_KEY, endpoint => $ENDPOINT); |
36
|
28
|
|
|
|
|
452
|
$INSTANCES->{$subclass}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
__END__ |