Media Server 25.4
Media Server Help

# BuildAllFaces

Trains Media Server to recognize any faces that exist in its database and have incomplete or out-of-date training (any faces that have one or more images with a status of `untrained`). For example, you must re-train a face if you add new face images.

Type: asynchronous

Parameter | Description | Required
--- | --- | ---
`database` | The name of a database to process. Set this parameter to train Media Server to recognize faces in the specified database only. By default, this action trains Media Server to recognize faces in all databases. | No
`gpudeviceid` | The device ID of the GPU to use, if you have enabled GPU acceleration and want to override the value of the GPUDeviceID configuration parameter. You can also set this parameter to `CPU`, to disable GPU acceleration for this action and use the CPU instead. | No
`numparallel` | The maximum number of threads to use to complete the training (default 1), subject to the limit specified by MaxNumParallel. | No

## Example

    /action=BuildAllFaces

    /action=BuildAllFaces&numparallel=2

## Response

This action is asynchronous, so Media Server always returns success accompanied by a token. You can use this token with the QueueInfo action to retrieve the status of your request.

    <autnresponse>
      <action>QUEUEINFO</action>
      <response>SUCCESS</response>
      <responsedata>
        <actions>
          <action>
            <status>Finished</status>
            <queued_time>2015-Nov-30 16:52:51</queued_time>
            <time_in_queue>0</time_in_queue>
            <process_start_time>2015-Nov-30 16:52:51</process_start_time>
            <time_processing>1</time_processing>
            <process_end_time>2015-Nov-30 16:52:52</process_end_time>
            <entry>
              <build>
                <image>
                  <index>1</index>
                  <label>expression_neutral</label>
                  <status>trained</status>
                </image>
              </build>
              <database>politicians</database>
              <identifier>president</identifier>
              <numimages>1</numimages>
              <numtrained>1</numtrained>
            </entry>
            <token>...</token>
          </action>
        </actions>
      </responsedata>
    </autnresponse>

Copyright 2025 Open Text
Version 25.4 | Last updated October 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Media Server 25.4

Topic Title: BuildAllFaces