Cloud Video Intelligence V1 Client - Class DetectedAttribute (1.15.5)

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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getConfidence

Detected attribute confidence. Range [0, 1].

Returns
Type Description
float

setConfidence

Detected attribute confidence. Range [0, 1].

Parameter
Name Description
var float
Returns
Type Description
$this

getValue

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

Returns
Type Description
string

setValue

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

Parameter
Name Description
var string
Returns
Type Description
$this