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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Type | Description |
string |
|
setUri
The URI of the file used to produce the image.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|