• Extracts the image regions containing the detected faces.

    Parameters

    • input: TNetInput

      The image that face detection has been performed on.

    • detections: (Rect | FaceDetection)[]

      The face detection results or face bounding boxes for that image.

    Returns Promise<HTMLCanvasElement[]>

    The Canvases of the corresponding image region for each detected face.