ColorInfo
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
No description
Image-specific score for this color. Value in range [0, 1].
Image-specific score for this color. Value in range [0, 1].
The fraction of pixels the color occupies in the image.
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;
at line 61
setColor(Color $var)
RGB components of the color.
Generated from protobuf field .google.type.Color color = 1;
at line 73
float
getScore()
Image-specific score for this color. Value in range [0, 1].
Generated from protobuf field float score = 2;
at line 84
setScore(float $var)
Image-specific score for this color. Value in range [0, 1].
Generated from protobuf field float score = 2;
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;
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;