To configure color analysis
Create a new configuration or open an existing configuration to send to Media Server with the process
action. Alternatively, you can modify the Media Server configuration file (mediaserver.cfg
).
In the [Analysis]
section, add a new analysis task using the AnalysisEngine
parameter. You can give the task any name, for example:
[Analysis] ... AnalysisEngine2=ColorClusterTask
Create a new configuration section to contain the task settings and set the following parameters:
Type
|
The analysis engine to use. Set this to ColorCluster . |
Input
|
(Optional) The name of the track that contains the images to process. If you do not specify an input track, Media Server processes the first track of the correct type. |
ColorSpace
|
(Optional) The color space in which the results of analysis are provided. |
For example:
[ColorClusterTask] Type=ColorCluster Input=MyTask.ResultWithSource ColorSpace=RGB
(Optional) You can restrict color analysis to a specific region of the image or video frame.
To restrict analysis to a region that you define manually, add the following configuration parameters to the task:
Region
|
The region to analyze. Specify the region using a comma-separated list of values that describe a rectangle (left,top,width,height ). |
RegionUnit
|
The units you want to use to define the region (pixel or percent ). |
To restrict analysis to a region that is supplied by another analysis task, add the following configuration parameter:
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 . |
Note: If you set RestrictToInputRegion
, the input track that you specify must contain region data. Many analysis engines, for example clothing detection or object recognition, produce records that contain regions.
Save and close the configuration file.
|