Represents face detection information as a part of MatchFacesResponse.

Accessors

  • get crop(): string
  • String image of the aligned and cropped portrait. Returned if MatchFacesRequest.outputImageParams is set or predefined scenario is used.

    Returns string

  • get faceIndex(): number
  • The index of the face detection object in the array of detections.

    Returns number

  • get faceRect(): Rect
  • Rectangular area of the detected face in the original image.

    Returns Rect

  • get landmarks(): Point[]
  • Main coordinates of the detected face (eyes, nose, lips, ears and etc.).

    Returns Point[]

  • get rotationAngle(): number
  • Rotation is measured counterclockwise in degrees, with zero indicating that a line drawn between the eyes is horizontal relative to the image orientation.

    Returns number