Cloud Vision V1 Client - Class DominantColorsAnnotation (1.9.4)

Reference documentation and code samples for the Cloud Vision V1 Client class DominantColorsAnnotation.

Set of dominant colors and their corresponding scores.

Generated from protobuf message google.cloud.vision.v1.DominantColorsAnnotation

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ colors array<Google\Cloud\Vision\V1\ColorInfo>

RGB color values with their score and pixel fraction.

getColors

RGB color values with their score and pixel fraction.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setColors

RGB color values with their score and pixel fraction.

Parameter
Name Description
var array<Google\Cloud\Vision\V1\ColorInfo>
Returns
Type Description
$this