@privateid/ultra-web-sdk-alpha
Version:
CryptoNets WebAssembly SDK
22 lines (21 loc) • 981 B
TypeScript
import { Dimensions } from './face.types';
export declare function releaseCanvas(canvas: HTMLCanvasElement): void;
export declare function defineDimensionsForCanvas(videoElementDimensions: Dimensions): Dimensions;
export declare function getBaseEnrollConfig(): {
input_image_format: string;
angle_rotation_left_threshold: number;
angle_rotation_right_threshold: number;
threshold_high_vertical_enroll: number;
threshold_down_vertical_enroll: number;
anti_spoofing_threshold: number;
threshold_profile_enroll: number;
blur_threshold_enroll_pred: number;
threshold_user_too_close: number;
threshold_user_too_far: number;
allow_only_one_face: boolean;
threshold_user_up: number;
threshold_user_down: number;
threshold_user_left: number;
threshold_user_right: number;
};
export declare function callbackWithImageCreation(callback: (result: any) => void, _imageData: ImageData, _isEnrollFlow: boolean): (result: any) => void;