Attention!
You need to create a cache beforehand in order to start and correctly operate the basic Face detection tool on GPU (see Optimizing the operation of Face detection on GPU).
To configure the basic Face detection tool, do the following:
If you need to use this detection tool for real-time face recognition, set the corresponding parameter to Yes (1, see Configuring real-time face recognition).
If you need to save age and gender information for each captured face in the database, select Yes in the corresponding field (1).
Note
The average error in age recognition is 5 years.
Analyzed framed are scaled down to a specified resolution (7, 1920 pixels on the longer side). This is how it works:
If the longer side of the source image exceeds the value specified in the Frame size change field, it is divided by two.
If the resulting resolution falls below the specified value, it is used further.
If the resulting resolution still exceeds the specified limit, it is divided by two, etc.
Note
For example, the source image resolution is 2048*1536, and the specified value is set to 1000.
In this case, the source resolution will be halved two times (512*384), as after the first division, the number of pixels on the longer side exceeds the limit (1024 > 1000).
Note
If detection is performed on a higher resolution stream and detection errors occur, it is recommended to reduce the compression.
Specify the minimum and maximum sizes of the captured faces as a percentage of the frame size (8).
In the Minimum threshold of face authenticity field, set the minimum level of face recognition accuracy for the creation of a track (9). You can set any value by trial-and-error. No less than 90 is recommended. The higher the value, the fewer faces are detected, while the recognition accuracy increases.
Select the processor for the face detection − CPU or NVIDIA GPU (10, see General information on configuring detection).
Attention!
It may take several minutes to launch the algorithm on NVIDIA GPU after you apply the settings.
If you use FaceCube integration (see Configuring FaceCube integration), activate the Send face images parameter (11).
Enter the time in milliseconds after which the face track is considered to be lost in the Track loss time field (12). Acceptable values range is [1; 10000]. This parameter applies when a face moves in a frame and gets hidden behind an obstacle for some time. If this time is less than the set value, the face will be recognized as the same.
In the preview window, set the rectangular area of the frame in which you want to perform face detection. To select the area, move the anchor points .
The basic Face detection tool is now configured.