@biopassid/face-sdk
Version:
<h1 align="center"> <br> <a href="http://www.biopassid.com"><img src="https://uploads-ssl.webflow.com/5ec3d6d0293839cf102a656a/63a0d4cec83bbddea006d27a_biopassamarelo.svg" alt="BioPass ID" width="200"></a> <br>
22 lines (21 loc) • 898 B
TypeScript
import { FaceDetectionI18n, FaceDetectionResult, LegendOptions } from "../../types";
interface FaceDetection {
readonly element: HTMLElement;
startCapture: () => void;
stop: () => void;
checkFaces: (video: HTMLVideoElement, scoreThreshold?: number) => Promise<boolean>;
respPicture: FaceDetectionResult;
}
interface FaceDetectionProps extends LegendOptions {
autoCaptureEnabled: boolean;
timeToCapture: number;
timeToCaptureFeedbackColor: string;
scoreThreshold: number;
autoCaptureTimeoutFeedbackThickness: number;
multipleFacesEnabled: boolean;
i18n?: FaceDetectionI18n;
detectionResultCallback: (canTake: boolean) => void;
adapter?: (videoElement: HTMLVideoElement, scoreThreshold?: number) => Promise<FaceDetectionResult>;
}
export default function faceDetection(props: FaceDetectionProps): FaceDetection;
export {};