Open topic with navigation

# Identify Vehicle Colors

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

To detect the color of vehicles

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

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

       [Analysis]
       AnalysisEngine0=ANPR
       AnalysisEngine1=VehicleModel
       AnalysisEngine2=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 track must be the `ColorRegionWithSource` output track from a vehicle model analysis task. This track contains a region identified by the vehicle model task, which should contain a sample of the vehicle's color. You can customize the selection of this region by setting the parameter `ColorRegion` in your vehicle model analysis task.
   `RestrictToInputRegion` | A Boolean value that specifies whether to analyze a region of the input image or video frame that is specified in the input record, instead of the entire image. Set this parameter to `TRUE`, because you want the color analysis task to analyze only the region that represents the vehicle, and not the entire image.
   `ColorDictionary` | (Optional) To match vehicle colors against the colors that are defined in a dictionary, specify the path to a dictionary file.
   `ColorThreshold` | (Optional) The analysis task discards colors that do not make up a significant proportion of the region (as specified by this parameter).
   `ColorSpace` | (Optional) The color space in which the results are provided (`RGB`, `YCbCr`, `HSL`, `HSV`, `CIELAB`).

   For example:

       [VehicleColor]
       Type=ColorCluster
       Input=VehicleModel.ColorRegionWithSource
       RestrictToInputRegion=TRUE
       ColorDictionary=./colorcluster/carcolors.dat
       ColorThreshold=20
       ColorSpace=HSV

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

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

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm