The procedure of configuring the archive depth of images, vectors, and metadata of captured faces is intended for automatic archive cleanup. The archive is cleaned when one of the conditions (see below) occurs, whichever occurs first.

Archive cleanup by remaining free space on the disk

To clean the archive by the remaining free space on the disk, set the size of the required remaining free space on the disk in megabytes in the FaceDBFreeMB registry key. Once the specified value is reached, the old images, vectors, and metadata of captured faces will be deleted (see Registry keys reference guide, for details about working with the registry, see Working with Windows OS registry). By default, the size of the remaining free disk space is 1000 megabytes.

Once the specified size is reached, the FaceDB folders are cleaned, and the corresponding metadata are removed from the database. The cleanup is performed on a loop in portions equivalent to 1000 megabytes.

Archive cleanup by retention time

To clean the archive by the retention time, do the following:

  1. Go to the settings panel of the Face recognition server object.
  2. In the Keep archive of recognized faces for (days) field, enter the time period (in days) within which the recognized face images, vectors, and metadata must be stored in the database. If you enter 0, then the archive is cleaned every 3 minutes.

    Once the specified retention time has expired, the FaceDB folders are cleaned, and the corresponding metadata are removed from the databaseThe cleanup is performed on a loop every day at 00:00.

  3. Click the Apply button to save the changes.

Archive cleanup by retention time is complete.