scanbot-web-sdk 2.6.0-beta1 → 2.6.1-alpha2
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/index.d.ts +8 -0
- package/@types/model/error/media-not-available-error.d.ts +5 -0
- package/@types/model/error/media-permission-error.d.ts +5 -0
- package/@types/model/error/unsupported-media-devices-error.d.ts +5 -0
- package/@types/scanbot-sdk.d.ts +2 -0
- package/@types/scanner-view.d.ts +2 -2
- package/@types/service/blur-detector.d.ts +10 -0
- package/@types/utils/image-utils.d.ts +1 -0
- package/Libraries.txt +213 -247
- package/bundle/ScanbotSDK.Core.js +1 -1
- package/bundle/ScanbotSDK.min.js +2 -2
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/package.json +1 -1
package/@types/index.d.ts
CHANGED
|
@@ -26,6 +26,10 @@ import { Barcode } from "./model/barcode/barcode";
|
|
|
26
26
|
import { InitializationOptions } from "./model/configuration/initialization-options";
|
|
27
27
|
import { LicenseInfo } from "./model/response/license-info";
|
|
28
28
|
|
|
29
|
+
import { MediaNotAvailableError } from "./model/error/media-not-available-error";
|
|
30
|
+
import { MediaPermissionError } from "./model/error/media-permission-error";
|
|
31
|
+
import { UnsupportedMediaDevicesError } from "./model/error/unsupported-media-devices-error";
|
|
32
|
+
|
|
29
33
|
export {
|
|
30
34
|
IDocumentScannerHandle,
|
|
31
35
|
DocumentScannerConfiguration,
|
|
@@ -59,4 +63,8 @@ export {
|
|
|
59
63
|
Polygon,
|
|
60
64
|
Barcode,
|
|
61
65
|
LicenseInfo,
|
|
66
|
+
|
|
67
|
+
MediaNotAvailableError,
|
|
68
|
+
MediaPermissionError,
|
|
69
|
+
UnsupportedMediaDevicesError,
|
|
62
70
|
}
|
package/@types/scanbot-sdk.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { MrzScannerConfiguration } from "./model/configuration/mrz-scanner-confi
|
|
|
19
19
|
import { IMrzScannerHandle } from "./interfaces/i-mrz-scanner-handle";
|
|
20
20
|
import SimpleMrzRecognizer from "./service/simple-mrz-recognizer";
|
|
21
21
|
import OcrEngine from "./service/ocr-engine";
|
|
22
|
+
import BlurDetector from "./service/blur-detector";
|
|
22
23
|
import { ContourDetectionResult } from "./model/document/contour-detection-result";
|
|
23
24
|
export default class ScanbotSDK {
|
|
24
25
|
bridge: WorkerBridge;
|
|
@@ -44,6 +45,7 @@ export default class ScanbotSDK {
|
|
|
44
45
|
detectBarcodes(base64: string, engineMode?: EngineMode, barcodeFormats?: BarcodeFormat[]): Promise<BarcodeResult>;
|
|
45
46
|
createSimpleMRZRecognizer(): Promise<SimpleMrzRecognizer>;
|
|
46
47
|
createOcrEngine(languages: Array<string>): Promise<OcrEngine>;
|
|
48
|
+
createBlurDetector(): Promise<BlurDetector>;
|
|
47
49
|
/**
|
|
48
50
|
* Misc. Features
|
|
49
51
|
*/
|
package/@types/scanner-view.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import ScanbotCameraView from "./view/scanbot-camera-view";
|
|
|
4
4
|
export declare class ScanbotCameraProps {
|
|
5
5
|
configuration: ScannerConfiguration;
|
|
6
6
|
container?: HTMLElement;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
onSuccess?: (scanner: any) => void;
|
|
8
|
+
onFailure?: (err: Error) => void;
|
|
9
9
|
}
|
|
10
10
|
export declare class ScanbotCameraState {
|
|
11
11
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ScanbotSDK from '../scanbot-sdk';
|
|
2
|
+
export default class BlurDetector {
|
|
3
|
+
_token: string;
|
|
4
|
+
_sdk: ScanbotSDK;
|
|
5
|
+
constructor(sdk: ScanbotSDK, token: string);
|
|
6
|
+
estimateBlurriness(imageData: ImageData): Promise<Number>;
|
|
7
|
+
estimateBlurrinessOnBuffer(imageBuffer: ArrayBuffer): Promise<Number>;
|
|
8
|
+
estimateBlurrinessURL(imageURL: string): Promise<Number>;
|
|
9
|
+
release(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -3,4 +3,5 @@ import { Frame } from "./dto/Frame";
|
|
|
3
3
|
export declare class ImageUtils {
|
|
4
4
|
static toDataUrl(buffer: ArrayBuffer): Promise<string>;
|
|
5
5
|
static getObjectFitSize(container: Size, size: Size, contains?: boolean): Frame;
|
|
6
|
+
static loadFromUrl(imageURL: string): Promise<ImageData>;
|
|
6
7
|
}
|