FaceAnnotation

google.cloud.vision.v1p1beta1. FaceAnnotation

Represents a FaceAnnotation.

Constructor

new FaceAnnotation(propertiesopt)

Constructs a new FaceAnnotation.

Parameters:
Name Type Attributes Description
properties google.cloud.vision.v1p1beta1.IFaceAnnotation <optional>

Properties to set

Implements:
  • IFaceAnnotation

Classes

Landmark

Members

angerLikelihood :google.cloud.vision.v1p1beta1.Likelihood

FaceAnnotation angerLikelihood.

blurredLikelihood :google.cloud.vision.v1p1beta1.Likelihood

FaceAnnotation blurredLikelihood.

boundingPoly :google.cloud.vision.v1p1beta1.IBoundingPoly|null|undefined

FaceAnnotation boundingPoly.

detectionConfidence :number

FaceAnnotation detectionConfidence.

fdBoundingPoly :google.cloud.vision.v1p1beta1.IBoundingPoly|null|undefined

FaceAnnotation fdBoundingPoly.

headwearLikelihood :google.cloud.vision.v1p1beta1.Likelihood

FaceAnnotation headwearLikelihood.

joyLikelihood :google.cloud.vision.v1p1beta1.Likelihood

FaceAnnotation joyLikelihood.

landmarkingConfidence :number

FaceAnnotation landmarkingConfidence.

landmarks :Array.<google.cloud.vision.v1p1beta1.FaceAnnotation.ILandmark>

FaceAnnotation landmarks.

panAngle :number

FaceAnnotation panAngle.

rollAngle :number

FaceAnnotation rollAngle.

sorrowLikelihood :google.cloud.vision.v1p1beta1.Likelihood

FaceAnnotation sorrowLikelihood.

surpriseLikelihood :google.cloud.vision.v1p1beta1.Likelihood

FaceAnnotation surpriseLikelihood.

tiltAngle :number

FaceAnnotation tiltAngle.

underExposedLikelihood :google.cloud.vision.v1p1beta1.Likelihood

FaceAnnotation underExposedLikelihood.

Methods

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

Creates a new FaceAnnotation instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.cloud.vision.v1p1beta1.IFaceAnnotation <optional>

Properties to set

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

Decodes a FaceAnnotation 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

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.v1p1beta1.FaceAnnotation}

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

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

Reader or buffer to decode from

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 FaceAnnotation message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.vision.v1p1beta1.IFaceAnnotation

FaceAnnotation message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

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

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

Parameters:
Name Type Attributes Description
message google.cloud.vision.v1p1beta1.IFaceAnnotation

FaceAnnotation message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

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

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

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

Plain object

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

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

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

FaceAnnotation

options $protobuf.IConversionOptions <optional>

Conversion options

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

Verifies a FaceAnnotation message.

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

Plain object to verify

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

Converts this FaceAnnotation to JSON.