Imager::Search::Pattern - Search object for an image
my $pattern = Imager::Search::Pattern->new( driver => 'Imager::Search::Driver::HTML24', image => $Imager, ); my $regexp = $pattern->regexp;
Imager::Search::Pattern takes an Imager object, and converts it into a partially-compiled regular expression.
This partial regexp can then be quickly turned into the final Regexp once the widget of the target image is known, as well as being able to be cached.
This allows a single Imager::Search::Pattern object to be quickly applied to many different sizes of target images.
$pattern = Imager::Search::Pattern->new( driver => 'Imager::Search::Driver::HTML24', file => 'search/image.gif', cache => 1, );
See the SUPPORT section of the main Imager::Search module.
Adam Kennedy <adamk@cpan.org>
Copyright 2007 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Imager::Search, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager::Search
CPAN shell
perl -MCPAN -e shell install Imager::Search
For more information on module installation, please visit the detailed CPAN module installation guide.