Reference documentation and code samples for the Cloud Vision V1 Client class ColorInfo.
Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.
Generated from protobuf message google.cloud.vision.v1.ColorInfo
Namespace
Google \ Cloud \ Vision \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ color
↳ score
float
Image-specific score for this color. Value in range [0, 1].
↳ pixel_fraction
float
The fraction of pixels the color occupies in the image. Value in range [0, 1].
getColor
RGB components of the color.
hasColor
clearColor
setColor
RGB components of the color.
$this
getScore
Image-specific score for this color. Value in range [0, 1].
float
setScore
Image-specific score for this color. Value in range [0, 1].
var
float
$this
getPixelFraction
The fraction of pixels the color occupies in the image.
Value in range [0, 1].
float
setPixelFraction
The fraction of pixels the color occupies in the image.
Value in range [0, 1].
var
float
$this

