Google Cloud Vision v1 API - Class ColorInfo (3.2.0)

Stay organized with collections Save and categorize content based on your preferences.
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
Single

Score

public float Score { get; set; }

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

Property Value
TypeDescription
Single