Cloud Video Intelligence V1beta2 Client - Class FaceFrame (1.12.16)

Reference documentation and code samples for the Cloud Video Intelligence V1beta2 Client class FaceFrame.

Video frame level annotation results for face detection.

Generated from protobuf message google.cloud.videointelligence.v1beta2.FaceFrame

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ normalized_bounding_boxes array<Google\Cloud\VideoIntelligence\V1beta2\NormalizedBoundingBox>

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

↳ time_offset Google\Protobuf\Duration

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

getNormalizedBoundingBoxes

Normalized Bounding boxes in a frame.

There can be more than one boxes if the same face is detected in multiple locations within the current frame.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNormalizedBoundingBoxes

Normalized Bounding boxes in a frame.

There can be more than one boxes if the same face is detected in multiple locations within the current frame.

Parameter
NameDescription
var array<Google\Cloud\VideoIntelligence\V1beta2\NormalizedBoundingBox>
Returns
TypeDescription
$this

getTimeOffset

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

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 location.

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