Cloud Video Intelligence V1 Client - Class LabelFrame (1.12.16)

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

Video frame level annotation results for label detection.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ time_offset Google\Protobuf\Duration

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

↳ confidence float

Confidence that the label is accurate. Range: [0, 1].

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

getConfidence

Confidence that the label is accurate. Range: [0, 1].

Returns
TypeDescription
float

setConfidence

Confidence that the label is accurate. Range: [0, 1].

Parameter
NameDescription
var float
Returns
TypeDescription
$this