Cloud Vision V1 Client - Class Landmark (1.6.8)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
int

setType

Face landmark type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPosition

Face landmark position.

Returns
TypeDescription
Google\Cloud\Vision\V1\Position|null

hasPosition

clearPosition

setPosition

Face landmark position.

Parameter
NameDescription
var Google\Cloud\Vision\V1\Position
Returns
TypeDescription
$this