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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The name of this landmark, for example, left_hand, right_shoulder. |
↳ point |
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 | |
---|---|
Type | Description |
string |
setName
The name of this landmark, for example, left_hand, right_shoulder.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
NormalizedVertex
|
Returns | |
---|---|
Type | Description |
$this |
getConfidence
The confidence score of the detected landmark. Range [0, 1].
Returns | |
---|---|
Type | Description |
float |
setConfidence
The confidence score of the detected landmark. Range [0, 1].
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |