Landmark

google.cloud.vision.v1p3beta1.FaceAnnotation. Landmark

Represents a Landmark.

Constructor

new Landmark(propertiesopt)

Constructs a new Landmark.

Parameters:
Name Type Attributes Description
properties google.cloud.vision.v1p3beta1.FaceAnnotation.ILandmark <optional>

Properties to set

Implements:
  • ILandmark

Members

position

Landmark position.

type

Landmark type.

Type

Type enum.

Properties:
Name Type Description
UNKNOWN_LANDMARK number

UNKNOWN_LANDMARK value

LEFT_EYE number

LEFT_EYE value

RIGHT_EYE number

RIGHT_EYE value

LEFT_OF_LEFT_EYEBROW number

LEFT_OF_LEFT_EYEBROW value

RIGHT_OF_LEFT_EYEBROW number

RIGHT_OF_LEFT_EYEBROW value

LEFT_OF_RIGHT_EYEBROW number

LEFT_OF_RIGHT_EYEBROW value

RIGHT_OF_RIGHT_EYEBROW number

RIGHT_OF_RIGHT_EYEBROW value

MIDPOINT_BETWEEN_EYES number

MIDPOINT_BETWEEN_EYES value

NOSE_TIP number

NOSE_TIP value

UPPER_LIP number

UPPER_LIP value

LOWER_LIP number

LOWER_LIP value

MOUTH_LEFT number

MOUTH_LEFT value

MOUTH_RIGHT number

MOUTH_RIGHT value

MOUTH_CENTER number

MOUTH_CENTER value

NOSE_BOTTOM_RIGHT number

NOSE_BOTTOM_RIGHT value

NOSE_BOTTOM_LEFT number

NOSE_BOTTOM_LEFT value

NOSE_BOTTOM_CENTER number

NOSE_BOTTOM_CENTER value

LEFT_EYE_TOP_BOUNDARY number

LEFT_EYE_TOP_BOUNDARY value

LEFT_EYE_RIGHT_CORNER number

LEFT_EYE_RIGHT_CORNER value

LEFT_EYE_BOTTOM_BOUNDARY number

LEFT_EYE_BOTTOM_BOUNDARY value

LEFT_EYE_LEFT_CORNER number

LEFT_EYE_LEFT_CORNER value

RIGHT_EYE_TOP_BOUNDARY number

RIGHT_EYE_TOP_BOUNDARY value

RIGHT_EYE_RIGHT_CORNER number

RIGHT_EYE_RIGHT_CORNER value

RIGHT_EYE_BOTTOM_BOUNDARY number

RIGHT_EYE_BOTTOM_BOUNDARY value

RIGHT_EYE_LEFT_CORNER number

RIGHT_EYE_LEFT_CORNER value

LEFT_EYEBROW_UPPER_MIDPOINT number

LEFT_EYEBROW_UPPER_MIDPOINT value

RIGHT_EYEBROW_UPPER_MIDPOINT number

RIGHT_EYEBROW_UPPER_MIDPOINT value

LEFT_EAR_TRAGION number

LEFT_EAR_TRAGION value

RIGHT_EAR_TRAGION number

RIGHT_EAR_TRAGION value

LEFT_EYE_PUPIL number

LEFT_EYE_PUPIL value

RIGHT_EYE_PUPIL number

RIGHT_EYE_PUPIL value

FOREHEAD_GLABELLA number

FOREHEAD_GLABELLA value

CHIN_GNATHION number

CHIN_GNATHION value

CHIN_LEFT_GONION number

CHIN_LEFT_GONION value

CHIN_RIGHT_GONION number

CHIN_RIGHT_GONION value

Methods

toJSON() → {Object.<string, *>}

Converts this Landmark to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark}

Creates a new Landmark instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.cloud.vision.v1p3beta1.FaceAnnotation.ILandmark <optional>

Properties to set

Returns:
Type Description
google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark

Landmark instance

(static) decode(reader, lengthopt) → {google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark}

Decodes a Landmark message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark

Landmark

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark}

Decodes a Landmark message from the specified reader or buffer, length delimited.

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark

Landmark

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified Landmark message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.vision.v1p3beta1.FaceAnnotation.ILandmark

Landmark message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

Encodes the specified Landmark message, length delimited. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.vision.v1p3beta1.FaceAnnotation.ILandmark

Landmark message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark}

Creates a Landmark message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark

Landmark

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for Landmark

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Landmark message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark

Landmark

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a Landmark message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not