Initial commit
[image-openalpr.git] / t / Image-OpenALPR.t
CommitLineData
470f6420
MG
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.00928 seconds and 4 git commands to generate.