Cloud Video Intelligence V1 Client - Class DetectedAttribute (1.14.2)

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

A generic detected attribute represented by name in string format.

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

Namespace

Google \ Cloud \ VideoIntelligence \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the attribute, for example, glasses, dark_glasses, mouth_open. A full list of supported type names will be provided in the document.

↳ confidence float

Detected attribute confidence. Range [0, 1].

↳ value string

Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc.

getName

The name of the attribute, for example, glasses, dark_glasses, mouth_open.

A full list of supported type names will be provided in the document.

Returns
TypeDescription
string

setName

The name of the attribute, for example, glasses, dark_glasses, mouth_open.

A full list of supported type names will be provided in the document.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConfidence

Detected attribute confidence. Range [0, 1].

Returns
TypeDescription
float

setConfidence

Detected attribute confidence. Range [0, 1].

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getValue

Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc.

Returns
TypeDescription
string

setValue

Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this