Automatically Enroll Unrecognized Faces

Media Server can automatically enroll unrecognized faces (add them to the training database).

A configuration to enroll unrecognized faces is included with Media Server (faceenroll.cfg, in the configurations folder). It contains the following steps:

The following procedure describes how to configure an enroll task, and the example configuration that includes all of these tasks is included below.

To automatically enroll faces

  1. Open the configuration that you want to modify.

  2. In the [Analysis] section, add a new task by setting the AnalysisEngineN parameter.

  3. Create a new configuration section that matches the name of the task and configure Media Server to enroll the images. Use the following configuration parameters:

    Type The engine to use. Set this parameter to Enroll.
    Module Set this parameter to Face.
    Input The track that contains the images to enroll.

    The name of the database to add the faces to.

    HPE recommends that you add faces to a new database, not the database you use for recognition. An operator can then check the enrolled faces. For example, you should make sure that all of the images added to a face represent the same person. After verifying the enrolled faces, you can move them to the correct recognition database.

    PostAction Specifies what Media Server should do after enrolling an image in the database. The default value, build, trains Media Server to recognize the face.

    Specifies whether Media Server should synchronize with the training database after enrolling an image.

    You might want to use this parameter if you are adding faces to the same database that is used for recognition. If an unrecognized face appears again but you have not trained Media Server and synchronized with the database, the face remains unrecognized. This means that Media Server adds another entry to the database for the same face.

    If you are enrolling faces in a different database to the one that is used for recognition, there is no need to set this parameter.

    Identifier The identifier to use when adding a new face to the database. HPE recommends using the macro, because this identifier is set by the face detection task and is unique for each detected face.

    For example:

  4. Save and close the configuration file. HPE recommends that you save your configuration files in the location specified by the ConfigDirectory parameter.