The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

facecrop.pl - create crop from image using the largest face area

SYNTAX

  facecrop.pl filename.png

  facecrop.pl filename.png -o thumb_filename.png

  facecrop.pl scene.png -o faces_%03d.png

OPTIONS

  • --output-file - output file name

    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

  • --height - maximum height of the output image

  • --scale - scale factor for the output area around the face

    Default is 1.5 which seems to usually capture the "whole face" around the detected area.

  • --largest - only output the largest face found

  • --draw-box - draw a box around the detection area

  • --verbose - output more information during progress