idmission-web-sdk 1.0.0 → 1.0.2
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/README.md +6 -6
- package/dist/sdk2.cjs.development.js +12 -12
- 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 +12 -12
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +12 -12
- 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
|
@@ -3087,7 +3087,7 @@
|
|
|
3087
3087
|
}();
|
|
3088
3088
|
Browser.type = 'languageDetector';
|
|
3089
3089
|
|
|
3090
|
-
var webSdkVersion = '1.0.
|
|
3090
|
+
var webSdkVersion = '1.0.2';
|
|
3091
3091
|
|
|
3092
3092
|
function getPlatform() {
|
|
3093
3093
|
return window.platform;
|
|
@@ -11983,9 +11983,9 @@
|
|
|
11983
11983
|
};
|
|
11984
11984
|
|
|
11985
11985
|
var PREDICTION_POSITIONS = {
|
|
11986
|
-
boxes:
|
|
11987
|
-
scores:
|
|
11988
|
-
labels:
|
|
11986
|
+
boxes: 1,
|
|
11987
|
+
scores: 4,
|
|
11988
|
+
labels: 2
|
|
11989
11989
|
};
|
|
11990
11990
|
var IdCaptureModelsContext = /*#__PURE__*/React.createContext({
|
|
11991
11991
|
ready: false,
|
|
@@ -12011,7 +12011,7 @@
|
|
|
12011
12011
|
return null;
|
|
12012
12012
|
}
|
|
12013
12013
|
});
|
|
12014
|
-
var defaultDocumentDetectionModelUrl = "".concat(DEFAULT_CDN_URL, "/models/
|
|
12014
|
+
var defaultDocumentDetectionModelUrl = "".concat(DEFAULT_CDN_URL, "/models/docdetectuint8/model.json");
|
|
12015
12015
|
var defaultFocusModelUrl = "".concat(DEFAULT_CDN_URL, "/models/focus/model.json");
|
|
12016
12016
|
var IdCaptureModelsProvider = function IdCaptureModelsProvider(_a) {
|
|
12017
12017
|
var children = _a.children,
|
|
@@ -12326,7 +12326,7 @@
|
|
|
12326
12326
|
_e.trys.push([1, 7,, 8]);
|
|
12327
12327
|
tfImg = tf__namespace.browser.fromPixels(image);
|
|
12328
12328
|
if (logPredictions) console.time('resize');
|
|
12329
|
-
tfResize = tf__namespace.image.resizeBilinear(tfImg, [
|
|
12329
|
+
tfResize = tf__namespace.image.resizeBilinear(tfImg, [320, 320]);
|
|
12330
12330
|
if (logPredictions) console.timeEnd('resize');
|
|
12331
12331
|
tfImg.dispose();
|
|
12332
12332
|
if (logPredictions) console.time('convert to int32');
|
|
@@ -12336,7 +12336,7 @@
|
|
|
12336
12336
|
_d = (_c = Array).from;
|
|
12337
12337
|
return [4, tfInt32.data()];
|
|
12338
12338
|
case 2:
|
|
12339
|
-
tf4d_ = _b.apply(_a, [_d.apply(_c, [_e.sent()]), [1,
|
|
12339
|
+
tf4d_ = _b.apply(_a, [_d.apply(_c, [_e.sent()]), [1, 320, 320, 3]]);
|
|
12340
12340
|
tfInt32.dispose();
|
|
12341
12341
|
tf4d = tf__namespace.cast(tf4d_, 'int32');
|
|
12342
12342
|
if (logPredictions) console.timeEnd('convert to int32');
|
|
@@ -13809,9 +13809,9 @@
|
|
|
13809
13809
|
_q = _a.barcodeScanningEnabled,
|
|
13810
13810
|
barcodeScanningEnabled = _q === void 0 ? false : _q,
|
|
13811
13811
|
_r = _a.idCardAutoCaptureScoreThreshold,
|
|
13812
|
-
idCardAutoCaptureScoreThreshold = _r === void 0 ? 0.
|
|
13812
|
+
idCardAutoCaptureScoreThreshold = _r === void 0 ? 0.8 : _r,
|
|
13813
13813
|
_s = _a.passportAutoCaptureScoreThreshold,
|
|
13814
|
-
passportAutoCaptureScoreThreshold = _s === void 0 ? 0.
|
|
13814
|
+
passportAutoCaptureScoreThreshold = _s === void 0 ? 0.75 : _s,
|
|
13815
13815
|
_t = _a.mrzDetectionScoreThreshold,
|
|
13816
13816
|
mrzDetectionScoreThreshold = _t === void 0 ? 0.25 : _t,
|
|
13817
13817
|
_u = _a.idCardFocusScoreThreshold,
|
|
@@ -16661,7 +16661,7 @@
|
|
|
16661
16661
|
_e = _a.idCardAutoCaptureScoreThreshold,
|
|
16662
16662
|
idCardAutoCaptureScoreThreshold = _e === void 0 ? 0.8 : _e,
|
|
16663
16663
|
_f = _a.passportAutoCaptureScoreThreshold,
|
|
16664
|
-
passportAutoCaptureScoreThreshold = _f === void 0 ? 0.
|
|
16664
|
+
passportAutoCaptureScoreThreshold = _f === void 0 ? 0.75 : _f,
|
|
16665
16665
|
_g = _a.idCardFocusScoreThreshold,
|
|
16666
16666
|
idCardFocusScoreThreshold = _g === void 0 ? 0.3 : _g,
|
|
16667
16667
|
_h = _a.passportFocusScoreThreshold,
|
|
@@ -16852,7 +16852,7 @@
|
|
|
16852
16852
|
_f = _a.mrzDetectionScoreThreshold,
|
|
16853
16853
|
mrzDetectionScoreThreshold = _f === void 0 ? 0.5 : _f,
|
|
16854
16854
|
_g = _a.passportAutoCaptureScoreThreshold,
|
|
16855
|
-
passportAutoCaptureScoreThreshold = _g === void 0 ? 0.
|
|
16855
|
+
passportAutoCaptureScoreThreshold = _g === void 0 ? 0.75 : _g,
|
|
16856
16856
|
_h = _a.idCardFocusScoreThreshold,
|
|
16857
16857
|
idCardFocusScoreThreshold = _h === void 0 ? 0.3 : _h,
|
|
16858
16858
|
_j = _a.passportFocusScoreThreshold,
|
|
@@ -16996,7 +16996,7 @@
|
|
|
16996
16996
|
_f = _a.mrzDetectionScoreThreshold,
|
|
16997
16997
|
mrzDetectionScoreThreshold = _f === void 0 ? 0.5 : _f,
|
|
16998
16998
|
_g = _a.passportAutoCaptureScoreThreshold,
|
|
16999
|
-
passportAutoCaptureScoreThreshold = _g === void 0 ? 0.
|
|
16999
|
+
passportAutoCaptureScoreThreshold = _g === void 0 ? 0.75 : _g,
|
|
17000
17000
|
_h = _a.idCardFocusScoreThreshold,
|
|
17001
17001
|
idCardFocusScoreThreshold = _h === void 0 ? 0.3 : _h,
|
|
17002
17002
|
_j = _a.passportFocusScoreThreshold,
|