scanbot-web-sdk 7.1.0 → 7.2.0-rc.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/barcode-scanner-view.d.ts +2 -11
- package/@types/core/bridge/compiled/BarcodeConfigurationTypes.d.ts +1 -6
- package/@types/core/bridge/compiled/BarcodeDocumentTypes.d.ts +1 -1
- package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +3 -3
- package/@types/core/bridge/compiled/BarcodeTypes.d.ts +1 -1
- package/@types/core/bridge/compiled/CheckScannerTypes.d.ts +12 -12
- package/@types/core/bridge/compiled/CreditCardTypes.d.ts +2 -7
- package/@types/core/bridge/compiled/DocumentDataExtractorConfigurationTypes.d.ts +1 -1
- package/@types/core/bridge/compiled/DocumentDataExtractorTypes.d.ts +2 -2
- package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +2 -2
- package/@types/core/bridge/compiled/DocumentScannerTypes.d.ts +11 -11
- package/@types/core/bridge/compiled/EuropeanHealthInsuranceCardTypes.d.ts +1 -1
- package/@types/core/bridge/compiled/FrameAccumulationTypes.d.ts +1 -1
- package/@types/core/bridge/compiled/GenericDocument.d.ts +3 -3
- package/@types/core/bridge/compiled/Geometry.d.ts +2 -2
- package/@types/core/bridge/compiled/LicensePlateScannerTypes.d.ts +2 -2
- package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +3 -3
- package/@types/core/bridge/compiled/MrzTypes.d.ts +2 -7
- package/@types/core/bridge/compiled/ObjectPoolTypes.d.ts +6 -1
- package/@types/core/bridge/compiled/OcrTypes.d.ts +2 -2
- package/@types/core/bridge/compiled/ParametricFilters.d.ts +1 -1
- package/@types/core/bridge/compiled/PdfConfigurationTypes.d.ts +1 -1
- package/@types/core/bridge/compiled/SdkLicenseInfo.d.ts +1 -1
- package/@types/core/bridge/compiled/TextPatternScannerTypes.d.ts +2 -2
- package/@types/core/bridge/compiled/TiffTypes.d.ts +1 -1
- package/@types/core/bridge/compiled/VinScannerTypes.d.ts +2 -2
- package/@types/core/bridge/worker-bridge.d.ts +12 -12
- package/@types/core/worker/ScanbotSDK.Core.d.ts +1 -1
- package/@types/core-types.d.ts +2 -2
- package/@types/document-scanner-view.d.ts +0 -2
- package/@types/index.d.ts +13 -2
- package/@types/model/configuration/barcode-scanner-view-configuration.d.ts +0 -5
- package/@types/model/configuration/view-finder-scanner-configuration.d.ts +7 -2
- package/@types/scanbot-sdk.d.ts +2 -2
- package/@types/scanner-view.d.ts +10 -1
- package/@types/service/storage/local/sb-local-storage.d.ts +2 -2
- package/@types/ui2/assets/intro-image/PassportIcon.d.ts +3 -0
- package/@types/ui2/barcode/utils/styled-button.d.ts +1 -1
- package/@types/ui2/barcode/utils/useScanningViewSize.d.ts +2 -2
- package/@types/ui2/barcode/views/action-button/action-button-container.d.ts +5 -3
- package/@types/ui2/barcode/views/barcode-scanner.d.ts +0 -2
- package/@types/ui2/barcode/views/camera-permission-denied.d.ts +2 -1
- package/@types/ui2/barcode/views/navigation-bar.d.ts +1 -0
- package/@types/ui2/barcode/views/styled-text.d.ts +1 -0
- package/@types/ui2/common.d.ts +1 -0
- package/@types/ui2/configuration/CreditCardTypes.d.ts +2 -0
- package/@types/ui2/configuration/{document/DocumentScannerUIResult.d.ts → DocumentScannerUIResult.d.ts} +1 -1
- package/@types/ui2/configuration/FrameAccumulationTypes.d.ts +2 -0
- package/@types/ui2/configuration/MrzTypes.d.ts +2 -0
- package/@types/ui2/configuration/TextPatternScannerTypes.d.ts +1 -0
- package/@types/ui2/configuration/barcode/BarcodeInfoMapping.d.ts +1 -1
- package/@types/ui2/configuration/barcode/BarcodeScannerConfiguration.d.ts +29 -11
- package/@types/ui2/configuration/barcode/BarcodeScannerScreenConfiguration.d.ts +175 -170
- package/@types/ui2/configuration/barcode/BarcodeTextLocalization.d.ts +48 -18
- package/@types/ui2/configuration/common/ActionBarConfiguration.d.ts +8 -5
- package/@types/ui2/configuration/common/CameraConfiguration.d.ts +5 -5
- package/@types/ui2/configuration/common/CameraPermission.d.ts +6 -8
- package/@types/ui2/configuration/common/Common.d.ts +106 -79
- package/@types/ui2/configuration/common/NavigationBarConfiguration.d.ts +1 -1
- package/@types/ui2/configuration/common/ScanCompletionOverlay.d.ts +32 -0
- package/@types/ui2/configuration/common/ScanbotAlertDialog.d.ts +8 -8
- package/@types/ui2/configuration/common/TopBarConfiguration.d.ts +6 -6
- package/@types/ui2/configuration/common/UserGuidanceConfiguration.d.ts +8 -8
- package/@types/ui2/configuration/common/ViewFinderConfiguration.d.ts +87 -14
- package/@types/ui2/configuration/creditcard/CreditCardScannerIntroScreenConfiguration.d.ts +114 -0
- package/@types/ui2/configuration/creditcard/CreditCardScannerScreenConfiguration.d.ts +216 -0
- package/@types/ui2/configuration/creditcard/CreditCardScannerScreenTextLocalization.d.ts +133 -0
- package/@types/ui2/configuration/creditcard/CreditCardScannerUIResult.d.ts +18 -0
- package/@types/ui2/configuration/creditcard/CreditCardScannerUserGuidance.d.ts +68 -0
- package/@types/ui2/configuration/creditcard/CreditCardScanningProgressConfiguration.d.ts +23 -0
- package/@types/ui2/configuration/document/CameraScreenConfiguration.d.ts +14 -3
- package/@types/ui2/configuration/document/DocumentScannerCameraConfiguration.d.ts +0 -26
- package/@types/ui2/configuration/document/DocumentScannerTextLocalization.d.ts +39 -39
- package/@types/ui2/configuration/document/DocumentScannerUserGuidance.d.ts +3 -3
- package/@types/ui2/configuration/document/IntroductionScreenConfiguration.d.ts +13 -13
- package/@types/ui2/configuration/mrz/MRZFinderLayoutPreset.d.ts +71 -0
- package/@types/ui2/configuration/mrz/MRZScannerIntroScreenConfiguration.d.ts +106 -0
- package/@types/ui2/configuration/mrz/MRZScannerScreenConfiguration.d.ts +200 -0
- package/@types/ui2/configuration/mrz/MRZScannerScreenTextLocalization.d.ts +108 -0
- package/@types/ui2/configuration/mrz/MRZScannerUIResult.d.ts +17 -0
- package/@types/ui2/configuration/native/PageData.d.ts +1 -1
- package/@types/ui2/configuration/textpattern/TextPatternScannerIntroScreenConfiguration.d.ts +114 -0
- package/@types/ui2/configuration/textpattern/TextPatternScannerScreenConfiguration.d.ts +256 -0
- package/@types/ui2/configuration/textpattern/TextPatternScannerScreenTextLocalization.d.ts +133 -0
- package/@types/ui2/configuration/textpattern/TextPatternScannerUIResult.d.ts +27 -0
- package/@types/ui2/configuration/utils.d.ts +3 -3
- package/@types/ui2/configuration.d.ts +6 -0
- package/@types/ui2/data-scanner/assets/checkmark-outlined.d.ts +2 -0
- package/@types/ui2/data-scanner/mrz-scanner-controller.d.ts +11 -0
- package/@types/ui2/data-scanner/views/introduction-popup.d.ts +9 -0
- package/@types/ui2/data-scanner/views/mrz-preset-overlay.d.ts +12 -0
- package/@types/ui2/data-scanner/views/mrz-scanner-box.d.ts +15 -0
- package/@types/ui2/data-scanner/views/scan-completion-overlay-fade.d.ts +9 -0
- package/@types/ui2/document/controller/document-scanner-controller.d.ts +1 -1
- package/@types/ui2/document/model/sb-document.d.ts +1 -1
- package/@types/ui2/document/views/camera-screen/introduction/introduction-image.d.ts +6 -3
- package/@types/ui2/document/views/camera-screen/introduction/introduction.d.ts +1 -1
- package/@types/ui2/document/views/camera-screen/top-user-guidance.d.ts +1 -0
- package/@types/ui2/document/views/camera-screen/use-document-scanner-view.d.ts +0 -2
- package/@types/ui2/scanbot-sdk-ui.d.ts +10 -5
- package/@types/ui2/scanbot-ui-library.d.ts +4 -3
- package/@types/ui2/views/introduction-popup-base.d.ts +9 -0
- package/@types/view/view-finder.d.ts +2 -13
- package/@types/worker/worker-bridge.d.ts +4 -4
- package/bundle/ScanbotSDK.min.js +4 -4
- package/bundle/ScanbotSDK.ui2.min.js +16 -16
- 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
- /package/@types/core/bridge/{compiled/utils.d.ts → common.d.ts} +0 -0
- /package/@types/ui2/{document/views/camera-screen/introduction/assets → assets/intro-image}/CheckIcon.d.ts +0 -0
- /package/@types/ui2/{document/views/camera-screen/introduction/assets → assets/intro-image}/CreditCardsIcon.d.ts +0 -0
- /package/@types/ui2/{document/views/camera-screen/introduction/assets → assets/intro-image}/DocumentsIcon.d.ts +0 -0
- /package/@types/ui2/{document/views/camera-screen/introduction/assets → assets/intro-image}/IdCardsIcon.d.ts +0 -0
- /package/@types/ui2/{document/views/camera-screen/introduction/assets → assets/intro-image}/MedicalCertsIcon.d.ts +0 -0
- /package/@types/ui2/{document/views/camera-screen/introduction/assets → assets/intro-image}/Props.d.ts +0 -0
- /package/@types/ui2/{document/views/camera-screen/introduction/assets → assets/intro-image}/ReceiptsIcon.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ScanbotCameraProps, ScanbotCameraState, ScannerView } from "./scanner-view";
|
|
3
3
|
import { IBarcodeScannerHandle } from "./interfaces/i-barcode-scanner-handle";
|
|
4
|
-
import ViewFinder
|
|
4
|
+
import ViewFinder from "./view/view-finder";
|
|
5
5
|
import { ShutterButtonAction } from "./view/shutter-button";
|
|
6
6
|
import BarcodeCalculationPopup from "./view/barcode-calculation/barcode-calculation-popup";
|
|
7
7
|
import AnimatedBarcodeSelectionOverlay from "./view/barcode-polygon/animated-barcode-selection-overlay";
|
|
@@ -12,16 +12,9 @@ import { Size } from "./utils/dto/Size";
|
|
|
12
12
|
import { BarcodeItem } from "./core-types";
|
|
13
13
|
import type { ObjectId } from "./core-types";
|
|
14
14
|
export declare class BarcodeScannerProps extends ScanbotCameraProps {
|
|
15
|
-
viewFinderPadding?: ViewFinderPadding;
|
|
16
|
-
/**
|
|
17
|
-
* The user should check that the license is valid before using the BarcodeScannerView.
|
|
18
|
-
* In case the license expires while the scanner is open, `onLicenseError` will be called.
|
|
19
|
-
*/
|
|
20
|
-
onLicenseError?: () => void;
|
|
21
15
|
}
|
|
22
16
|
export declare class BarcodeScannerState extends ScanbotCameraState {
|
|
23
17
|
isFinderVisible?: boolean;
|
|
24
|
-
zoom?: number;
|
|
25
18
|
action: ShutterButtonAction;
|
|
26
19
|
image?: string;
|
|
27
20
|
bottomHintText?: string;
|
|
@@ -53,6 +46,7 @@ export default class BarcodeScannerView extends ScannerView<BarcodeScannerProps,
|
|
|
53
46
|
* React Overrides
|
|
54
47
|
*/
|
|
55
48
|
componentDidMount(): Promise<void>;
|
|
49
|
+
componentDidUpdate(prevProps: Readonly<BarcodeScannerProps>, prevState: Readonly<BarcodeScannerState>, snapshot?: any): void;
|
|
56
50
|
componentWillUnmount(): void;
|
|
57
51
|
updateDimensions(): Promise<void>;
|
|
58
52
|
resume(): Promise<void>;
|
|
@@ -66,10 +60,7 @@ export default class BarcodeScannerView extends ScannerView<BarcodeScannerProps,
|
|
|
66
60
|
getResolution(): Promise<Size>;
|
|
67
61
|
saveExtractedImageData(): void;
|
|
68
62
|
setFinderVisible(isVisible: boolean): void;
|
|
69
|
-
setZoom(zoom: number): void;
|
|
70
|
-
setCameraDirection(direction: "environment" | "user"): void;
|
|
71
63
|
updateTorch(enabled: boolean): void;
|
|
72
|
-
getCapabilities(): MediaTrackCapabilities | undefined;
|
|
73
64
|
render(): React.JSX.Element;
|
|
74
65
|
resetCountImage(): void;
|
|
75
66
|
countLabelText(barcodes: BarcodeItem[]): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BarcodeFormat } from "./BarcodeTypes";
|
|
2
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
3
3
|
import { Gs1Handling } from "./BarcodeTypes";
|
|
4
4
|
import { UpcEanExtensionBehavior } from "./BarcodeTypes";
|
|
5
5
|
/**
|
|
@@ -230,11 +230,6 @@ export declare class BarcodeFormatCode93Configuration extends PartiallyConstruct
|
|
|
230
230
|
*/
|
|
231
231
|
minimum1DQuietZoneSize: number;
|
|
232
232
|
/**
|
|
233
|
-
If true, the check digits are stripped from the result.
|
|
234
|
-
@defaultValue false;
|
|
235
|
-
*/
|
|
236
|
-
stripCheckDigits: boolean;
|
|
237
|
-
/**
|
|
238
233
|
Minimum text length. Applied only to linear barcode formats that allow variable length.
|
|
239
234
|
@defaultValue 1;
|
|
240
235
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BarcodeDocumentFormat } from "./BarcodeDocumentTypes";
|
|
2
2
|
import { BarcodeFormatConfigurationBase } from "./BarcodeConfigurationTypes";
|
|
3
3
|
import { BarcodeFormat } from "./BarcodeTypes";
|
|
4
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
4
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
5
5
|
import { GenericDocument } from "./GenericDocument";
|
|
6
|
-
import { Point } from "
|
|
7
|
-
import { RawImage } from "
|
|
6
|
+
import { Point } from "../common";
|
|
7
|
+
import { RawImage } from "../common";
|
|
8
8
|
/**
|
|
9
9
|
A single barcode found in the input image. Barcodes with the same content but different locations in the image are considered separate barcodes.
|
|
10
10
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
2
|
import { DocumentDetectionResult } from "./DocumentScannerTypes";
|
|
3
3
|
import { GenericDocument } from "./GenericDocument";
|
|
4
|
-
import { RawImage } from "
|
|
4
|
+
import { RawImage } from "../common";
|
|
5
5
|
/**
|
|
6
6
|
Check document detection and extraction mode.
|
|
7
7
|
|
|
@@ -15,26 +15,26 @@ Check document detection and extraction mode.
|
|
|
15
15
|
export type CheckDocumentDetectionMode = "DISABLED" | "DETECT_DOCUMENT" | "DETECT_AND_CROP_DOCUMENT";
|
|
16
16
|
export declare const CheckDocumentDetectionModeValues: CheckDocumentDetectionMode[];
|
|
17
17
|
/**
|
|
18
|
-
Check
|
|
18
|
+
Check Scanning Status.
|
|
19
19
|
|
|
20
20
|
- `SUCCESS`:
|
|
21
21
|
Scanning successful.
|
|
22
|
-
- `
|
|
23
|
-
|
|
24
|
-
- `
|
|
25
|
-
|
|
22
|
+
- `VALIDATION_FAILED`:
|
|
23
|
+
A check was recognized, but validation failed, indication a standard violation, unsupported standard, or scanner error.
|
|
24
|
+
- `FAIL`:
|
|
25
|
+
No check was recognized.
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
28
|
-
export declare const
|
|
27
|
+
export type CheckRecognitionStatus = "SUCCESS" | "VALIDATION_FAILED" | "FAIL";
|
|
28
|
+
export declare const CheckRecognitionStatusValues: CheckRecognitionStatus[];
|
|
29
29
|
/**
|
|
30
30
|
The result of check scanning.
|
|
31
31
|
*/
|
|
32
32
|
export declare class CheckScanningResult extends PartiallyConstructible {
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
@defaultValue "
|
|
34
|
+
Check recognition status.
|
|
35
|
+
@defaultValue "FAIL";
|
|
36
36
|
*/
|
|
37
|
-
readonly status:
|
|
37
|
+
readonly status: CheckRecognitionStatus;
|
|
38
38
|
/**
|
|
39
39
|
Generic document containing check data. Not present, if status is FAIL.
|
|
40
40
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
2
|
import { DocumentDetectionStatus } from "./DocumentScannerTypes";
|
|
3
3
|
import { GenericDocument } from "./GenericDocument";
|
|
4
|
-
import { Point } from "
|
|
4
|
+
import { Point } from "../common";
|
|
5
5
|
import { ResultAccumulationConfiguration } from "./FrameAccumulationTypes";
|
|
6
6
|
/**
|
|
7
7
|
The status of the scanning process.
|
|
@@ -83,11 +83,6 @@ export declare class CreditCardScannerConfiguration extends PartiallyConstructib
|
|
|
83
83
|
@defaultValue new ResultAccumulationConfiguration({});
|
|
84
84
|
*/
|
|
85
85
|
resultAccumulationConfig: ResultAccumulationConfiguration;
|
|
86
|
-
/**
|
|
87
|
-
If true, the credit card image will be returned in creditCard field of CreditCardScanningResult.
|
|
88
|
-
@defaultValue false;
|
|
89
|
-
*/
|
|
90
|
-
returnCreditCardImage: boolean;
|
|
91
86
|
/** @param source {@displayType `DeepPartial<CreditCardScannerConfiguration>`} */
|
|
92
87
|
constructor(source?: DeepPartial<CreditCardScannerConfiguration>);
|
|
93
88
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
2
|
import { DocumentDataExtractorConfigurationElement } from "./DocumentDataExtractorConfigurationTypes";
|
|
3
3
|
import { DocumentDetectionResult } from "./DocumentScannerTypes";
|
|
4
4
|
import { GenericDocument } from "./GenericDocument";
|
|
5
|
-
import { RawImage } from "
|
|
5
|
+
import { RawImage } from "../common";
|
|
6
6
|
import { ResultAccumulationConfiguration } from "./FrameAccumulationTypes";
|
|
7
7
|
/**
|
|
8
8
|
The status of the extraction process.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AspectRatio } from "./Geometry";
|
|
2
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
3
3
|
import { LineSegmentFloat } from "./Geometry";
|
|
4
4
|
import { LineSegmentInt } from "./Geometry";
|
|
5
|
-
import { Point } from "
|
|
5
|
+
import { Point } from "../common";
|
|
6
6
|
/**
|
|
7
7
|
Engines for document scanning.
|
|
8
8
|
|
|
@@ -17,12 +17,18 @@ export declare const DocumentScannerEngineModeValues: DocumentScannerEngineMode[
|
|
|
17
17
|
Parameters for the document scanner.
|
|
18
18
|
*/
|
|
19
19
|
export declare class DocumentScannerParameters extends PartiallyConstructible {
|
|
20
|
+
/**
|
|
21
|
+
If true, the document scanner will return only the best document contour.
|
|
22
|
+
If false, the document scanner will additionally return alternative document contours suitable for the cropping screen.
|
|
23
|
+
@defaultValue false;
|
|
24
|
+
*/
|
|
25
|
+
isLive: boolean;
|
|
20
26
|
/**
|
|
21
27
|
The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document.
|
|
22
28
|
Set lower values to accept more perspective distortion.
|
|
23
29
|
|
|
24
30
|
Warning: Lower values result in more blurred document images.
|
|
25
|
-
@defaultValue 75;
|
|
31
|
+
@defaultValue 75.0;
|
|
26
32
|
*/
|
|
27
33
|
acceptedAngleScore: number;
|
|
28
34
|
/**
|
|
@@ -30,7 +36,7 @@ export declare class DocumentScannerParameters extends PartiallyConstructible {
|
|
|
30
36
|
It is sufficient that height or width match the score.
|
|
31
37
|
|
|
32
38
|
Warning: Lower values result in low resolution document images.
|
|
33
|
-
@defaultValue 80;
|
|
39
|
+
@defaultValue 80.0;
|
|
34
40
|
*/
|
|
35
41
|
acceptedSizeScore: number;
|
|
36
42
|
/**
|
|
@@ -43,7 +49,7 @@ export declare class DocumentScannerParameters extends PartiallyConstructible {
|
|
|
43
49
|
must match one of the required aspect ratios (if any) to accept a detected document.
|
|
44
50
|
If acceptedAspectRatioScore is more than 0, then the document is only accepted if the aspect ratio
|
|
45
51
|
matches one of the given aspect ratios (if any), otherwise OK_BUT_BAD_ASPECT_RATIO is returned.
|
|
46
|
-
@defaultValue 85;
|
|
52
|
+
@defaultValue 85.0;
|
|
47
53
|
*/
|
|
48
54
|
acceptedAspectRatioScore: number;
|
|
49
55
|
/**
|
|
@@ -76,12 +82,6 @@ export declare class DocumentScannerConfiguration extends PartiallyConstructible
|
|
|
76
82
|
*/
|
|
77
83
|
engineMode: DocumentScannerEngineMode;
|
|
78
84
|
/**
|
|
79
|
-
If true, the document scanner will return only the best document contour.
|
|
80
|
-
If false, the document scanner will additionally return alternative document contours suitable for the cropping screen.
|
|
81
|
-
@defaultValue false;
|
|
82
|
-
*/
|
|
83
|
-
isLive: boolean;
|
|
84
|
-
/**
|
|
85
85
|
Initial parameters for the document scanner.
|
|
86
86
|
@defaultValue new DocumentScannerParameters({});
|
|
87
87
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
2
|
import { EuropeanHealthInsuranceCardIssuingCountry } from "./DocumentDataExtractorConfigurationTypes";
|
|
3
3
|
/**
|
|
4
4
|
The result of the health insurance card recognition.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommonFieldType } from "./CommonFieldType";
|
|
2
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
3
|
-
import { Point } from "
|
|
4
|
-
import { RawImage } from "
|
|
2
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
3
|
+
import { Point } from "../common";
|
|
4
|
+
import { RawImage } from "../common";
|
|
5
5
|
/**
|
|
6
6
|
Result of OCR text recognition.
|
|
7
7
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
-
import { RawImage } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
+
import { RawImage } from "../common";
|
|
3
3
|
/**
|
|
4
4
|
Type of the scanner internally to scan the license plate.
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
2
|
import { DocumentDetectionResult } from "./DocumentScannerTypes";
|
|
3
|
-
import { Point } from "
|
|
4
|
-
import { RawImage } from "
|
|
3
|
+
import { Point } from "../common";
|
|
4
|
+
import { RawImage } from "../common";
|
|
5
5
|
/**
|
|
6
6
|
Parameters for the medical certificate scanning. The scanner supports
|
|
7
7
|
Form 1 (Arbeitsunfähigkeitsbescheinigung) and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccumulatedResultsVerifierConfiguration } from "./FrameAccumulationTypes";
|
|
2
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
3
3
|
import { GenericDocument } from "./GenericDocument";
|
|
4
4
|
/**
|
|
5
5
|
Type of document containing the MRZ.
|
|
@@ -65,14 +65,9 @@ export declare class MrzScannerConfiguration extends PartiallyConstructible {
|
|
|
65
65
|
enableDetection: boolean;
|
|
66
66
|
/**
|
|
67
67
|
Defines how to handle incomplete MRZ results (e.g. caused by failed validation).
|
|
68
|
-
@defaultValue "
|
|
68
|
+
@defaultValue "ACCEPT";
|
|
69
69
|
*/
|
|
70
70
|
incompleteResultHandling: MrzIncompleteResultHandling;
|
|
71
|
-
/**
|
|
72
|
-
If true, crops of the detected MRZ and its fields will be returned in the result.
|
|
73
|
-
@defaultValue false;
|
|
74
|
-
*/
|
|
75
|
-
returnCrops: boolean;
|
|
76
71
|
/** @param source {@displayType `DeepPartial<MrzScannerConfiguration>`} */
|
|
77
72
|
constructor(source?: DeepPartial<MrzScannerConfiguration>);
|
|
78
73
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
2
|
/**
|
|
3
3
|
Profile info of a reference-counted stored object.
|
|
4
4
|
*/
|
|
@@ -21,6 +21,11 @@ export declare class RefCountedObjectProfile extends PartiallyConstructible {
|
|
|
21
21
|
@defaultValue 0;
|
|
22
22
|
*/
|
|
23
23
|
readonly serializedReferences: number;
|
|
24
|
+
/**
|
|
25
|
+
True, if a serialized reference to this object has likely leaked. Serialized references cannot be tracked via garbage collection (GC) or automatic reference counting (ARC), so they're much more likely to leak. On the other hand, serialized references are almost immediately deserialized (and thus converted to strong references) in all code paths, so the serialized reference count should be zero most of the time. If a serialized reference has existed for more than 5 seconds, it can be assumed that it has leaked.
|
|
26
|
+
@defaultValue false;
|
|
27
|
+
*/
|
|
28
|
+
readonly serializedReferenceLeak: boolean;
|
|
24
29
|
/** @param source {@displayType `DeepPartial<RefCountedObjectProfile>`} */
|
|
25
30
|
constructor(source?: DeepPartial<RefCountedObjectProfile>);
|
|
26
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
-
import { Point } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
+
import { Point } from "../common";
|
|
3
3
|
/**
|
|
4
4
|
Base class for units of text, e.g. glyphs, words, lines, blocks, pages.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
-
import { Rectangle } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
+
import { Rectangle } from "../common";
|
|
3
3
|
/**
|
|
4
4
|
Structure containing recognized word text and bounds.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
-
import { Point } from "
|
|
1
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
+
import { Point } from "../common";
|
|
3
3
|
import { TextPatternScannerResult } from "./TextPatternScannerTypes";
|
|
4
4
|
/**
|
|
5
5
|
Status of the barcode extraction.
|
|
@@ -24,6 +24,7 @@ export declare class WorkerBridge {
|
|
|
24
24
|
getLicenseInfo: () => Promise<import("./compiled/SdkLicenseInfo").SdkLicenseInfo>;
|
|
25
25
|
encodeJpeg: (image: import("../worker/ScanbotSDK.Core").Image) => Promise<Uint8Array>;
|
|
26
26
|
detectDocument: (image: import("../worker/ScanbotSDK.Core").Image, options: {
|
|
27
|
+
isLive?: boolean;
|
|
27
28
|
acceptedAngleScore?: number;
|
|
28
29
|
acceptedSizeScore?: number;
|
|
29
30
|
acceptedBrightnessThreshold?: number;
|
|
@@ -38,6 +39,7 @@ export declare class WorkerBridge {
|
|
|
38
39
|
}) => Promise<import("./compiled/DocumentScannerTypes").DocumentDetectionResult>;
|
|
39
40
|
detectAndCropDocument: (image: import("../worker/ScanbotSDK.Core").Image) => Promise<import("../worker/ScanbotSDK.Core").CroppedDetectionResult>;
|
|
40
41
|
createDocumentScanner: (options: {
|
|
42
|
+
isLive?: boolean;
|
|
41
43
|
acceptedAngleScore?: number;
|
|
42
44
|
acceptedSizeScore?: number;
|
|
43
45
|
acceptedBrightnessThreshold?: number;
|
|
@@ -98,7 +100,6 @@ export declare class WorkerBridge {
|
|
|
98
100
|
minimumSizeScore?: number;
|
|
99
101
|
addAdditionalQuietZone?: boolean;
|
|
100
102
|
minimum1DQuietZoneSize?: number;
|
|
101
|
-
stripCheckDigits?: boolean;
|
|
102
103
|
minimumTextLength?: number;
|
|
103
104
|
maximumTextLength?: number;
|
|
104
105
|
_marker?: () => void;
|
|
@@ -433,7 +434,6 @@ export declare class WorkerBridge {
|
|
|
433
434
|
};
|
|
434
435
|
enableDetection?: boolean;
|
|
435
436
|
incompleteResultHandling?: import("./compiled/MrzTypes").MrzIncompleteResultHandling;
|
|
436
|
-
returnCrops?: boolean;
|
|
437
437
|
_marker?: () => void;
|
|
438
438
|
}) => Promise<import("../worker/ScanbotSDK.Core").ObjectId<"MRZScannerContext">>;
|
|
439
439
|
scanMRZ: <ImageType_2 extends import("../worker/ScanbotSDK.Core").Image>(mrzScannerToken: import("../worker/ScanbotSDK.Core").ObjectId<"MRZScannerContext">, image: ImageType_2) => Promise<import("./compiled/MrzTypes").MrzScannerResult & {
|
|
@@ -492,10 +492,10 @@ export declare class WorkerBridge {
|
|
|
492
492
|
_marker?: () => void;
|
|
493
493
|
}) => Promise<import("../worker/ScanbotSDK.Core").ObjectId<"DocumentQualityAnalyzer">>;
|
|
494
494
|
documentQualityAnalyzerAnalyze: (dqaToken: import("../worker/ScanbotSDK.Core").ObjectId<"DocumentQualityAnalyzer">, image: import("../worker/ScanbotSDK.Core").Image) => Promise<import("./compiled/DocumentQualityAnalyzerTypes").DocumentQualityAnalyzerResult>;
|
|
495
|
-
imageApplyFilter: (image: import("../worker/ScanbotSDK.Core").Image, filter: import("./
|
|
496
|
-
imageCrop: (image: import("../worker/ScanbotSDK.Core").Image, polygon: [import("./
|
|
497
|
-
imageResize: (image: import("../worker/ScanbotSDK.Core").Image, destinationSize: number) => Promise<import("./
|
|
498
|
-
imageRotate: (image: import("../worker/ScanbotSDK.Core").Image, rotations: import("./compiled/ImageTypes").ImageRotation) => Promise<import("./
|
|
495
|
+
imageApplyFilter: (image: import("../worker/ScanbotSDK.Core").Image, filter: import("./common").DeepPartial<import("./compiled/ParametricFilters").ParametricFilter>) => Promise<import("./common").RawImage>;
|
|
496
|
+
imageCrop: (image: import("../worker/ScanbotSDK.Core").Image, polygon: [import("./common").Point, import("./common").Point, import("./common").Point, import("./common").Point]) => Promise<import("./common").RawImage>;
|
|
497
|
+
imageResize: (image: import("../worker/ScanbotSDK.Core").Image, destinationSize: number) => Promise<import("./common").RawImage>;
|
|
498
|
+
imageRotate: (image: import("../worker/ScanbotSDK.Core").Image, rotations: import("./compiled/ImageTypes").ImageRotation) => Promise<import("./common").RawImage>;
|
|
499
499
|
documentDataExtractorCreate: (parameters: {
|
|
500
500
|
resultAccumulationConfig?: {
|
|
501
501
|
confirmationMethod?: import("./compiled/FrameAccumulationTypes").ConfirmationMethod;
|
|
@@ -548,6 +548,7 @@ export declare class WorkerBridge {
|
|
|
548
548
|
getLicenseInfo: () => Promise<import("./compiled/SdkLicenseInfo").SdkLicenseInfo>;
|
|
549
549
|
encodeJpeg: (image: import("../worker/ScanbotSDK.Core").Image) => Promise<Uint8Array>;
|
|
550
550
|
detectDocument: (image: import("../worker/ScanbotSDK.Core").Image, options: {
|
|
551
|
+
isLive?: boolean;
|
|
551
552
|
acceptedAngleScore?: number;
|
|
552
553
|
acceptedSizeScore?: number;
|
|
553
554
|
acceptedBrightnessThreshold?: number;
|
|
@@ -562,6 +563,7 @@ export declare class WorkerBridge {
|
|
|
562
563
|
}) => Promise<import("./compiled/DocumentScannerTypes").DocumentDetectionResult>;
|
|
563
564
|
detectAndCropDocument: (image: import("../worker/ScanbotSDK.Core").Image) => Promise<import("../worker/ScanbotSDK.Core").CroppedDetectionResult>;
|
|
564
565
|
createDocumentScanner: (options: {
|
|
566
|
+
isLive?: boolean;
|
|
565
567
|
acceptedAngleScore?: number;
|
|
566
568
|
acceptedSizeScore?: number;
|
|
567
569
|
acceptedBrightnessThreshold?: number;
|
|
@@ -622,7 +624,6 @@ export declare class WorkerBridge {
|
|
|
622
624
|
minimumSizeScore?: number;
|
|
623
625
|
addAdditionalQuietZone?: boolean;
|
|
624
626
|
minimum1DQuietZoneSize?: number;
|
|
625
|
-
stripCheckDigits?: boolean;
|
|
626
627
|
minimumTextLength?: number;
|
|
627
628
|
maximumTextLength?: number;
|
|
628
629
|
_marker?: () => void;
|
|
@@ -957,7 +958,6 @@ export declare class WorkerBridge {
|
|
|
957
958
|
};
|
|
958
959
|
enableDetection?: boolean;
|
|
959
960
|
incompleteResultHandling?: import("./compiled/MrzTypes").MrzIncompleteResultHandling;
|
|
960
|
-
returnCrops?: boolean;
|
|
961
961
|
_marker?: () => void;
|
|
962
962
|
}) => Promise<import("../worker/ScanbotSDK.Core").ObjectId<"MRZScannerContext">>;
|
|
963
963
|
scanMRZ: <ImageType_2 extends import("../worker/ScanbotSDK.Core").Image>(mrzScannerToken: import("../worker/ScanbotSDK.Core").ObjectId<"MRZScannerContext">, image: ImageType_2) => Promise<import("./compiled/MrzTypes").MrzScannerResult & {
|
|
@@ -1016,10 +1016,10 @@ export declare class WorkerBridge {
|
|
|
1016
1016
|
_marker?: () => void;
|
|
1017
1017
|
}) => Promise<import("../worker/ScanbotSDK.Core").ObjectId<"DocumentQualityAnalyzer">>;
|
|
1018
1018
|
documentQualityAnalyzerAnalyze: (dqaToken: import("../worker/ScanbotSDK.Core").ObjectId<"DocumentQualityAnalyzer">, image: import("../worker/ScanbotSDK.Core").Image) => Promise<import("./compiled/DocumentQualityAnalyzerTypes").DocumentQualityAnalyzerResult>;
|
|
1019
|
-
imageApplyFilter: (image: import("../worker/ScanbotSDK.Core").Image, filter: import("./
|
|
1020
|
-
imageCrop: (image: import("../worker/ScanbotSDK.Core").Image, polygon: [import("./
|
|
1021
|
-
imageResize: (image: import("../worker/ScanbotSDK.Core").Image, destinationSize: number) => Promise<import("./
|
|
1022
|
-
imageRotate: (image: import("../worker/ScanbotSDK.Core").Image, rotations: import("./compiled/ImageTypes").ImageRotation) => Promise<import("./
|
|
1019
|
+
imageApplyFilter: (image: import("../worker/ScanbotSDK.Core").Image, filter: import("./common").DeepPartial<import("./compiled/ParametricFilters").ParametricFilter>) => Promise<import("./common").RawImage>;
|
|
1020
|
+
imageCrop: (image: import("../worker/ScanbotSDK.Core").Image, polygon: [import("./common").Point, import("./common").Point, import("./common").Point, import("./common").Point]) => Promise<import("./common").RawImage>;
|
|
1021
|
+
imageResize: (image: import("../worker/ScanbotSDK.Core").Image, destinationSize: number) => Promise<import("./common").RawImage>;
|
|
1022
|
+
imageRotate: (image: import("../worker/ScanbotSDK.Core").Image, rotations: import("./compiled/ImageTypes").ImageRotation) => Promise<import("./common").RawImage>;
|
|
1023
1023
|
documentDataExtractorCreate: (parameters: {
|
|
1024
1024
|
resultAccumulationConfig?: {
|
|
1025
1025
|
confirmationMethod?: import("./compiled/FrameAccumulationTypes").ConfirmationMethod;
|
|
@@ -11,7 +11,7 @@ import { type BarcodeDocumentFormat } from "../bridge/compiled/BarcodeDocumentTy
|
|
|
11
11
|
import { BarcodeScannerConfiguration, type BarcodeScannerResult } from "../bridge/compiled/BarcodeScannerTypes";
|
|
12
12
|
import { DocumentDataExtractorConfiguration, DocumentDataFrameExtractionParameters as GdrRecognitionParameters, type DocumentDataExtractionResult as GdrRecognitionResult } from "../bridge/compiled/DocumentDataExtractorTypes";
|
|
13
13
|
import { type Binarization, TiffGeneratorParameters } from "../bridge/compiled/TiffTypes";
|
|
14
|
-
import type { RawImage, Point, DeepPartial } from "../bridge/
|
|
14
|
+
import type { RawImage, Point, DeepPartial } from "../bridge/common";
|
|
15
15
|
import type { GenericDocument } from "../bridge/compiled/GenericDocument";
|
|
16
16
|
import { SdkLicenseInfo } from "../bridge/compiled/SdkLicenseInfo";
|
|
17
17
|
/** Represents an object of type T residing in the WASM's memory. */
|
package/@types/core-types.d.ts
CHANGED
|
@@ -22,10 +22,10 @@ export * from './core/bridge/compiled/TiffTypes';
|
|
|
22
22
|
export * from './core/bridge/compiled/FrameAccumulationTypes';
|
|
23
23
|
export * from './core/bridge/compiled/ImageTypes';
|
|
24
24
|
export * from './core/bridge/compiled/VinScannerTypes';
|
|
25
|
-
export type { ObjectId, Image, CroppedDetectionResult } from './core/worker/ScanbotSDK.Core';
|
|
26
25
|
export * from './core/bridge/compiled/DocumentsModel';
|
|
27
26
|
export * from './core/bridge/compiled/BarcodeDocumentModel';
|
|
28
27
|
export * from './core/bridge/compiled/CheckDocumentModel';
|
|
29
28
|
export * from './core/bridge/compiled/CreditCardDocumentModel';
|
|
30
29
|
export * from './core/bridge/compiled/SdkLicenseInfo';
|
|
31
|
-
export { PartiallyConstructible, type RawImage, type DeepPartial, type Point, type Rectangle } from './core/bridge/
|
|
30
|
+
export { PartiallyConstructible, type RawImage, type DeepPartial, type Point, type Rectangle } from './core/bridge/common';
|
|
31
|
+
export type { ObjectId, Image, CroppedDetectionResult } from './core/worker/ScanbotSDK.Core';
|
|
@@ -8,7 +8,6 @@ import { PolygonMovementPredicate } from "./utils/predicate/polygon-movement-pre
|
|
|
8
8
|
import { Polygon } from "./utils/dto/Polygon";
|
|
9
9
|
import { IDocumentScannerHandle } from "./interfaces/i-document-scanner-handle";
|
|
10
10
|
import { CroppedDetectionResult, DocumentDetectionResult, ObjectId } from "./core-types";
|
|
11
|
-
import { ViewFinderPadding } from "./view/view-finder";
|
|
12
11
|
export declare class DocumentScannerState extends ScanbotCameraState {
|
|
13
12
|
action: ShutterButtonAction;
|
|
14
13
|
}
|
|
@@ -16,7 +15,6 @@ export declare class DocumentScannerProps extends ScanbotCameraProps {
|
|
|
16
15
|
sdk: ScanbotSDK;
|
|
17
16
|
hideShutterButton?: boolean;
|
|
18
17
|
onStatusStringUpdate?: (status: keyof HintTextConfiguration) => void;
|
|
19
|
-
viewFinderPadding?: ViewFinderPadding;
|
|
20
18
|
pauseAR?: boolean;
|
|
21
19
|
}
|
|
22
20
|
export default class DocumentScannerView extends ScannerView<DocumentScannerProps, DocumentScannerState> implements IDocumentScannerHandle {
|
package/@types/index.d.ts
CHANGED
|
@@ -49,13 +49,24 @@ export { PublicUtils } from "./service/public-utils";
|
|
|
49
49
|
export { Size } from "./utils/dto/Size";
|
|
50
50
|
export { VideoSize } from "./utils/dto/VideoSize";
|
|
51
51
|
|
|
52
|
-
export {
|
|
52
|
+
export {
|
|
53
|
+
SelectionOverlayConfiguration,
|
|
54
|
+
IBarcodePolygonHandle,
|
|
55
|
+
IBarcodePolygonLabelHandle,
|
|
56
|
+
BarcodePolygonStyle,
|
|
57
|
+
SelectionOverlayTextFormat,
|
|
58
|
+
SelectionOverlayStyleConfiguration,
|
|
59
|
+
BarcodePolygonLabelStyle
|
|
60
|
+
} from "./model/configuration/selection-overlay-configuration";
|
|
53
61
|
|
|
54
62
|
export { Polygon } from "./utils/dto/Polygon";
|
|
55
63
|
|
|
56
64
|
//TODO We currently have two implementations of Point in: utils/dto/Point & core-types. Should this be refactored?
|
|
57
65
|
export { Point as Point2 } from "./utils/dto/Point";
|
|
58
66
|
|
|
67
|
+
// cf. declaration of the override file for an explanation
|
|
68
|
+
export { DeepPartial as DeepPartialOverride, TypesThatAreOpaqueToDeepPartial } from "./ui2/configuration/utils";
|
|
69
|
+
|
|
59
70
|
export { InitializationOptions } from "./model/configuration/initialization-options";
|
|
60
71
|
export { LicenseInfo } from "./model/response/license-info";
|
|
61
72
|
export { CameraInfo, CameraFacingMode } from "./model/camera-info";
|
|
@@ -64,7 +75,7 @@ export { ConsumeType } from "./consume-type";
|
|
|
64
75
|
|
|
65
76
|
export { BrowserCameras, CameraDetectionStrategy, DiscoverCameraMode } from './utils/browser-cameras';
|
|
66
77
|
|
|
67
|
-
export { DocumentScannerUIResult } from "./ui2/configuration/
|
|
78
|
+
export { DocumentScannerUIResult } from "./ui2/configuration/DocumentScannerUIResult";
|
|
68
79
|
|
|
69
80
|
/** Storage-related exports */
|
|
70
81
|
export { SBStorage, SBStoreCroppedDetectionResult } from "./service/storage/sb-storage";
|
|
@@ -20,11 +20,6 @@ export declare class BarcodeScannerViewConfiguration extends ViewFinderScannerCo
|
|
|
20
20
|
* Please note that results are returned for each consecutive scan, not only after the last scan
|
|
21
21
|
*/
|
|
22
22
|
scanAndCount?: BarcodeCountConfiguration;
|
|
23
|
-
/**
|
|
24
|
-
* Digital zoom level of the video stream. Defaults to 1.0.
|
|
25
|
-
* Please note that this is not the same as the optical zoom of the camera.
|
|
26
|
-
*/
|
|
27
|
-
zoom?: number;
|
|
28
23
|
/**
|
|
29
24
|
*/
|
|
30
25
|
onBarcodesDetected?: (e: BarcodeScannerResultWithSize) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScannerConfiguration } from "./scanner-configuration";
|
|
2
|
-
import { ViewFinderConfiguration, UserGuidanceConfiguration } from "../../ui2/configuration";
|
|
2
|
+
import { ViewFinderConfiguration, UserGuidanceConfiguration, BaseViewFinderConfiguration } from "../../ui2/configuration";
|
|
3
3
|
import { DeepPartial } from "../../ui2/configuration/utils";
|
|
4
4
|
export declare function finderDefaultConfig(): ViewFinderConfiguration;
|
|
5
5
|
export declare class ViewFinderScannerConfiguration extends ScannerConfiguration {
|
|
@@ -7,7 +7,12 @@ export declare class ViewFinderScannerConfiguration extends ScannerConfiguration
|
|
|
7
7
|
width: number;
|
|
8
8
|
height: number;
|
|
9
9
|
});
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Digital zoom level of the video stream. Defaults to 1.0.
|
|
12
|
+
* Please note that this is not the same as the optical zoom of the camera.
|
|
13
|
+
*/
|
|
14
|
+
zoom?: number;
|
|
15
|
+
finder?: DeepPartial<BaseViewFinderConfiguration>;
|
|
11
16
|
userGuidance?: DeepPartial<UserGuidanceConfiguration>;
|
|
12
17
|
static mapFinderConfiguration(result: ViewFinderScannerConfiguration, json: any): void;
|
|
13
18
|
}
|