The following XML shows a single record produced by color analysis.
<output>
<record>
...
<trackname>ColorCluster.Result</trackname>
<ColorClusterResult>
<id>76b7b8dd-59f6-4fe7-9a6e-bcfae3cf94e8</id>
<colorspace>RGB</colorspace>
<cluster>
<color>232 242 252</color>
<colorname>white</colorname>
<proportion>77.12</proportion>
</cluster>
<cluster>
<color>10 11 13</color>
<colorname>black</colorname>
<proportion>21.54</proportion>
</cluster>
</ColorClusterResult>
</record>
</output>
The record contains the following information:
colorspace element specifies the color space in which the results are provided. You can choose the color space by setting the ColorSpace configuration parameter.Each cluster element represent a cluster of similar colors.
color element provides the color at the center of the cluster, in the color space requested.colorname element provides a name for the color. This element is present only if you have specified the path to a dictionary that associates names with color values. For information about color dictionaries, see Color Dictionaries.proportion element specifies the percentage of the image or video frame that belongs to that cluster.In addition to the Result track, the color clustering task also produces a track named ClusteredImage. This contains the source image, containing only colors that match the center of a color cluster, and cropped to the analyzed region. If the analyzed region is not rectangular any pixels outside the region are transparent (or black if you use an image format that does not support transparency).
|
|