idmission-web-sdk 1.0.1 → 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.
@@ -50,7 +50,7 @@ var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObs
50
50
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
51
51
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
52
52
 
53
- var webSdkVersion = '1.0.1';
53
+ var webSdkVersion = '1.0.2';
54
54
 
55
55
  function getPlatform() {
56
56
  return window.platform;
@@ -8356,9 +8356,9 @@ var ModelLoadingErrorOverlay = function ModelLoadingErrorOverlay(_a) {
8356
8356
  };
8357
8357
 
8358
8358
  var PREDICTION_POSITIONS = {
8359
- boxes: 0,
8360
- scores: 7,
8361
- labels: 4
8359
+ boxes: 1,
8360
+ scores: 4,
8361
+ labels: 2
8362
8362
  };
8363
8363
  var IdCaptureModelsContext = /*#__PURE__*/React.createContext({
8364
8364
  ready: false,
@@ -8384,7 +8384,7 @@ var IdCaptureModelsContext = /*#__PURE__*/React.createContext({
8384
8384
  return null;
8385
8385
  }
8386
8386
  });
8387
- var defaultDocumentDetectionModelUrl = "".concat(DEFAULT_CDN_URL, "/models/documentdetection448/model.json");
8387
+ var defaultDocumentDetectionModelUrl = "".concat(DEFAULT_CDN_URL, "/models/docdetectuint8/model.json");
8388
8388
  var defaultFocusModelUrl = "".concat(DEFAULT_CDN_URL, "/models/focus/model.json");
8389
8389
  var IdCaptureModelsProvider = function IdCaptureModelsProvider(_a) {
8390
8390
  var children = _a.children,
@@ -8699,7 +8699,7 @@ function makeDocumentDetectionPredictions(image, logPredictions) {
8699
8699
  _e.trys.push([1, 7,, 8]);
8700
8700
  tfImg = tf__namespace.browser.fromPixels(image);
8701
8701
  if (logPredictions) console.time('resize');
8702
- tfResize = tf__namespace.image.resizeBilinear(tfImg, [448, 448]);
8702
+ tfResize = tf__namespace.image.resizeBilinear(tfImg, [320, 320]);
8703
8703
  if (logPredictions) console.timeEnd('resize');
8704
8704
  tfImg.dispose();
8705
8705
  if (logPredictions) console.time('convert to int32');
@@ -8709,7 +8709,7 @@ function makeDocumentDetectionPredictions(image, logPredictions) {
8709
8709
  _d = (_c = Array).from;
8710
8710
  return [4, tfInt32.data()];
8711
8711
  case 2:
8712
- tf4d_ = _b.apply(_a, [_d.apply(_c, [_e.sent()]), [1, 448, 448, 3]]);
8712
+ tf4d_ = _b.apply(_a, [_d.apply(_c, [_e.sent()]), [1, 320, 320, 3]]);
8713
8713
  tfInt32.dispose();
8714
8714
  tf4d = tf__namespace.cast(tf4d_, 'int32');
8715
8715
  if (logPredictions) console.timeEnd('convert to int32');