Cloud Vision V1 Client - Class DominantColorsAnnotation (1.8.0)

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

setColors

RGB color values with their score and pixel fraction.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: