X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FImage%2FOpenALPR.pm;h=81521ede80c947d7226d6b3e4f98d528b80bbf5e;hb=4d4051da2ad5f86a0faad11d662e36882f7ed8be;hp=c75a365e53051cb595e18339f8a3d698f6d6ea8f;hpb=470f642024f42dc141fee27be6e46f7f0c620714;p=image-openalpr.git diff --git a/lib/Image/OpenALPR.pm b/lib/Image/OpenALPR.pm index c75a365..81521ed 100644 --- a/lib/Image/OpenALPR.pm +++ b/lib/Image/OpenALPR.pm @@ -9,7 +9,7 @@ use JSON::MaybeXS qw/decode_json/; use XSLoader; BEGIN { - our $VERSION = '0.001'; + our $VERSION = '0.001001'; XSLoader::load('Image::OpenALPR', $VERSION); *initialise = \&initialize; *is_loaded = \&isLoaded; @@ -78,11 +78,12 @@ Takes one mandatory argument (the country rules to use, such as C or C) and two optional arguments: a path to the configuration file, and a path to the runtime_data directory. -Returns a new Image::OpenALPR instance. If initialization fails (for +Returns a new Image::OpenALPR instance. If initialisation fails (for example, if the chosen country is not available) an exception is thrown. =item $alpr->B(I<$file>) + =item $alpr->B(I<\$data>) Takes a path to an image file or a reference to the contents of an @@ -92,29 +93,34 @@ one for each plate found. In scalar context it returns only one such object (the first plate found), or undef if no plates were found. =item $alpr->B + =item $alpr->B Returns the version of the OpenALPR library. =item $alpr->B(I<$country>) + =item $alpr->B(I<$country>) Changes the country rules in use. =item $alpr->B(I<$prewarp>) + =item $alpr->B(I<$prewarp>) Sets the camera calibration values, as obtained from the -openalpr-utils-calibrate utility. Can also be set in the configuration -file. +C utility. Can also be set in the +configuration file. =item $alpr->B(I<$region>) + =item $alpr->B(I<$region>) Sets the expected region for pattern matching. This improves accuracy. The B flag is set on plates that match this pattern. =item $alpr->B(I<$n>) + =item $alpr->B(I<$n>) Sets the maximum number of candidates to return for one plate. Default