extractFaces.d.ts 573 B

1234567891011
  1. import { FaceDetection } from '../classes/FaceDetection';
  2. import { Rect } from '../classes/Rect';
  3. import { TNetInput } from './types';
  4. /**
  5. * Extracts the image regions containing the detected faces.
  6. *
  7. * @param input The image that face detection has been performed on.
  8. * @param detections The face detection results or face bounding boxes for that image.
  9. * @returns The Canvases of the corresponding image region for each detected face.
  10. */
  11. export declare function extractFaces(input: TNetInput, detections: Array<FaceDetection | Rect>): Promise<HTMLCanvasElement[]>;