Cloud Vision V1 Client - Class Position (1.6.8)

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

A 3D position in the image, used primarily for Face detection landmarks.

A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image.

Generated from protobuf message google.cloud.vision.v1.Position

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ x float

X coordinate.

↳ y float

Y coordinate.

↳ z float

Z coordinate (or depth).

getX

X coordinate.

Returns
TypeDescription
float

setX

X coordinate.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getY

Y coordinate.

Returns
TypeDescription
float

setY

Y coordinate.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getZ

Z coordinate (or depth).

Returns
TypeDescription
float

setZ

Z coordinate (or depth).

Parameter
NameDescription
var float
Returns
TypeDescription
$this