Cloud Video Intelligence V1beta2 Client - Class LabelSegment (1.12.16)

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

Video segment level annotation results for label detection.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ segment Google\Cloud\VideoIntelligence\V1beta2\VideoSegment

Video segment where a label was detected.

↳ confidence float

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

getSegment

Video segment where a label was detected.

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

hasSegment

clearSegment

setSegment

Video segment where a label was detected.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1beta2\VideoSegment
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