Google Cloud Vision v1 API - Class ColorInfo (3.5.0)

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

Reference documentation and code samples for the Google Cloud Vision v1 API class ColorInfo.

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
float

Score

public float Score { get; set; }

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

Property Value
TypeDescription
float