@face-auth/face-id-video
Version:
Utility library for capturing photos from webcam video streams in the browser. Handles camera selection, image formatting, and output for face authentication APIs.
14 lines (13 loc) • 544 B
TypeScript
import { CaptureOptions } from "./types/CaptureOptions";
import { CaptureResult } from "./types/CaptureResult";
import { FaceVideoElement } from "./types/FaceVideoElement";
export declare class FacePhotoManager {
private video;
constructor(video: FaceVideoElement);
/**
* Captura el frame actual, recorta un óvalo +20% de buffer, fondo negro, y devuelve un Blob.
*/
capture(options: CaptureOptions): Promise<CaptureResult>;
/** Helper para devolver captura completa sin recorte */
private captureFullFrame;
}