Cloud AutoML V1 Client - Class NormalizedVertex (2.0.1)

Reference documentation and code samples for the Cloud AutoML V1 Client class NormalizedVertex.

A vertex represents a 2D point in the image.

The normalized vertex coordinates are between 0 to 1 fractions relative to the original plane (image, video). E.g. if the plane (e.g. whole image) would have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would be at the position (1, 6) on that plane.

Generated from protobuf message google.cloud.automl.v1.NormalizedVertex

Namespace

Google \ Cloud \ AutoMl \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ x float

Required. Horizontal coordinate.

↳ y float

Required. Vertical coordinate.

getX

Required. Horizontal coordinate.

Returns
Type Description
float

setX

Required. Horizontal coordinate.

Parameter
Name Description
var float
Returns
Type Description
$this

getY

Required. Vertical coordinate.

Returns
Type Description
float

setY

Required. Vertical coordinate.

Parameter
Name Description
var float
Returns
Type Description
$this