UNPKG

@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>

24 lines (23 loc) 1.03 kB
import { FaceDetectionI18n, FaceDetectionResult, LegendOptions } from "../../types"; interface FaceDetection { readonly element: HTMLElement; startCapture: () => void; stop: () => void; checkFaces: (video: HTMLVideoElement, scoreThreshold?: number, minHeight?: number, maxHeight?: number) => Promise<boolean>; respPicture: FaceDetectionResult; } interface FaceDetectionProps extends LegendOptions { autoCaptureEnabled: boolean; timeToCapture: number; timeToCaptureFeedbackColor: string; scoreThreshold: number; minHeight: number; maxHeight: number; autoCaptureTimeoutFeedbackThickness: number; multipleFacesEnabled: boolean; i18n?: FaceDetectionI18n; detectionResultCallback: (canTake: boolean) => void; adapter?: (videoElement: HTMLVideoElement, scoreThreshold?: number, minHeight?: number, maxHeight?: number) => Promise<FaceDetectionResult>; } export default function faceDetection(props: FaceDetectionProps): FaceDetection; export {};