Open topic with navigation
Adds training images to a vehicle model.
||The name of the database that contains the vehicle model.||Yes|
||The identifier of the vehicle model that you want to add training images to.||Yes|
||The training images to add. Files must be uploaded as multipart/form-data. For more information about sending data to Media Server, refer to the Media Server Administration Guide.||Set this or
||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
||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.||Set this or
The following example adds a training image to a vehicle model by specifying the path of the image using the
/action=AddVehicleModelImages&database=Cars &identifier=FordFocusRS &imagepath=./images/focus-rs-front.png &imagelabels=focus-rs-front
Alternatively, you can add training images by sending the image data, for example:
curl http://localhost:14000 -F action=AddVehicleModelImages -F database=Cars -F identifier=FordFocusRS -F firstname.lastname@example.org -F imagelabels=focus-rs-front
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>
After adding training images for a vehicle model, you can train Media Server to recognize the vehicle model by running the action BuildVehicleModel.