Reference documentation and code samples for the Cloud Vision V1 Client class Page.
Detected page from OCR.
Generated from protobuf message google.cloud.vision.v1.Page
Namespace
Google \ Cloud \ Vision \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ property |
TextAnnotation\TextProperty
Additional information detected on the page. |
↳ width |
int
Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels. |
↳ height |
int
Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels. |
↳ blocks |
array<Block>
List of blocks of text, images etc on this page. |
↳ confidence |
float
Confidence of the OCR results on the page. Range [0, 1]. |
getProperty
Additional information detected on the page.
Returns | |
---|---|
Type | Description |
TextAnnotation\TextProperty|null |
hasProperty
clearProperty
setProperty
Additional information detected on the page.
Parameter | |
---|---|
Name | Description |
var |
TextAnnotation\TextProperty
|
Returns | |
---|---|
Type | Description |
$this |
getWidth
Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
Returns | |
---|---|
Type | Description |
int |
setWidth
Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getHeight
Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
Returns | |
---|---|
Type | Description |
int |
setHeight
Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getBlocks
List of blocks of text, images etc on this page.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setBlocks
List of blocks of text, images etc on this page.
Parameter | |
---|---|
Name | Description |
var |
array<Block>
|
Returns | |
---|---|
Type | Description |
$this |
getConfidence
Confidence of the OCR results on the page. Range [0, 1].
Returns | |
---|---|
Type | Description |
float |
setConfidence
Confidence of the OCR results on the page. Range [0, 1].
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |