UNPKG

face-detection-web-sdk

Version:

웹 기반 얼굴 인식을 통해 실시간으로 심박수, 스트레스, 혈압 등의 건강 정보를 측정하는 SDK

27 lines (26 loc) 679 B
import { FaceDetectionSDKConfig } from '../../types/index.js'; export interface WebcamEvents { onWebcamError: (error: Error, isIOS: boolean) => void; } export declare class WebcamManager { private webcamStream; private config; private events; constructor(config: FaceDetectionSDKConfig, events: WebcamEvents); /** * 웹캠 스트림을 시작합니다. */ startWebcam(): Promise<MediaStream>; /** * 웹캠 스트림을 중지합니다. */ stopWebcam(): void; /** * 웹캠 에러를 처리합니다. */ private handleWebcamError; /** * 리소스를 정리합니다. */ dispose(): void; }