Package version:

Interface FaceDetectionResultOutput

Response for detect API.

interface FaceDetectionResultOutput {
    faceAttributes?: FaceAttributesOutput;
    faceId?: string;
    faceLandmarks?: FaceLandmarksOutput;
    faceRectangle: FaceRectangleOutput;
    recognitionModel?: string;
}

Properties

faceAttributes?: FaceAttributesOutput

Face attributes for detected face.

faceId?: string

Unique faceId of the detected face, created by detection API and it will expire 24 hours after the detection call. To return this, it requires 'returnFaceId' parameter to be true.

faceLandmarks?: FaceLandmarksOutput

An array of 27-point face landmarks pointing to the important positions of face components. To return this, it requires 'returnFaceLandmarks' parameter to be true.

faceRectangle: FaceRectangleOutput

A rectangle area for the face location on image.

recognitionModel?: string

The 'recognitionModel' associated with this faceId. This is only returned when 'returnRecognitionModel' is explicitly set as true.