Cloud Vision V1 Client - Class DominantColorsAnnotation (1.7.6)

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
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setColors

RGB color values with their score and pixel fraction.

Parameter
NameDescription
var array<Google\Cloud\Vision\V1\ColorInfo>
Returns
TypeDescription
$this