Cloud Vision V1 Client - Class ImageProperties (1.8.0)

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

Stores image properties, such as dominant colors.

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

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ dominant_colors Google\Cloud\Vision\V1\DominantColorsAnnotation

If present, dominant colors completed successfully.

getDominantColors

If present, dominant colors completed successfully.

Returns
TypeDescription
Google\Cloud\Vision\V1\DominantColorsAnnotation|null

hasDominantColors

clearDominantColors

setDominantColors

If present, dominant colors completed successfully.

Parameter
NameDescription
var Google\Cloud\Vision\V1\DominantColorsAnnotation
Returns
TypeDescription
$this