Cloud Vision V1 Client - Class AnnotateImageRequest (1.10.1)

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

Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.

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

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ image Image

The image to be processed.

↳ features array<Feature>

Requested features.

↳ image_context ImageContext

Additional context that may accompany the image.

getImage

The image to be processed.

Returns
Type Description
Image|null

hasImage

clearImage

setImage

The image to be processed.

Parameter
Name Description
var Image
Returns
Type Description
$this

getFeatures

Requested features.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFeatures

Requested features.

Parameter
Name Description
var array<Feature>
Returns
Type Description
$this

getImageContext

Additional context that may accompany the image.

Returns
Type Description
ImageContext|null

hasImageContext

clearImageContext

setImageContext

Additional context that may accompany the image.

Parameter
Name Description
var ImageContext
Returns
Type Description
$this