Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Accessors

imageHeight

  • get imageHeight(): number

imageWidth

  • get imageWidth(): number

positions

relativePositions

  • get relativePositions(): Point[]

shift

Methods

align

  • Aligns the face landmarks after face detection from the relative positions of the faces bounding box, or it's current shift. This function should be used to align the face images after face detection has been performed, before they are passed to the face recognition net. This will make the computed face descriptor more accurate.

    Parameters

    • Optional detection: null | IRect | IBoundingBox | FaceDetection

      (optional) The bounding box of the face or the face detection result. If no argument was passed the position of the face landmarks are assumed to be relative to it's current shift.

    • options: { minBoxPadding?: number; useDlibAlignment?: boolean } = {}
      • Optional minBoxPadding?: number
      • Optional useDlibAlignment?: boolean

    Returns Box<any>

    The bounding box of the aligned face.

forSize

  • forSize<T>(width: number, height: number): T

getJawOutline

getLeftEye

getLeftEyeBrow

  • getLeftEyeBrow(): Point[]

getMouth

getNose

getRightEye

getRightEyeBrow

  • getRightEyeBrow(): Point[]

shiftBy

  • shiftBy<T>(x: number, y: number): T

shiftByPoint

  • shiftByPoint<T>(pt: Point): T