Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FaceAnnotation

import type { FaceAnnotation } from "https://googleapis.deno.dev/v1/vision:v1.ts";

A face annotation object contains the results of face detection.

interface FaceAnnotation {
angerLikelihood?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
blurredLikelihood?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
boundingPoly?: BoundingPoly;
detectionConfidence?: number;
fdBoundingPoly?: BoundingPoly;
headwearLikelihood?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
joyLikelihood?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
landmarkingConfidence?: number;
landmarks?: Landmark[];
panAngle?: number;
rollAngle?: number;
sorrowLikelihood?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
surpriseLikelihood?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
tiltAngle?: number;
underExposedLikelihood?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
}

§Properties

§
angerLikelihood?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Anger likelihood.

§
blurredLikelihood?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Blurred likelihood.

§
boundingPoly?: BoundingPoly
[src]

The bounding polygon around the face. The coordinates of the bounding box are in the original image's scale. The bounding box is computed to "frame" the face in accordance with human expectations. It is based on the landmarker results. Note that one or more x and/or y coordinates may not be generated in the BoundingPoly (the polygon will be unbounded) if only a partial face appears in the image to be annotated.

§
detectionConfidence?: number
[src]

Detection confidence. Range [0, 1].

§
fdBoundingPoly?: BoundingPoly
[src]

The fd_bounding_poly bounding polygon is tighter than the boundingPoly, and encloses only the skin part of the face. Typically, it is used to eliminate the face from any image analysis that detects the "amount of skin" visible in an image. It is not based on the landmarker results, only on the initial face detection, hence the fd (face detection) prefix.

§
headwearLikelihood?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Headwear likelihood.

§
joyLikelihood?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Joy likelihood.

§
landmarkingConfidence?: number
[src]

Face landmarking confidence. Range [0, 1].

§
landmarks?: Landmark[]
[src]

Detected face landmarks.

§
panAngle?: number
[src]

Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image. Range [-180,180].

§
rollAngle?: number
[src]

Roll angle, which indicates the amount of clockwise/anti-clockwise rotation of the face relative to the image vertical about the axis perpendicular to the face. Range [-180,180].

§
sorrowLikelihood?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Sorrow likelihood.

§
surpriseLikelihood?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Surprise likelihood.

§
tiltAngle?: number
[src]

Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane. Range [-180,180].

§
underExposedLikelihood?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Under-exposed likelihood.