Cloud Video Intelligence V1 Client - Class TextFrame (1.15.0)

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

Video frame level annotation results for text annotation (OCR).

Contains information regarding timestamp and bounding box locations for the frames containing detected OCR text snippets.

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

Namespace

Google \ Cloud \ VideoIntelligence \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ rotated_bounding_box Google\Cloud\VideoIntelligence\V1\NormalizedBoundingPoly

Bounding polygon of the detected text for this frame.

↳ time_offset Google\Protobuf\Duration

Timestamp of this frame.

getRotatedBoundingBox

Bounding polygon of the detected text for this frame.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\NormalizedBoundingPoly|null

hasRotatedBoundingBox

clearRotatedBoundingBox

setRotatedBoundingBox

Bounding polygon of the detected text for this frame.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\NormalizedBoundingPoly
Returns
TypeDescription
$this

getTimeOffset

Timestamp of this frame.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTimeOffset

clearTimeOffset

setTimeOffset

Timestamp of this frame.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this