NAME
Image::ObjectDetect - detects objects from picture(using opencv)
SYNOPSIS
use
Image::ObjectDetect;
my
$cascade
=
'haarcascade_frontalface_alt2.xml'
;
my
$file
=
'picture.jpg'
;
my
$detector
= Image::ObjectDetect->new(
$cascade
);
@faces
=
$detector
->detect(
$file
);
for
my
$face
(
@faces
) {
$face
->{x},
"\n"
;
$face
->{y},
"\n"
;
$face
->{width},
"\n"
;
$face
->{height},
"\n"
;
}
# or just like this
my
@faces
= detect_objects(
$cascade
,
$file
);
DESCRIPTION
Image::ObjectDetect is a simple module to detect objects from picture using opencv.
It is available at: http://sourceforge.net/projects/opencvlibrary/
METHODS
FUNCTIONS
EXPORT
detect_objects
AUTHOR
Jiro Nishiguchi <jiro@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.