UNPKG

@yidun/livedetect-sdk-h5

Version:

活体检测 H5

19 lines (18 loc) 673 B
import type { WarnType } from '@Src/main/types'; import NELiveDetection from '@Src/main/live-detection'; import { DomNode } from '@Src/main/utils/domNode'; export declare class Camera extends DomNode { private readonly neLiveDetection; readonly cameraInner: HTMLElement; readonly cameraLoadingText: HTMLElement; readonly circleBg: HTMLElement; readonly circleAni: HTMLElement; loading: boolean; constructor(container: HTMLElement, neLiveDetection: NELiveDetection); updateCameraDiameter(): void; updateLoadingStatus(val: boolean): void; updateCircleAni({ type, code }: { code: string; type: WarnType; }): void; }