UNPKG

@idscan/idvc2

Version:

component for the capturing documents

21 lines (20 loc) 826 B
import type { GeneralTypeExitYolo } from '../neural models/generalTypeYolo/exits'; export type Status = 'PENDING' | 'FULFILLED'; type YoloRecognitionResult = Promise<{ side: GeneralTypeExitYolo; aspectRatio: number; isHasFace?: boolean; }>; type ProcessUploadedImageResult = Awaited<YoloRecognitionResult> & { perimeter: 'low' | 'ok'; }; type FillingQueueResult = { status: Status; promise: YoloRecognitionResult; }; export declare const clearQueue: () => void; export declare const processUploadedImage: (smallImage: ImageData) => Promise<ProcessUploadedImageResult>; export declare const fillingQueue: (smallImage?: ImageData, isNeedToCheckCorners?: boolean) => Promise<FillingQueueResult>; export declare const getBestFrame: () => ImageData; export declare const dropPromise: () => void; export {};