Media Server 25.4
Media Server Help

# AddVehicleModelImages

Adds training images to a vehicle model.

Type: synchronous

Parameter | Description | Required
--- | --- | ---
`anprlocations` | A comma-separated list of number plate locations that correspond to the images specified with `imagedata` or `imagepath`. For a list of values that you can specify, use the action ListNumberPlateLocations. When you specify a number plate location the corresponding training image can show a complete vehicle. If you do not specify a location, the training image must be cropped to show only the vehicle's grille. For more information about training Media Server, refer to the Media Server Administration Guide. To add multiple images where some of the images contain an entire vehicle but others are cropped, specify a comma-separated list with blank entries. For example, if the second, fourth, and fifth images have been cropped you could use the value `GB,,DE,,,FR`. You can specify multiple values for a single image by enclosing the values for that image in quotation marks. For example, if the vehicle in the second image has a number plate that originates from either Great Britain or Germany you could use the value `FR,"GB,DE",FR`. | No
`database` | The name of the database that contains the vehicle model. | Yes
`identifier` | The identifier of the vehicle model that you want to add training images to. | Yes
`imagedata` | The training images to add. Send files to Media Server using a multipart/form-data HTTP POST request. | Set this or `imagepath`
`imagelabels` | A comma-separated list of labels to identify the images that you are adding (maximum 254 bytes for each label). Every image added to the same vehicle model must have a unique label, so the number of labels must match the number of images provided using either `imagedata` or `imagepath`. If you do not set this parameter, Media Server generates labels automatically. | No
`imagepath` | A comma-separated list of paths to the training images to add. The paths must be absolute, or relative to the Media Server executable file. To strengthen security, Media Server can be configured to read files only from specified directories. For information about the directories that Media Server is permitted to read from, see the parameter AllowedInputDirectories. | Set this or `imagedata`

## Example

The following example adds a training image to a vehicle model by sending the image data:

`curl http://localhost:14000/action=AddVehicleModelImages -F database=Cars -F identifier=FordFocusRS -F imagedata=@focus-rs-front.png -F imagelabels=focus-rs-front -F anprlocations=DE`

## Response

The response returns the labels assigned to the training images:

    <autnresponse>
      <action>ADDVEHICLEMODELIMAGES</action>
      <response>SUCCESS</response>
      <responsedata>
        <images>
          <image>
            <index>1</index>
            <label>focus-rs-front</label>
          </image>
        </images>
      </responsedata>
    </autnresponse>

## See Also

After adding training images for a vehicle model, you can train Media Server to recognize the vehicle model by running the action BuildVehicleModel.

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: AddVehicleModelImages