]>
iEval git - image-openalpr.git/blob - t/Image-OpenALPR.t
1218eebe40f17679f9ca89a015776945041ddbf2
5 use Test
::More tests
=> 5;
6 BEGIN { use_ok
('Image::OpenALPR') };
8 my $alpr = Image
::OpenALPR
->new('eu');
10 my @plates = $alpr->recognise('t/ex.jpg');
11 is
@plates, 1, 'Found only one plate';
12 is
$plates[0]->plate, 'ZP36709', 'plate number';
13 cmp_ok
$plates[0]->confidence, '>=', 80, 'high confidence';
14 my @cands = $plates[0]->candidates;
15 is
@cands, 3, 'number of candidates matches top_n';
This page took 0.075138 seconds and 3 git commands to generate.