scanbot-web-sdk 5.0.1-beta.2 → 5.0.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/@types/model/configuration/document-scanner-configuration.d.ts +0 -9
- package/@types/model/configuration/scanner-configuration.d.ts +0 -1
- package/@types/model/document/contour-detection-result.d.ts +0 -8
- package/@types/scanbot-sdk.d.ts +1 -1
- package/bundle/ScanbotSDK.min.js +1 -1
- 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.Asm.wasm-webpack-file-loader +0 -0
- 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.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.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/complete/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- 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.Asm.wasm-webpack-file-loader +0 -0
- 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
|
@@ -53,15 +53,6 @@ export declare class CaptureButtonStyleConfiguration {
|
|
|
53
53
|
}
|
|
54
54
|
export declare class DocumentScannerConfiguration extends ScannerConfiguration {
|
|
55
55
|
constructor();
|
|
56
|
-
/**
|
|
57
|
-
* An average brightness is computed as follows: It is the average
|
|
58
|
-
* of the Value channel in the HSV color space of:
|
|
59
|
-
* - the whole image, if no document was detected
|
|
60
|
-
* - the document crop, if a document was detected
|
|
61
|
-
* It ranges from 0 to 255.
|
|
62
|
-
* If this computed value is below the acceptanceBrightnessThreshold, the document is accepted.
|
|
63
|
-
*/
|
|
64
|
-
acceptedBrightnessThreshold?: number;
|
|
65
56
|
/**
|
|
66
57
|
* The minimum score in percent (0 - 100) of the perspective
|
|
67
58
|
* distortion to accept a detected document. Default is 75.0.
|
|
@@ -7,13 +7,5 @@ export declare class ContourDetectionResult {
|
|
|
7
7
|
polygon?: Polygon;
|
|
8
8
|
detectionStatus?: DetectionStatus;
|
|
9
9
|
success?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Average brightness, calculated as the average
|
|
12
|
-
* of the Value channel in the HSV color space of:
|
|
13
|
-
* - the whole image, if no document was detected
|
|
14
|
-
* - the document crop, if a document was detected
|
|
15
|
-
* Ranges from 0 to 255
|
|
16
|
-
*/
|
|
17
|
-
averageBrightness?: number;
|
|
18
10
|
constructor(contourDetectionResult?: ContourDetectionResult);
|
|
19
11
|
}
|
package/@types/scanbot-sdk.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export default class ScanbotSDK {
|
|
|
54
54
|
applyFilter(imageBuffer: ArrayBuffer, filterType: ImageFilter): Promise<ArrayBuffer>;
|
|
55
55
|
rotateImageCcw(imageBuffer: ArrayBuffer, rotations: number): Promise<ArrayBuffer>;
|
|
56
56
|
cropAndRotateImageCcw(imageBuffer: ArrayBuffer, polygon: Polygon, rotations: number): Promise<any>;
|
|
57
|
-
detectDocument(imageBuffer: ArrayBuffer, acceptedAngleScore?: number, acceptedSizeScore?: number
|
|
57
|
+
detectDocument(imageBuffer: ArrayBuffer, acceptedAngleScore?: number, acceptedSizeScore?: number): Promise<ContourDetectionResult>;
|
|
58
58
|
detectAndCropDocument(imageBuffer: ArrayBuffer): Promise<ContourDetectionResult>;
|
|
59
59
|
detectBarcodes(base64: string, engineMode?: EngineMode, barcodeFormats?: BarcodeFormat[], returnBarcodeImage?: boolean): Promise<BarcodeResult>;
|
|
60
60
|
createSimpleMRZRecognizer(): Promise<SimpleMrzRecognizer>;
|