Cloud Video Intelligence V1 Client - Class TextAnnotation (1.14.2)

Reference documentation and code samples for the Cloud Video Intelligence V1 Client class TextAnnotation.

Annotations related to one detected OCR text snippet. This will contain the corresponding text, confidence value, and frame level information for each detection.

Generated from protobuf message google.cloud.videointelligence.v1.TextAnnotation

Namespace

Google \ Cloud \ VideoIntelligence \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ text string

The detected text.

↳ segments array<Google\Cloud\VideoIntelligence\V1\TextSegment>

All video segments where OCR detected text appears.

↳ version string

Feature version.

getText

The detected text.

Returns
TypeDescription
string

setText

The detected text.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSegments

All video segments where OCR detected text appears.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSegments

All video segments where OCR detected text appears.

Parameter
NameDescription
var array<Google\Cloud\VideoIntelligence\V1\TextSegment>
Returns
TypeDescription
$this

getVersion

Feature version.

Returns
TypeDescription
string

setVersion

Feature version.

Parameter
NameDescription
var string
Returns
TypeDescription
$this