idmission-web-sdk 1.0.101 → 1.0.102
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 +4 -4
- 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 -4
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +4 -4
- 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
|
@@ -46,7 +46,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
46
46
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
47
47
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
48
48
|
|
|
49
|
-
var webSdkVersion = '1.0.
|
|
49
|
+
var webSdkVersion = '1.0.102';
|
|
50
50
|
|
|
51
51
|
function getPlatform() {
|
|
52
52
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -9166,9 +9166,9 @@ function makeFocusPrediction(imageData, bbox, logPredictions) {
|
|
|
9166
9166
|
} else {
|
|
9167
9167
|
tfImg = tf__namespace.browser.fromPixels(imageData);
|
|
9168
9168
|
}
|
|
9169
|
-
tfResize = tf__namespace.image.resizeBilinear(tfImg, [448, 448]);
|
|
9169
|
+
tfResize = tf__namespace.image.resizeBilinear(tfImg, [448, 448]).div(tf__namespace.scalar(127.5)).sub(tf__namespace.scalar(1));
|
|
9170
9170
|
tfImg.dispose();
|
|
9171
|
-
tfInt32 = tf__namespace.cast(tfResize, '
|
|
9171
|
+
tfInt32 = tf__namespace.cast(tfResize, 'float32');
|
|
9172
9172
|
tfResize.dispose();
|
|
9173
9173
|
_b = (_a = tf__namespace).tensor4d;
|
|
9174
9174
|
_d = (_c = Array).from;
|
|
@@ -9176,7 +9176,7 @@ function makeFocusPrediction(imageData, bbox, logPredictions) {
|
|
|
9176
9176
|
case 2:
|
|
9177
9177
|
tf4d_ = _b.apply(_a, [_d.apply(_c, [_e.sent()]), [1, 448, 448, 3]]);
|
|
9178
9178
|
tfInt32.dispose();
|
|
9179
|
-
tf4d = tf__namespace.cast(tf4d_, '
|
|
9179
|
+
tf4d = tf__namespace.cast(tf4d_, 'float32');
|
|
9180
9180
|
tf4d_.dispose();
|
|
9181
9181
|
if (logPredictions) console.time('focus prediction');
|
|
9182
9182
|
return [4 /*yield*/, focusModel.predict(tf4d)];
|