Media Server 12.11

# Identify Vehicle Colors

Media Server can detect the color of vehicles identified by vehicle model recognition.

To detect the color of vehicles

1. Create a new configuration to send to Media Server with the `process` action, or open an existing configuration that you want to modify.

2. In the `[Session]` section, add a new analysis task by setting the `EngineN` parameter. You can give the task any name, for example:

       [Session]
       Engine0=Ingest
       Engine1=ANPR
       Engine2=VehicleModel
       Engine3=VehicleColor

3. Create a new section in the configuration file to contain the task settings and set the following parameters:

   `Type` | The analysis engine to use. Set this parameter to `ColorCluster`.
   `Input` | The image track to process. This must be the `ColorRegionWithSource` output track from a vehicle recognition task. This track contains a region that can be used to analyze the vehicle's color. You can customize the selection of this region by setting the parameter `ColorRegion` in your vehicle recognition task, but in most cases the default value provides the greatest accuracy.
   `Region` | A region to process, instead of processing the whole image or video frame. To analyze the region in the input record (the region that contains the vehicle), set this parameter to `Input`.
   `ColorDictionary` | (Optional but recommended) To match vehicle colors against the colors that are defined in a dictionary, specify a dictionary file. Micro Focus recommends that you use the supplied dictionary file `weightedcarcolors.dat`, which is optimized for analyzing color regions derived by the default `ColorRegion` setting in the vehicle recognition task.
   `ColorThreshold` | (Optional) Any color cluster with a score that does not meet the specified threshold is omitted from the results.
   `ColorSpace` | (Optional) The color space in which the results are provided (`RGB`, `YCbCr`, `HSL`, `HSV`, `CIELAB`).

   For example:

       [VehicleColor]
       Type=ColorCluster
       Input=VehicleModel.ColorRegionWithSource
       Region=Input
       ColorDictionary=weightedcarcolors.dat
       ColorThreshold=20

   For more information about the parameters that customize color analysis, refer to the Media Server Reference.

4. Save and close the configuration file. Micro Focus recommends that you save your configuration files in the location specified by the `ConfigDirectory` parameter.

© 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: Identify Vehicle Colors