Cloud Vision V1 Client - Class Position (1.10.1)

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

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
float

setX

X coordinate.

Parameter
Name Description
var float
Returns
Type Description
$this

getY

Y coordinate.

Returns
Type Description
float

setY

Y coordinate.

Parameter
Name Description
var float
Returns
Type Description
$this

getZ

Z coordinate (or depth).

Returns
Type Description
float

setZ

Z coordinate (or depth).

Parameter
Name Description
var float
Returns
Type Description
$this