There are two detection modes in SNFaceCrop: interactive mode and batch mode.
In interactive mode, you use the menus and user interfaces available in SNFaceCrop application window.
In batch mode, you run SNFaceCrop from command line. Batch mode detection is particularly useful if you want to detect faces in a large number of images. With batch mode detection you can let SNFaceCrop do the detection on multiple images and comeback later to get the results.
INTERACTIVE MODE DETECTION
To detect faces in an image in interactive mode:
- On the File menu, choose Open Image... and select the image to be detected.
The currently supported image formats are BMP, PNG, and JPG. - On the Detect menu, choose Start Detection... and wait until the detection is finished.
- After the detection is completed, if one or more faces are found, you can examine the detected face(s) in the Face tab.
BATCH MODE DETECTION
To detect faces in a single or multiple image files in batch mode:
- Open command prompt and go to the directory where SNFaceCrop.exe is located.
- Run SNFaceCrop by using the following syntax:
SNFaceCrop -d-f ...
is the location of the image files
, ,... are the image file names
You can also use wildcard for the image file names.
Example:
SNFaceCrop -d c:\myphotos -f photo1.jpg
SNFaceCrop -d c:\myphotos -f photo1.jpg photo2.jpg photo3.jpg
SNFaceCrop -d c:\myphotos -f *.bmp
- When the detection is finished, SNFaceCrop will open the directory where the detected face(s) are saved.
The results will be saved in the subdirectory cropped_faces under the image file directory.
The source code is also available from the same web site.