@privateid/ultra-web-sdk-alpha
Version:
CryptoNets WebAssembly SDK
79 lines (78 loc) • 3.35 kB
TypeScript
export declare const WASM_DATABASE_NAME = "/privid-wasm";
export declare const WASM_DATABASE_VERSION = 21;
export declare const SAFARI_MIN_VERSION_FOR_SIMD = 16;
export declare const SAFARI_MIN_SUBVERSION_FOR_SIMD = 4;
export declare const DEFAULT_ENROLL_CONFIG: {
readonly input_image_format: "rgba";
readonly angle_rotation_left_threshold: 20;
readonly angle_rotation_right_threshold: 20;
readonly threshold_high_vertical_enroll: 0.9;
readonly threshold_down_vertical_enroll: 2.2;
readonly anti_spoofing_threshold: 0.8;
readonly threshold_profile_enroll: 0.66;
readonly blur_threshold_enroll_pred: 40;
readonly threshold_user_too_close: 0.52;
readonly threshold_user_too_far: 0.165;
readonly allow_only_one_face: true;
readonly threshold_user_up: 0.15;
readonly threshold_user_down: 0.9;
readonly threshold_user_left: 0.8;
readonly threshold_user_right: 0.2;
};
export declare const MOBILE_ENROLL_CONFIG_OVERRIDES: {
readonly threshold_user_too_far: 0.31;
readonly threshold_user_too_close: 0.55;
readonly threshold_user_right: 0.2;
readonly threshold_user_left: 0.8;
readonly threshold_profile_enroll: 0.66;
};
export declare const DEFAULT_PREDICT_CONFIG: {
input_image_format: string;
angle_rotation_left_threshold: number;
angle_rotation_right_threshold: number;
anti_spoofing_threshold: number;
threshold_profile_predict: number;
blur_threshold_enroll_pred: number;
threshold_user_too_close: number;
threshold_user_too_far: number;
threshold_user_up: number;
threshold_user_down: number;
threshold_user_left: number;
threshold_user_right: number;
threshold_high_vertical_predict: number;
threshold_down_vertical_predict: number;
url_name_override: string;
disallowed_results: number[];
disable_predict_mf: boolean;
mf_count_override: number;
};
export declare const DEFAULT_AGE_ESTIMATION_CONFIG: {
readonly anti_spoofing_threshold: 0.8;
readonly mf_count_override: 5;
readonly disable_estimate_age_mf: false;
readonly threshold_user_too_close: 0.8;
readonly threshold_profile_enroll: 0.6;
readonly threshold_user_too_far: 0.2;
readonly allow_only_one_face: false;
};
export declare const DEFAULT_DOCUMENT_SCAN_CONFIG: {
readonly input_image_format: "rgba";
readonly fingers_over_document_threshold: 0.2;
};
export declare const DEFAULT_DOCUMENT_OCR_CONFIG: {
readonly input_image_format: "rgba";
readonly calculate_age_from_ocr_text: true;
readonly threshold_doc_x: 0;
readonly threshold_doc_y: 0;
readonly threshold_doc_too_close: 0.99;
readonly threshold_doc_too_far: 0.1;
};
export declare const DEBUG_TYPES_WITH_IMAGES: readonly ["900", "901", "902", "903"];
export declare const BROWSER_COMPATIBILITY_MESSAGES: {
readonly OPERA_MOBILE_NOT_SUPPORTED: "Opera mobile version 72 and below is not support WASM";
readonly OPERA_NOT_SUPPORTED: "Opera version 43 and below is not support WASM";
readonly CHROME_NOT_SUPPORTED: "Chrome version 57 and below is not support WASM";
readonly FIREFOX_NOT_SUPPORTED: "Firefox version 52 and below is not support WASM";
readonly ANDROID_BROWSER_NOT_SUPPORTED: "Android Browser version 96 and below is not supported.";
readonly UNABLE_TO_LOAD_WASM: "Unable to load wasm";
};