Cloud Video Intelligence V1 Client - Class TimestampedObject (1.12.16)

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ normalized_bounding_box Google\Cloud\VideoIntelligence\V1\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<Google\Cloud\VideoIntelligence\V1\DetectedAttribute>

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

↳ landmarks array<Google\Cloud\VideoIntelligence\V1\DetectedLandmark>

Optional. The detected landmarks.

getNormalizedBoundingBox

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

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

hasNormalizedBoundingBox

clearNormalizedBoundingBox

setNormalizedBoundingBox

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

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

getTimeOffset

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

Returns
TypeDescription
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
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getAttributes

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAttributes

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

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

getLandmarks

Optional. The detected landmarks.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLandmarks

Optional. The detected landmarks.

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