idmission-web-sdk 1.0.191 → 1.0.192
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/sdk2.cjs.development.js +11 -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 +11 -3
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +11 -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
|
@@ -48,7 +48,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
48
48
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
49
49
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
50
50
|
|
|
51
|
-
var webSdkVersion = '1.0.
|
|
51
|
+
var webSdkVersion = '1.0.192';
|
|
52
52
|
|
|
53
53
|
function getPlatform() {
|
|
54
54
|
if (typeof window === 'undefined') return;
|
|
@@ -9031,7 +9031,8 @@ function makeDocumentDetectionPredictions(image, logPredictions) {
|
|
|
9031
9031
|
startedAt = new Date();
|
|
9032
9032
|
_e.label = 1;
|
|
9033
9033
|
case 1:
|
|
9034
|
-
_e.trys.push([1, 7
|
|
9034
|
+
_e.trys.push([1, 7, 8, 9]);
|
|
9035
|
+
tf__namespace.engine().startScope();
|
|
9035
9036
|
tfImg = tf__namespace.browser.fromPixels(image);
|
|
9036
9037
|
if (logPredictions) console.time('resize');
|
|
9037
9038
|
tfResize = tf__namespace.image.resizeBilinear(tfImg, [448, 448]);
|
|
@@ -9091,6 +9092,9 @@ function makeDocumentDetectionPredictions(image, logPredictions) {
|
|
|
9091
9092
|
time: 0
|
|
9092
9093
|
}];
|
|
9093
9094
|
case 8:
|
|
9095
|
+
tf__namespace.engine().endScope();
|
|
9096
|
+
return [7 /*endfinally*/];
|
|
9097
|
+
case 9:
|
|
9094
9098
|
return [2 /*return*/];
|
|
9095
9099
|
}
|
|
9096
9100
|
});
|
|
@@ -9111,7 +9115,8 @@ function makeFocusPrediction(imageData, canvases, bbox, logPredictions) {
|
|
|
9111
9115
|
startedAt = new Date();
|
|
9112
9116
|
_g.label = 1;
|
|
9113
9117
|
case 1:
|
|
9114
|
-
_g.trys.push([1, 5
|
|
9118
|
+
_g.trys.push([1, 5, 6, 7]);
|
|
9119
|
+
tf__namespace.engine().startScope();
|
|
9115
9120
|
tfImg = void 0;
|
|
9116
9121
|
if (bbox) {
|
|
9117
9122
|
cropped = cropToBoundingBox(imageData, bbox, canvases.cropCanvas);
|
|
@@ -9162,6 +9167,9 @@ function makeFocusPrediction(imageData, canvases, bbox, logPredictions) {
|
|
|
9162
9167
|
_g.sent();
|
|
9163
9168
|
return [2 /*return*/, [[0, 0], 0]];
|
|
9164
9169
|
case 6:
|
|
9170
|
+
tf__namespace.engine().endScope();
|
|
9171
|
+
return [7 /*endfinally*/];
|
|
9172
|
+
case 7:
|
|
9165
9173
|
return [2 /*return*/];
|
|
9166
9174
|
}
|
|
9167
9175
|
});
|