This demo provides an inference pipeline for multi-channel face detection. The demo uses Face Detection network. The corresponding pre-trained model delivered with the product is face-detection-retail-0004
, which is a primary detection network for finding faces.
For details on the models, please refer to the descriptions in the deployment_tools/intel_models
folder of the OpenVINO™ toolkit installation directory.
Other demo objectives are:
NOTE: Running the demo requires using at least one web camera attached to your machine.
On the start-up, the application reads command line parameters and loads the specified networks. The Face Detection network is required.
Running the application with the -h
option yields the following usage message:
For example, to run the demo with the pre-trained face detection model on FPGA with fallback on CPU, with one single camera, use the following command:
To run the demo using two recorded video files, use the following command:
Video files will be processed repeatedly.
You can also run the demo on web cameras and video files simultaneously by specifing both parameters: -nc <number of cams> -i <video files sequentially, separated by space>
. To run the demo with a single input source(a web camera or a video file), but several channels, specify an additional parameter: -duplicate_num 3
. You will see four channels: one real and three duplicated. With several input sources, the -duplicate_num
parameter will duplicate each of them.
NOTE: Before running the sample with another trained model, make sure the model is converted to the Inference Engine format (*.xml + *.bin) using the Model Optimizer tool.
The demo uses OpenCV to display the resulting bunch of frames with detections rendered as bounding boxes. On the top of the screen, the demo reports throughput (in frames per second). If needed, it also reports more detailed statistics (use -show_stats
option while running the demo to enable it).