Cloud Video Intelligence V1 Client - Class TimestampedObject (2.0.1)

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

For tracking related features.

An object at time_offset with attributes, and located with normalized_bounding_box.

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

Namespace

Google \ Cloud \ VideoIntelligence \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ normalized_bounding_box NormalizedBoundingBox

Normalized Bounding box in a frame, where the object is located.

↳ time_offset Google\Protobuf\Duration

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

↳ attributes array<DetectedAttribute>

Optional. The attributes of the object in the bounding box.

↳ landmarks array<DetectedLandmark>

Optional. The detected landmarks.

getNormalizedBoundingBox

Normalized Bounding box in a frame, where the object is located.

Returns
Type Description
NormalizedBoundingBox|null

hasNormalizedBoundingBox

clearNormalizedBoundingBox

setNormalizedBoundingBox

Normalized Bounding box in a frame, where the object is located.

Parameter
Name Description
var NormalizedBoundingBox
Returns
Type Description
$this

getTimeOffset

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

Returns
Type Description
Google\Protobuf\Duration|null

hasTimeOffset

clearTimeOffset

setTimeOffset

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getAttributes

Optional. The attributes of the object in the bounding box.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAttributes

Optional. The attributes of the object in the bounding box.

Parameter
Name Description
var array<DetectedAttribute>
Returns
Type Description
$this

getLandmarks

Optional. The detected landmarks.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLandmarks

Optional. The detected landmarks.

Parameter
Name Description
var array<DetectedLandmark>
Returns
Type Description
$this