Go to documentation repository
Page History
...
To fine-tune the face detection tool, do as follows:
- If necessary, set Yes for the Advanced logging for SDK parameter (1).
- Select a face detection algorithm (3):
- Algorithm 1 − the recognition speed depends on the background and the number of faces in the frame. Works slower than Algorithm 3.
- Algorithm 2 − high speed, low accuracy. The recognition speed depends on the number of faces in the frame.
- Algorithm 3 − average speed, high accuracy. The recognition speed depends on the resolution of the image. Optimal for most scenes.
- Configure face rotation angle analysis:
- If it is necessary to determine the face rotation angle, then set Yes for the Analyze face rotation angle parameter (12).
- In the Face rotation pitch (°) field (34), set the allowable face tilt up/down angle in degrees. The value should be in the range [0; 90].
- In the Face rotation roll (°) field (45), set the allowable face tilt right/left angle in degrees. The value should be in the range [0; 90].
- In the Face rotation yaw from (°) field (56), set the minimum allowable angle of face rotation to the right or left. The value should be in the range [-90; 90].
In the Face rotation yaw to (°) field (67), set the maximum allowable angle of face rotation to the right or left. The value should be in the range [-90; 90].
- If it is necessary to determine the face rotation angle, then set Yes for the Analyze face rotation angle parameter (12).
- Select a face detection algorithm (2):
- ALG1 − high speed, low accuracy.
- ALG2 − average speed, average accuracy.
- ALG3 − low speed, high accuracy.
- Set up false mask detections filtering:
- To apply filters, set Yes for the False mask detections filtering parameter (7).
- Set the minimal percentage of probability which makes the additional algorithm identify a track as a masked face in the Minimum filtering threshold for face mask detection field (13). If the algorithm takes a decision that the track relates to a masked face with a probability value lower than the specified threshold, the track will be ignored. Set the value by trial-and-error, values over 30 are recommended.
- Set the minimum threshold value for mask detection (9). Set a value by trial-and-error, values over 70 are recommended.
- Set the minimum quality of a facial image for recognition with a mask (10, see Configuring masks detection). Set the value by trial-and-error, values over 30 are recommended.
- Set the minimum quality of a facial image for recognition without a mask (11). Set the value by trial-and-error, values over 50 are recommended.
- If it is necessary to filter out false positives, set the minimum percentage of probability which makes the algorithm identify a track as a human face in the Minimum filtering threshold field (12, see Configuring Face detection (VL)). If the algorithm takes a decision that the track relates to a face with a probability value lower than the specified threshold, the track will be ignored. Set the value by trial-and-error, values over 50 are recommended.
- If it is necessary for the detection tool to use a color frame for processing, then set Yes for the Process color frames parameter (15). By default, a black and white frame is processed.
- In the Minimum number of detections field (8), enter the time in milliseconds in the range [1; 10000], after which the track will be considered a detected face.
- In the Number of frames between detections field (9), enter the time in milliseconds in the range [1; 10000]. The lower the value, the more likely the TrackEngine will detect a new face as soon as it appears in the selected area.
In the Number of frames without detections field (10), enter the time in milliseconds in the range [1; 10000]. If there is no face detection in the selected area, the TrackEngine will continue to process the specified number of frames before the track is considered lost.
Info title Note TrackEngine does not perform face recognition. It tracks the position of one person's face in a sequence of frames, choosing the best frame and preparing the necessary data for external systems.
TrackEngine is based on face detection and analysis methods provided by the FaceEngine library.
Specify the Number of threads per recognition channel (11). The value should be in the range [1; 256].
- In the Track timeout field (12), enter the time in seconds in the range [1; 60], after which the face track is considered lostConfigure the repeated face recognition ignoring:
- If it is necessary to ignore repeated recognition of the same face, then set Yes for the Ignore repeated recognitions parameter (8).
- In the Repeated recognitions similarity threshold field (16), set the similarity threshold of a face with the previous recognized ones in percentage from 0 to 100. If the similarity threshold is below the specified value, then the face will be recognized as a new one. In the Period of ignoring repeated recognitions field (14), set the period in minutes during which new recognized faces will be compared with the previous ones to identify similarities. The value should be in the range [0; 30].
- Click the Apply button.
Fine-tuning the face detection tool (VL) is now complete.