class ColorInfo extends Message

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

Protobuf type Google\Cloud\Vision\V1\ColorInfo

Methods

__construct()

No description

getColor()

RGB components of the color.

setColor(Color $var)

RGB components of the color.

float
getScore()

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

setScore(float $var)

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

float
getPixelFraction()

The fraction of pixels the color occupies in the image.

setPixelFraction(float $var)

The fraction of pixels the color occupies in the image.

Details

at line 39
__construct()

at line 50
Color getColor()

RGB components of the color.

Generated from protobuf field .google.type.Color color = 1;

Return Value

Color

at line 61
setColor(Color $var)

RGB components of the color.

Generated from protobuf field .google.type.Color color = 1;

Parameters

Color $var

at line 73
float getScore()

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

Generated from protobuf field float score = 2;

Return Value

float

at line 84
setScore(float $var)

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

Generated from protobuf field float score = 2;

Parameters

float $var

at line 97
float getPixelFraction()

The fraction of pixels the color occupies in the image.

Value in range [0, 1].

Generated from protobuf field float pixel_fraction = 3;

Return Value

float

at line 109
setPixelFraction(float $var)

The fraction of pixels the color occupies in the image.

Value in range [0, 1].

Generated from protobuf field float pixel_fraction = 3;

Parameters

float $var