Cloud Vision V1 Client - Class Landmark (1.9.3)

Reference documentation and code samples for the Cloud Vision V1 Client class Landmark.

A face-specific landmark (for example, a face feature).

Generated from protobuf message google.cloud.vision.v1.FaceAnnotation.Landmark

Namespace

Google \ Cloud \ Vision \ V1 \ FaceAnnotation

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Face landmark type.

↳ position Google\Cloud\Vision\V1\Position

Face landmark position.

getType

Face landmark type.

Returns
Type Description
int

setType

Face landmark type.

Parameter
Name Description
var int
Returns
Type Description
$this

getPosition

Face landmark position.

Returns
Type Description
Google\Cloud\Vision\V1\Position|null

hasPosition

clearPosition

setPosition

Face landmark position.

Parameter
Name Description
var Google\Cloud\Vision\V1\Position
Returns
Type Description
$this