Media Server 12.11

# SetObjectTrainingOption

Sets the value of a training option that is applied to an object. Training options configure how Media Server creates recognition models from the training images that you supply.

You can set the following training options:

Key | Description | Possible Values | Default
--- | --- | --- | ---
`3D` | Specifies whether the object is a three-dimensional object. | True / False | False
`boundaryFeatures` | Specifies whether there are important features at the edges of the training images. | True / False | False
`useColor` | Specifies whether Media Server adds color information from the training images into the models that it creates for detection. | True / False | False

NOTE: Setting a training option invalidates all training associated with an object. After using this action, you must retrain Media Server by running the action BuildObject.

Type: synchronous

Parameter | Description | Required
--- | --- | ---
`database` | The name of the database that contains the object. | Yes
`identifier` | The identifier of the object for which you want to set a training option. | Yes
`key` | The name of the training option to set. | Yes
`value` | The value for the training option. | Yes

## Example

This example sets the `useColor` training option to `TRUE`:

    /action=SetObjectTrainingOption&database=CompanyLogos
                                   &identifier=HP
                                   &key=useColor
                                   &value=TRUE

## Response

    <autnresponse>
       <action>SETOBJECTTRAININGOPTION</action>
       <response>SUCCESS</response>
       <responsedata></responsedata>
    </autnresponse>

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.11 | Last updated February 2022

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Media Server 12.11

Topic Title: SetObjectTrainingOption