Cloud Video Intelligence V1 Client - Class Track (1.13.1)

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

A track of an object instance.

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

Namespace

Google \ Cloud \ VideoIntelligence \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ segment Google\Cloud\VideoIntelligence\V1\VideoSegment

Video segment of a track.

↳ timestamped_objects array<Google\Cloud\VideoIntelligence\V1\TimestampedObject>

The object with timestamp and attributes per frame in the track.

↳ attributes array<Google\Cloud\VideoIntelligence\V1\DetectedAttribute>

Optional. Attributes in the track level.

↳ confidence float

Optional. The confidence score of the tracked object.

getSegment

Video segment of a track.

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

hasSegment

clearSegment

setSegment

Video segment of a track.

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

getTimestampedObjects

The object with timestamp and attributes per frame in the track.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTimestampedObjects

The object with timestamp and attributes per frame in the track.

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

getAttributes

Optional. Attributes in the track level.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAttributes

Optional. Attributes in the track level.

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

getConfidence

Optional. The confidence score of the tracked object.

Returns
TypeDescription
float

setConfidence

Optional. The confidence score of the tracked object.

Parameter
NameDescription
var float
Returns
TypeDescription
$this