@pixelverse/strichjs-sdk 1.1.0 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.1] - 2023-05-22
4
+
5
+ ### Added
6
+
7
+ - Added hysteresis for 1D barcodes with weak checksums (EAN/UPC symbologies) to decrease misreads. This feature improves reliability for EAN/UPC barcodes at the cost of slightly slower detection, and can be deactivated by setting the new `hysteresisMinCount` engine parameter to `0`.
8
+
9
+ ### Fixed
10
+
11
+ - Fixed a memory violation in the Databar decoder, which would occasionally crash the engine.
12
+
3
13
  ## [1.1.0] - 2023-05-17
4
14
 
5
15
  ### Added
package/dist/strich.d.ts CHANGED
@@ -131,6 +131,25 @@ export interface EngineConfiguration {
131
131
  * It is recommended to set a low duplicateInterval as scans are metered in non-Enterprise subscriptions.
132
132
  */
133
133
  duplicateInterval?: number;
134
+ /**
135
+ * Hysteresis parameterization for 1D barcodes with weak checksums.
136
+ *
137
+ * This parameter sets the minimum threshold for the number of detections of a barcode in the hysteresis
138
+ * window for it to be accepted.
139
+ *
140
+ * Setting this parameter to 0 disables hysteresis (default behavior for versions <= 1.1.0)
141
+ *
142
+ * @default 3
143
+ */
144
+ hysteresisMinCount?: number;
145
+ /**
146
+ * Hysteresis parameterization for 1D barcodes with weak checksums.
147
+ *
148
+ * This parameter sets the size of the hysteresis window in milliseconds.
149
+ *
150
+ * @default 250
151
+ */
152
+ hysteresisInterval?: number;
134
153
  }
135
154
  /**
136
155
  * Overlay configuration