facecrop.pl - create crop from image using the largest face area
facecrop.pl filename.png facecrop.pl filename.png -o thumb_filename.png facecrop.pl scene.png -o faces_%03d.png
--output-file - output file name
--output-file
The output file name will be used as a template if more than one face is detected. Supply a sprintf() template (in other words: include a %s).
--width - maximum width of the output image
--width
--height - maximum height of the output image
--height
--scale - scale factor for the output area around the face
--scale
Default is 1.5 which seems to usually capture the "whole face" around the detected area.
--largest - only output the largest face found
--largest
--draw-box - draw a box around the detection area
--draw-box
--verbose - output more information during progress
--verbose
To install Image::CCV, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::CCV
CPAN shell
perl -MCPAN -e shell install Image::CCV
For more information on module installation, please visit the detailed CPAN module installation guide.