@face-detector/react-face-detection
Version:
Face Detector Web SDK React Components and Hooks Package
14 lines (13 loc) • 576 B
TypeScript
import { Report } from '@face-detector/types';
export type { ReactFaceDetectorConfig, ReactWebCamManagerConfig, ReactMeasurementConfig } from './config';
export interface UseFaceDetectorReturn {
report: Report | null;
duration: number | null;
start: () => Promise<Report>;
stop: () => void;
reset: () => void;
terminate: () => void;
enableRGBExtraction: (shouldExcuteRGBExtraction: boolean) => void;
detector: import('@face-detector/core').FaceDetector | null;
}
export type { FaceDetectorContextValue } from '../hooks/useFaceDetectorContext';