Class ColorInfo (3.1.0)

public sealed class ColorInfo : IMessage<ColorInfo>, IEquatable<ColorInfo>, IDeepCloneable<ColorInfo>, IBufferMessage, IMessage

Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.

Inheritance

Object > ColorInfo

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

ColorInfo()

public ColorInfo()

ColorInfo(ColorInfo)

public ColorInfo(ColorInfo other)
Parameter
NameDescription
otherColorInfo

Properties

Color

public Color Color { get; set; }

RGB components of the color.

Property Value
TypeDescription
Color

PixelFraction

public float PixelFraction { get; set; }

The fraction of pixels the color occupies in the image. Value in range [0, 1].

Property Value
TypeDescription
Single

Score

public float Score { get; set; }

Image-specific score for this color. Value in range [0, 1].

Property Value
TypeDescription
Single