@jaak.ai/stamps 2.0.0-dev.44 → 2.0.0-dev.45

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/README.md CHANGED
@@ -442,10 +442,10 @@ export default App;
442
442
  | Property | Type | Default | Description |
443
443
  |----------|------|---------|-------------|
444
444
  | `debug` | `boolean` | `false` | Enables debug mode to show debugging information |
445
- | `alignmentTolerance` | `number` | `20` | Tolerance in pixels to consider a side aligned |
445
+ | `alignmentTolerance` | `number` | `15` | Tolerance in pixels to consider a side aligned |
446
446
  | `maskSize` | `number` | `80` | Percentage of video that the detection mask will occupy (50-100) |
447
447
  | `cropMargin` | `number` | `20` | Margin in pixels added to the document crop (0-100) |
448
- | `captureDelay` | `number` | `1000` | Time in milliseconds the document must remain in position before automatically capturing (0-10000) |
448
+ | `captureDelay` | `number` | `1500` | Time in milliseconds the document must remain in position before automatically capturing (0-10000) |
449
449
  | `useDocumentClassification` | `boolean` | `false` | Enables automatic document classification to determine if back capture is required. Only loads the classification model when enabled. |
450
450
  | `preferredCamera` | `'auto' \| 'front' \| 'back'` | `'auto'` | Defines which camera to use: `'auto'` (automatic based on device), `'front'` (front camera), `'back'` (back camera) |
451
451
 
@@ -1153,12 +1153,12 @@ const JaakStamps = class {
1153
1153
  }
1154
1154
  get el() { return index.getElement(this); }
1155
1155
  debug = false;
1156
- alignmentTolerance = 20;
1156
+ alignmentTolerance = 15;
1157
1157
  maskSize = 80;
1158
1158
  cropMargin = 20;
1159
1159
  useDocumentClassification = false;
1160
1160
  preferredCamera = 'auto';
1161
- captureDelay = 1000;
1161
+ captureDelay = 1500;
1162
1162
  captureCompleted;
1163
1163
  isReady;
1164
1164
  // State derived from services
@@ -1302,8 +1302,8 @@ const JaakStamps = class {
1302
1302
  this.preferredCamera = 'auto';
1303
1303
  }
1304
1304
  if (this.captureDelay < 0 || this.captureDelay > 10000) {
1305
- this.logger.warn(`Propiedad captureDelay inválida. Valor: ${this.captureDelay}, esperado: 0-10000. Usando valor por defecto: 1000`);
1306
- this.captureDelay = 1000;
1305
+ this.logger.warn(`Propiedad captureDelay inválida. Valor: ${this.captureDelay}, esperado: 0-10000. Usando valor por defecto: 1500`);
1306
+ this.captureDelay = 1500;
1307
1307
  }
1308
1308
  }
1309
1309
  async loadOnnxRuntime() {