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.
package/dist/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.1.71';
207
+ var webSdkVersion = '2.1.72';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -5410,7 +5410,7 @@ var defaultDocumentDetectionThresholds = {
5410
5410
  idCardFront: 0.6,
5411
5411
  idCardBack: 0.6,
5412
5412
  passport: 0.4,
5413
- stability: 0.7
5413
+ stability: 0.9
5414
5414
  };
5415
5415
  var documentTypeDisplayNames = {
5416
5416
  idCardFront: 'ID card front',
@@ -5644,7 +5644,7 @@ function processDocumentDetectorPrediction(prediction, thresholds, boundaries) {
5644
5644
  documentTooClose = docWidth > 0.85 || docHeight > 0.85;
5645
5645
  if (detectionThresholdMet) {
5646
5646
  var threshold_1 = (_m = thresholds.stability) !== null && _m !== void 0 ? _m : defaultDocumentDetectionThresholds.stability;
5647
- var framesNeeded = Math.min(1000 / lastDetectionTime, 12);
5647
+ var framesNeeded = Math.ceil(Math.min(1000 / lastDetectionTime, 12));
5648
5648
  lastNBoxes = __spreadArray([bestDocument.box], lastNBoxes, true).slice(0, framesNeeded);
5649
5649
  documentIsStable = lastNBoxes.length >= framesNeeded && !createPairs(lastNBoxes).some(function (_a) {
5650
5650
  var a = _a[0],