idmission-web-sdk 2.1.40 → 2.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/common/LoaderButton.d.ts +1 -1
- package/dist/components/face_liveness/FaceCaptureGuideOverlay.d.ts +6 -2
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts +8 -2
- package/dist/components/face_liveness/FaceLivenessFailure.d.ts +2 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +6 -2
- package/dist/components/id_capture/FlipIdPrompt.d.ts +15 -18
- package/dist/components/id_capture/IdCaptureFitGuide.d.ts +10 -6
- package/dist/components/id_capture/IdCaptureGuideOverlay.d.ts +48 -32
- package/dist/components/id_capture/IdCaptureGuides.d.ts +14 -7
- package/dist/components/id_capture/IdCaptureStateProvider.d.ts +0 -2
- package/dist/components/id_capture/IdCaptureWizard.d.ts +4 -4
- package/dist/components/id_capture/ScalingCameraFeed.d.ts +2 -0
- package/dist/components/selfie_capture/SelfieCapture.d.ts +8 -3
- package/dist/components/selfie_capture/SelfieCaptureLoadingGraphic.d.ts +14 -1
- package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts +2 -2
- package/dist/components/video_id/IdVideoCaptureFlipIdPrompt.d.ts +25 -6
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts +12 -3
- package/dist/components/video_id/IdVideoCaptureGuidesCommon.d.ts +23 -0
- package/dist/lib/locales/es/translation.d.ts +2 -1
- package/dist/lib/locales/index.d.ts +2 -1
- package/dist/lib/models/DocumentDetection.d.ts +3 -7
- package/dist/lib/models/Focus.d.ts +0 -4
- package/dist/sdk2.cjs.development.js +2578 -1906
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +2578 -1906
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +2578 -1906
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/themes/index.d.ts +5 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ObjectDetector, ObjectDetectorResult } from '@mediapipe/tasks-vision';
|
|
2
|
-
export declare const defaultDocumentDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/
|
|
2
|
+
export declare const defaultDocumentDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/docdetectmp20240825/model_fp16.tflite";
|
|
3
3
|
export declare const defaultDocumentDetectionScoreThreshold = 0.1;
|
|
4
4
|
export declare const defaultDocumentDetectionModelLoadTimeoutMs = 45000;
|
|
5
5
|
export declare const defaultDocumentDetectionThresholds: DocumentDetectionThresholds;
|
|
6
|
-
export type DocumentType = 'none' | 'idCardFront' | 'idCardBack' | 'passport'
|
|
6
|
+
export type DocumentType = 'none' | 'idCardFront' | 'idCardBack' | 'passport';
|
|
7
7
|
export declare const documentTypeDisplayNames: {
|
|
8
8
|
idCardFront: string;
|
|
9
9
|
idCardBack: string;
|
|
10
10
|
passport: string;
|
|
11
|
-
singlePage: string;
|
|
12
11
|
none: string;
|
|
13
12
|
};
|
|
14
|
-
export type Label = 'Document' | 'Document back' | 'MRZ' | 'PDF417' | 'Primary face' | 'Secondary face' | 'Glare' | 'Punch Hole' | 'Passport page'
|
|
13
|
+
export type Label = 'Document' | 'Document back' | 'MRZ' | 'PDF417' | 'Primary face' | 'Secondary face' | 'Glare' | 'Punch Hole' | 'Passport page';
|
|
15
14
|
export type DetectedObjectBox = {
|
|
16
15
|
xMin: number;
|
|
17
16
|
xMax: number;
|
|
@@ -29,7 +28,6 @@ export type DocumentDetectionThresholds = {
|
|
|
29
28
|
idCardFront?: number;
|
|
30
29
|
idCardBack?: number;
|
|
31
30
|
passport?: number;
|
|
32
|
-
singlePage?: number;
|
|
33
31
|
};
|
|
34
32
|
export declare function loadDocumentDetector(modelAssetPath?: string, scoreThreshold?: number): Promise<ObjectDetector>;
|
|
35
33
|
export declare function useLoadDocumentDetector({ modelPath, modelLoadTimeoutMs, scoreThreshold, onModelError, }: {
|
|
@@ -56,8 +54,6 @@ export type DocumentDetectionPrediction = {
|
|
|
56
54
|
idCardBackDetectionThresholdMet: boolean;
|
|
57
55
|
passportDetectionScore: number;
|
|
58
56
|
passportDetectionThresholdMet: boolean;
|
|
59
|
-
singlePageDetectionScore: number;
|
|
60
|
-
singlePageDetectionThresholdMet: boolean;
|
|
61
57
|
bestDocument: DetectedObject | undefined;
|
|
62
58
|
documentInBounds: boolean;
|
|
63
59
|
documentTooClose: boolean;
|
|
@@ -20,10 +20,6 @@ export type FocusThresholds = {
|
|
|
20
20
|
desktop?: number;
|
|
21
21
|
mobile?: number;
|
|
22
22
|
};
|
|
23
|
-
singlePage?: {
|
|
24
|
-
desktop?: number;
|
|
25
|
-
mobile?: number;
|
|
26
|
-
};
|
|
27
23
|
};
|
|
28
24
|
export declare const defaultFocusThresholds: FocusThresholds;
|
|
29
25
|
export declare function loadFocusModel(modelAssetPath: string): Promise<ImageClassifier>;
|