idmission-web-sdk 1.0.191 → 1.0.193
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 +15 -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 +15 -3
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +15 -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.193';
|
|
52
52
|
|
|
53
53
|
function getPlatform() {
|
|
54
54
|
if (typeof window === 'undefined') return;
|
|
@@ -9031,7 +9031,9 @@ 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
|
+
console.log(' Tensors before:', tf__namespace.memory().numTensors);
|
|
9036
|
+
tf__namespace.engine().startScope();
|
|
9035
9037
|
tfImg = tf__namespace.browser.fromPixels(image);
|
|
9036
9038
|
if (logPredictions) console.time('resize');
|
|
9037
9039
|
tfResize = tf__namespace.image.resizeBilinear(tfImg, [448, 448]);
|
|
@@ -9091,6 +9093,11 @@ function makeDocumentDetectionPredictions(image, logPredictions) {
|
|
|
9091
9093
|
time: 0
|
|
9092
9094
|
}];
|
|
9093
9095
|
case 8:
|
|
9096
|
+
tf__namespace.engine().endScope();
|
|
9097
|
+
tf__namespace.engine().disposeVariables();
|
|
9098
|
+
console.log('Tensors afters:', tf__namespace.memory().numTensors);
|
|
9099
|
+
return [7 /*endfinally*/];
|
|
9100
|
+
case 9:
|
|
9094
9101
|
return [2 /*return*/];
|
|
9095
9102
|
}
|
|
9096
9103
|
});
|
|
@@ -9111,7 +9118,8 @@ function makeFocusPrediction(imageData, canvases, bbox, logPredictions) {
|
|
|
9111
9118
|
startedAt = new Date();
|
|
9112
9119
|
_g.label = 1;
|
|
9113
9120
|
case 1:
|
|
9114
|
-
_g.trys.push([1, 5
|
|
9121
|
+
_g.trys.push([1, 5, 6, 7]);
|
|
9122
|
+
tf__namespace.engine().startScope();
|
|
9115
9123
|
tfImg = void 0;
|
|
9116
9124
|
if (bbox) {
|
|
9117
9125
|
cropped = cropToBoundingBox(imageData, bbox, canvases.cropCanvas);
|
|
@@ -9162,6 +9170,10 @@ function makeFocusPrediction(imageData, canvases, bbox, logPredictions) {
|
|
|
9162
9170
|
_g.sent();
|
|
9163
9171
|
return [2 /*return*/, [[0, 0], 0]];
|
|
9164
9172
|
case 6:
|
|
9173
|
+
tf__namespace.engine().endScope();
|
|
9174
|
+
tf__namespace.engine().disposeVariables();
|
|
9175
|
+
return [7 /*endfinally*/];
|
|
9176
|
+
case 7:
|
|
9165
9177
|
return [2 /*return*/];
|
|
9166
9178
|
}
|
|
9167
9179
|
});
|