idmission-web-sdk 2.1.38 → 2.1.40
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/lib/locales/es/translation.d.ts +1 -0
- package/dist/lib/locales/index.d.ts +1 -0
- package/dist/lib/models/DocumentDetection.d.ts +1 -1
- package/dist/sdk2.cjs.development.js +4 -3
- 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 +4 -3
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +4 -3
- 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/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -30,6 +30,7 @@ declare const _default: {
|
|
|
30
30
|
'ID card front detected, hold still...': string;
|
|
31
31
|
'ID card back detected, hold still...': string;
|
|
32
32
|
'Passport detected, hold still...': string;
|
|
33
|
+
'Single page ID document detected, hold still...': string;
|
|
33
34
|
'Capturing...': string;
|
|
34
35
|
'Capture failed!': string;
|
|
35
36
|
'Please flip your ID card...': string;
|
|
@@ -38,6 +38,7 @@ export declare const resources: {
|
|
|
38
38
|
'ID card front detected, hold still...': string;
|
|
39
39
|
'ID card back detected, hold still...': string;
|
|
40
40
|
'Passport detected, hold still...': string;
|
|
41
|
+
'Single page ID document detected, hold still...': string;
|
|
41
42
|
'Capturing...': string;
|
|
42
43
|
'Capture failed!': string;
|
|
43
44
|
'Please flip your ID card...': string;
|
|
@@ -1,5 +1,5 @@
|
|
|
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/docdetectmp20240909/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;
|
|
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
234
234
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
var webSdkVersion = '2.1.
|
|
237
|
+
var webSdkVersion = '2.1.40';
|
|
238
238
|
|
|
239
239
|
function getPlatform() {
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -5363,7 +5363,7 @@ function sumUpProgressForDependencies(dependencies) {
|
|
|
5363
5363
|
});
|
|
5364
5364
|
}
|
|
5365
5365
|
|
|
5366
|
-
var defaultDocumentDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/
|
|
5366
|
+
var defaultDocumentDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/docdetectmp20240909/model_fp16.tflite";
|
|
5367
5367
|
var defaultDocumentDetectionScoreThreshold = 0.1;
|
|
5368
5368
|
var defaultDocumentDetectionModelLoadTimeoutMs = 45000;
|
|
5369
5369
|
var defaultDocumentDetectionThresholds = {
|
|
@@ -5376,7 +5376,7 @@ var documentTypeDisplayNames = {
|
|
|
5376
5376
|
idCardFront: 'ID card front',
|
|
5377
5377
|
idCardBack: 'ID card back',
|
|
5378
5378
|
passport: 'Passport',
|
|
5379
|
-
singlePage: 'Single page',
|
|
5379
|
+
singlePage: 'Single page ID document',
|
|
5380
5380
|
none: 'None'
|
|
5381
5381
|
};
|
|
5382
5382
|
var detectors = {};
|
|
@@ -6757,6 +6757,7 @@ var esTranslation = {
|
|
|
6757
6757
|
'ID card front detected, hold still...': 'Anverso de ID detectado, no mover...',
|
|
6758
6758
|
'ID card back detected, hold still...': 'Reverso de ID detectado, no mover...',
|
|
6759
6759
|
'Passport detected, hold still...': 'Pasaporte detectado, no mover...',
|
|
6760
|
+
'Single page ID document detected, hold still...': 'Documento de una sola página detectada, por favor permanece quieto...',
|
|
6760
6761
|
'Capturing...': 'Capturando...',
|
|
6761
6762
|
'Capture failed!': 'Falló la captura',
|
|
6762
6763
|
'Please flip your ID card...': 'Por favor voltea la identificación...',
|