Cloud Vision V1 Client - Class ImageAnnotationContext (1.8.0)

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

If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image.

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

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ uri string

The URI of the file used to produce the image.

↳ page_number int

If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.

getUri

The URI of the file used to produce the image.

Returns
TypeDescription
string

setUri

The URI of the file used to produce the image.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageNumber

If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.

Returns
TypeDescription
int

setPageNumber

If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.

Parameter
NameDescription
var int
Returns
TypeDescription
$this