Cloud Video Intelligence V1 Client - Class DetectedLandmark (1.14.2)

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

A generic detected landmark represented by name in string format and a 2D location.

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

Namespace

Google \ Cloud \ VideoIntelligence \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of this landmark, for example, left_hand, right_shoulder.

↳ point Google\Cloud\VideoIntelligence\V1\NormalizedVertex

The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1.

↳ confidence float

The confidence score of the detected landmark. Range [0, 1].

getName

The name of this landmark, for example, left_hand, right_shoulder.

Returns
TypeDescription
string

setName

The name of this landmark, for example, left_hand, right_shoulder.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPoint

The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\NormalizedVertex|null

hasPoint

clearPoint

setPoint

The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\NormalizedVertex
Returns
TypeDescription
$this

getConfidence

The confidence score of the detected landmark. Range [0, 1].

Returns
TypeDescription
float

setConfidence

The confidence score of the detected landmark. Range [0, 1].

Parameter
NameDescription
var float
Returns
TypeDescription
$this