scanbot-web-sdk 5.1.2 → 5.1.3-dev.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.
- package/@types/model/barcode/engine-mode.d.ts +5 -1
- package/@types/scanbot-sdk.d.ts +8 -0
- package/@types/worker/worker-bridge.d.ts +1 -0
- package/bundle/ScanbotSDK.min.js +2 -2
- package/bundle/ScanbotSDK.ui2.min.js +2 -2
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* ML: The main engine mode, for use with high-power devices.
|
|
5
5
|
*
|
|
6
|
+
* ML_SINGLE_SHOT: This mode is a lot slower than the normal ML-modes, but it can find much smaller barcodes. It will be too slow for real-time scanning on all but the most powerful devices.
|
|
7
|
+
*
|
|
8
|
+
* ML_SINGLE_SHOT_LOW_POWER: A faster version of the single-shot mode. It will be too slow for real-time scanning on most devices.
|
|
9
|
+
*
|
|
6
10
|
* LEGACY: The legacy engine mode. Fast but less accurate.
|
|
7
11
|
*/
|
|
8
|
-
export type EngineMode = "ML" | "ML_LOW_POWER" | "LEGACY";
|
|
12
|
+
export type EngineMode = "ML" | "ML_LOW_POWER" | "ML_SINGLE_SHOT" | "ML_SINGLE_SHOT_LOW_POWER" | "LEGACY";
|
package/@types/scanbot-sdk.d.ts
CHANGED
|
@@ -79,6 +79,14 @@ export default class ScanbotSDK {
|
|
|
79
79
|
release(object: any, source?: string): Promise<void>;
|
|
80
80
|
private licenseCheck;
|
|
81
81
|
private createGenericTextLineScanner;
|
|
82
|
+
/**
|
|
83
|
+
* This method will destroy all web workers and free the memory held by the
|
|
84
|
+
* SDK (after the next run of the garbage collector).
|
|
85
|
+
* This function may only be called when no scanner is open and no API call is pending.
|
|
86
|
+
* After calling this function, no further calls to this object are allowed. To further use the SDK,
|
|
87
|
+
* it needs to be initialized again.
|
|
88
|
+
*/
|
|
89
|
+
destroy(): void;
|
|
82
90
|
static imageFilters: {
|
|
83
91
|
ScanbotBinarizationFilter: typeof imageFilters.ScanbotBinarizationFilter;
|
|
84
92
|
CustomBinarizationFilter: typeof imageFilters.CustomBinarizationFilter;
|