SetVehicleModelImageANPRLocation

Associates one or more number plate locations with a vehicle model training image.

When you specify the number plate location you can provide an image that shows an entire vehicle, rather than providing a cropped image that shows only the vehicle's grille.

Changing the number plate location that is assigned to an image invalidates the training, so after using this action you must re-train Media Server by running the action BuildVehicleModel or BuildAllVehicleModels.

Type: synchronous

Parameter Description Required
anprlocation The country of origin for the vehicle's license plate. You can specify a comma-separated list of locations. For a list of values that you can specify, use the action ListNumberPlateLocations. If you run the action without this parameter, any existing location is removed. No
database The name of the database that contains the training image. Yes
identifier The identifier of the vehicle model. Yes
imagelabel The image label. Yes

Example

This example instructs Media Server that the vehicle in the training image has a German license plate (location DE):

curl http://localhost:14000/action=SetVehicleModelImageANPRLocation -F database=Cars -F identifier=FordFocusRS -F imagelabel=image1 -F anprlocation=DE

Response

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