Face detection, saving, and loading samples
The bin directory contains the executable file demo:
test_filecap
The program demonstrates face detection, saving and loading pbio::RawSample
.
Launch parameters:
- path to the library file
libfacerec.so
orfacerec.dll
- path to the directory conf/facerec
- name of the detector configuration file
- paths to input images
Example of launching from the directory bin:
- Windows
- Linux
test_filecap facerec.dll ../conf/facerec common_capturer4.xml set1/01100.jpg
./test_filecap ../lib/libfacerec.so ../conf/facerec common_capturer4.xml set1/01100.jpg
The result of face detection in the image is displayed in the window. The console displays the coordinates and orientations of the detected faces, as well as the paths to which the samples are saved. Error messages, if any, are also displayed in the console.
Source code: test_filecap.cpp
The OpenCV library is required for assembly.