]> iEval git - image-openalpr.git/blame_incremental - t/Image-OpenALPR.t
Overload stringify in PlateResult.pm
[image-openalpr.git] / t / Image-OpenALPR.t
... / ...
CommitLineData
1#!/usr/bin/perl
2use strict;
3use warnings;
4
5use Test::More tests => 5;
6BEGIN { use_ok('Image::OpenALPR') };
7
8my $alpr = Image::OpenALPR->new('eu');
9$alpr->set_top_n(3);
10my @plates = $alpr->recognise('t/ex.jpg');
11is @plates, 1, 'Found only one plate';
12is $plates[0]->plate, 'ZP36709', 'plate number';
13cmp_ok $plates[0]->confidence, '>=', 80, 'high confidence';
14my @cands = $plates[0]->candidates;
15is @cands, 3, 'number of candidates matches top_n';
This page took 0.021327 seconds and 4 git commands to generate.