idmission-web-sdk 2.1.71 → 2.1.72

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.
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
234
234
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
235
235
  };
236
236
 
237
- var webSdkVersion = '2.1.71';
237
+ var webSdkVersion = '2.1.72';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -5440,7 +5440,7 @@ var defaultDocumentDetectionThresholds = {
5440
5440
  idCardFront: 0.6,
5441
5441
  idCardBack: 0.6,
5442
5442
  passport: 0.4,
5443
- stability: 0.7
5443
+ stability: 0.9
5444
5444
  };
5445
5445
  var documentTypeDisplayNames = {
5446
5446
  idCardFront: 'ID card front',
@@ -5674,7 +5674,7 @@ function processDocumentDetectorPrediction(prediction, thresholds, boundaries) {
5674
5674
  documentTooClose = docWidth > 0.85 || docHeight > 0.85;
5675
5675
  if (detectionThresholdMet) {
5676
5676
  var threshold_1 = (_m = thresholds.stability) !== null && _m !== void 0 ? _m : defaultDocumentDetectionThresholds.stability;
5677
- var framesNeeded = Math.min(1000 / lastDetectionTime, 12);
5677
+ var framesNeeded = Math.ceil(Math.min(1000 / lastDetectionTime, 12));
5678
5678
  lastNBoxes = __spreadArray([bestDocument.box], lastNBoxes, true).slice(0, framesNeeded);
5679
5679
  documentIsStable = lastNBoxes.length >= framesNeeded && !createPairs(lastNBoxes).some(function (_a) {
5680
5680
  var a = _a[0],