scanbot-web-sdk 6.0.0-dev.2 → 6.0.0-dev.4
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/consume-type.d.ts +2 -1
- package/@types/core/bridge/common.d.ts +1 -1
- package/@types/core/bridge/compiled/BarcodeConfigs.d.ts +231 -231
- package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +13 -11
- package/@types/core/bridge/compiled/CreditCardTypes.d.ts +82 -0
- package/@types/core/bridge/compiled/DocumentDetectorTypes.d.ts +52 -44
- package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +17 -17
- package/@types/core/bridge/compiled/FrameAccumulationTypes.d.ts +41 -0
- package/@types/core/bridge/compiled/GDRTypes.d.ts +38 -0
- package/@types/core/bridge/compiled/GenericDocument.d.ts +40 -12
- package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +182 -0
- package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +7 -28
- package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +38 -0
- package/@types/core/bridge/compiled/ImageProcessorTypes.d.ts +5 -5
- package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +2 -2
- package/@types/core/bridge/compiled/ParametricFilters.d.ts +9 -5
- package/@types/core/bridge/compiled/TiffTypes.d.ts +6 -5
- package/@types/core/bridge/worker-bridge.d.ts +604 -40
- package/@types/core/worker/ScanbotSDK.Core.d.ts +29 -18
- package/@types/core-types.d.ts +4 -1
- package/@types/cropping-view.d.ts +1 -1
- package/@types/document-scanner-view.d.ts +4 -2
- package/@types/index.d.ts +40 -4
- package/@types/model/barcode/barcode-result.d.ts +12 -2
- package/@types/model/barcode/barcode.d.ts +2 -1
- package/@types/model/camera-info.d.ts +3 -2
- package/@types/model/configuration/barcode-scanner-configuration.d.ts +7 -4
- package/@types/model/configuration/cropping-view-configuration.d.ts +5 -0
- package/@types/model/configuration/document-scanner-configuration.d.ts +4 -10
- package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +1 -1
- package/@types/model/configuration/initialization-options.d.ts +8 -0
- package/@types/model/configuration/mrz-scanner-configuration.d.ts +1 -1
- package/@types/model/configuration/scanner-configuration.d.ts +7 -0
- package/@types/model/configuration/selection-overlay-configuration.d.ts +2 -2
- package/@types/model/configuration/view-finder-scanner-configuration.d.ts +1 -1
- package/@types/model/error/media-error.d.ts +1 -0
- package/@types/scanbot-sdk.d.ts +360 -54
- package/@types/service/document-quality-analyzer.d.ts +1 -1
- package/@types/service/generic-document-recognizer.d.ts +3 -1
- package/@types/service/simple-mrz-recognizer.d.ts +3 -1
- package/@types/service/text-data-recognizer.d.ts +3 -1
- package/@types/service/tiff-generator.d.ts +1 -1
- package/@types/ui2/common.d.ts +8 -0
- package/@types/ui2/configuration/ActionBarConfiguration.d.ts +30 -30
- package/@types/ui2/configuration/ArTrackingOverlayConfiguration.d.ts +220 -220
- package/@types/ui2/configuration/BarcodeInfoMapping.d.ts +51 -51
- package/@types/ui2/configuration/BarcodeItemMapper.d.ts +2 -2
- package/@types/ui2/configuration/BarcodeRecognizerConfiguration.d.ts +34 -34
- package/@types/ui2/configuration/BarcodeScannerConfiguration.d.ts +168 -168
- package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +1 -6
- package/@types/ui2/configuration/BarcodeScannerUIResult.d.ts +29 -0
- package/@types/ui2/configuration/BarcodeTextLocalization.d.ts +124 -69
- package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -1
- package/@types/ui2/configuration/BarcodeUseCase.d.ts +4 -3
- package/@types/ui2/configuration/CameraConfiguration.d.ts +32 -32
- package/@types/ui2/configuration/CameraPermission.d.ts +33 -33
- package/@types/ui2/configuration/Common.d.ts +190 -190
- package/@types/ui2/configuration/CommonFieldType.d.ts +1 -0
- package/@types/ui2/configuration/FindAndPickScanningModeUseCase.d.ts +364 -12
- package/@types/ui2/configuration/GenericDocument.d.ts +1 -0
- package/@types/ui2/configuration/MultipleScanningModeUseCase.d.ts +488 -488
- package/@types/ui2/configuration/ScanbotAlertDialog.d.ts +27 -27
- package/@types/ui2/configuration/SingleScanningModeUseCase.d.ts +169 -169
- package/@types/ui2/configuration/TopBarConfiguration.d.ts +36 -36
- package/@types/ui2/configuration/UserGuidanceConfiguration.d.ts +16 -16
- package/@types/ui2/configuration/ViewFinderConfiguration.d.ts +45 -45
- package/@types/ui2/configuration.d.ts +2 -1
- package/@types/ui2/controllers/barcode-scanner-controller.d.ts +2 -2
- package/@types/ui2/controllers/multiple-scanning-mode-controller.d.ts +4 -2
- package/@types/ui2/controllers/single-scanning-mode-controller.d.ts +4 -2
- package/@types/ui2/model/counted-barcodes.d.ts +17 -20
- package/@types/ui2/scanbot-sdk-ui.d.ts +2 -2
- package/@types/ui2/scanbot-ui-library.d.ts +3 -2
- package/@types/ui2/utils/barcode-mapper/expected-barcode-mapper.d.ts +13 -0
- package/@types/ui2/utils/barcode-mapper/i-barcode-mapper.d.ts +17 -0
- package/@types/ui2/utils/{barcode-mapper.d.ts → barcode-mapper/user-barcode-mapper.d.ts} +4 -16
- package/@types/ui2/utils/find-and-pick.ts/expected-barcode-counter.d.ts +7 -0
- package/@types/ui2/utils/styled-badge.d.ts +1 -1
- package/@types/ui2/views/ar/ar-badge.d.ts +18 -0
- package/@types/ui2/views/ar/ar-overlay-barcode-info.d.ts +5 -1
- package/@types/ui2/views/ar/vertical-positions.d.ts +12 -0
- package/@types/ui2/views/barcode-info/barcode-info.d.ts +3 -1
- package/@types/ui2/views/barcode-scanner.d.ts +5 -5
- package/@types/ui2/views/dialog/base/confirmation-dialog.d.ts +20 -0
- package/@types/ui2/views/dialog/count-edit-dialog.d.ts +3 -3
- package/@types/ui2/views/dialog/find-and-pick-submit-dialog.d.ts +10 -0
- package/@types/ui2/views/drawer/barcode-result-drawer.d.ts +1 -1
- package/@types/ui2/views/drawer/barcode-result-sidebar.d.ts +10 -0
- package/@types/ui2/views/drawer/counting-button.d.ts +1 -1
- package/@types/ui2/views/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
- package/@types/ui2/views/drawer/subviews/barcode-list-item.d.ts +4 -4
- package/@types/ui2/views/drawer/subviews/barcode-list.d.ts +8 -1
- package/@types/ui2/views/drawer/subviews/drawer-header-content.d.ts +1 -1
- package/@types/utils/barcode-utils.d.ts +10 -0
- package/@types/utils/browser-cameras.d.ts +92 -0
- package/@types/utils/dto/Polygon.d.ts +2 -1
- package/@types/utils/stats.d.ts +4 -0
- package/@types/utils/video-stream.d.ts +3 -3
- package/@types/utils/video-to-image-data/two-d-video-to-image-data.d.ts +8 -0
- package/@types/utils/video-to-image-data/video-to-image-data.d.ts +5 -0
- package/@types/utils/video-to-image-data/webgl-video-to-image-data.d.ts +21 -0
- package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +1 -0
- package/@types/view/scanbot-camera-view.d.ts +9 -3
- package/@types/worker/worker-bridge.d.ts +607 -44
- package/bundle/ScanbotSDK.min.js +5 -5
- 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 +2 -2
- package/@types/core/bridge/compiled_schemas_v3/BarcodeConfigs.d.ts +0 -973
- package/@types/core/bridge/compiled_schemas_v3/BarcodeScannerTypes.d.ts +0 -183
- package/@types/core/bridge/compiled_schemas_v3/BarcodeTypes.d.ts +0 -183
- package/@types/core/bridge/compiled_schemas_v3/CheckRecognizerTypes.d.ts +0 -29
- package/@types/core/bridge/compiled_schemas_v3/CommonFieldType.d.ts +0 -59
- package/@types/core/bridge/compiled_schemas_v3/DocumentDetectorTypes.d.ts +0 -196
- package/@types/core/bridge/compiled_schemas_v3/DocumentQualityAnalyzerTypes.d.ts +0 -105
- package/@types/core/bridge/compiled_schemas_v3/EhicTypes.d.ts +0 -218
- package/@types/core/bridge/compiled_schemas_v3/FrameUtilities.d.ts +0 -18
- package/@types/core/bridge/compiled_schemas_v3/GenericDocument.d.ts +0 -198
- package/@types/core/bridge/compiled_schemas_v3/GenericDocumentRecognizerTypes.d.ts +0 -104
- package/@types/core/bridge/compiled_schemas_v3/GenericTextLineScannerTypes.d.ts +0 -165
- package/@types/core/bridge/compiled_schemas_v3/Geometry.d.ts +0 -49
- package/@types/core/bridge/compiled_schemas_v3/ImageProcessorTypes.d.ts +0 -13
- package/@types/core/bridge/compiled_schemas_v3/LicensePlateScannerTypes.d.ts +0 -67
- package/@types/core/bridge/compiled_schemas_v3/MRZTypes.d.ts +0 -52
- package/@types/core/bridge/compiled_schemas_v3/MedicalCertificateTypes.d.ts +0 -306
- package/@types/core/bridge/compiled_schemas_v3/OcrElements.d.ts +0 -129
- package/@types/core/bridge/compiled_schemas_v3/ParametricFilters.d.ts +0 -186
- package/@types/core/bridge/compiled_schemas_v3/PdfConfig.d.ts +0 -197
- package/@types/core/bridge/compiled_schemas_v3/TiffTypes.d.ts +0 -183
- package/@types/ui2/configuration/BarcodeItem.d.ts +0 -6
- package/@types/ui2/configuration/utils.d.ts +0 -6
- /package/@types/ui2/views/dialog/{styled-dialog.d.ts → base/styled-dialog.d.ts} +0 -0
|
@@ -16,33 +16,260 @@ export declare class WorkerBridge {
|
|
|
16
16
|
getLicenseInfo: () => Promise<any>;
|
|
17
17
|
encodeJpeg: (image: import("../core-types").Image) => Promise<Uint8Array>;
|
|
18
18
|
detectDocument: (image: import("../core-types").Image, options: {
|
|
19
|
+
isLive?: boolean;
|
|
19
20
|
acceptedAngleScore?: number;
|
|
20
21
|
acceptedSizeScore?: number;
|
|
21
22
|
acceptedBrightnessThreshold?: number;
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
acceptedAspectRatioScore?: number;
|
|
24
|
+
aspectRatios?: {
|
|
25
|
+
readonly width?: number;
|
|
26
|
+
readonly height?: number;
|
|
27
|
+
_marker?: () => void;
|
|
28
|
+
}[];
|
|
24
29
|
_marker?: () => void;
|
|
25
|
-
}) => Promise<import("../core/bridge/compiled/DocumentDetectorTypes").
|
|
30
|
+
}) => Promise<import("../core/bridge/compiled/DocumentDetectorTypes").DocumentDetectionResult>;
|
|
26
31
|
detectAndCropDocument: (image: import("../core-types").Image) => Promise<import("../core-types").CroppedDetectionResult>;
|
|
27
32
|
createDocumentDetector: (options: {
|
|
33
|
+
isLive?: boolean;
|
|
28
34
|
acceptedAngleScore?: number;
|
|
29
35
|
acceptedSizeScore?: number;
|
|
30
36
|
acceptedBrightnessThreshold?: number;
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
acceptedAspectRatioScore?: number;
|
|
38
|
+
aspectRatios?: {
|
|
39
|
+
readonly width?: number;
|
|
40
|
+
readonly height?: number;
|
|
41
|
+
_marker?: () => void;
|
|
42
|
+
}[];
|
|
33
43
|
_marker?: () => void;
|
|
34
44
|
}) => Promise<import("../core-types").ObjectId<"DocumentDetector">>;
|
|
35
|
-
documentDetectorDetect: (documentDetectorToken: import("../core-types").ObjectId<"DocumentDetector">, image:
|
|
36
|
-
|
|
45
|
+
documentDetectorDetect: <ImageType extends import("../core-types").Image>(documentDetectorToken: import("../core-types").ObjectId<"DocumentDetector">, image: ImageType) => Promise<import("../core/bridge/compiled/DocumentDetectorTypes").DocumentDetectionResult & {
|
|
46
|
+
originalImage: ImageType;
|
|
47
|
+
}>;
|
|
48
|
+
parseBarcodeDocument: (options: import("../ui2/configuration").BarcodeDocumentFormat[], data: string) => Promise<import("../ui2/configuration").GenericDocument>;
|
|
37
49
|
createBarcodeRecognizer: (options: {
|
|
38
|
-
|
|
39
|
-
|
|
50
|
+
barcodeFormatConfigurations?: ({
|
|
51
|
+
readonly _type?: "BarcodeFormatCodabarConfiguration";
|
|
52
|
+
readonly regexFilter?: string;
|
|
53
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
54
|
+
readonly minimumTextLength?: number;
|
|
55
|
+
readonly maximumTextLength?: number;
|
|
56
|
+
readonly returnStartEnd?: boolean;
|
|
57
|
+
_marker?: () => void;
|
|
58
|
+
} | {
|
|
59
|
+
readonly _type?: "BarcodeFormatCode11Configuration";
|
|
60
|
+
readonly regexFilter?: string;
|
|
61
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
62
|
+
readonly stripCheckDigits?: boolean;
|
|
63
|
+
readonly minimumTextLength?: number;
|
|
64
|
+
readonly maximumTextLength?: number;
|
|
65
|
+
readonly checksum?: boolean;
|
|
66
|
+
_marker?: () => void;
|
|
67
|
+
} | {
|
|
68
|
+
readonly _type?: "BarcodeFormatCode39Configuration";
|
|
69
|
+
readonly regexFilter?: string;
|
|
70
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
71
|
+
readonly stripCheckDigits?: boolean;
|
|
72
|
+
readonly minimumTextLength?: number;
|
|
73
|
+
readonly maximumTextLength?: number;
|
|
74
|
+
readonly code32?: boolean;
|
|
75
|
+
readonly code39?: boolean;
|
|
76
|
+
readonly pzn?: boolean;
|
|
77
|
+
readonly tryCode39ExtendedMode?: boolean;
|
|
78
|
+
readonly useCode39CheckDigit?: boolean;
|
|
79
|
+
_marker?: () => void;
|
|
80
|
+
} | {
|
|
81
|
+
readonly _type?: "BarcodeFormatCode93Configuration";
|
|
82
|
+
readonly regexFilter?: string;
|
|
83
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
84
|
+
readonly minimumTextLength?: number;
|
|
85
|
+
readonly maximumTextLength?: number;
|
|
86
|
+
_marker?: () => void;
|
|
87
|
+
} | {
|
|
88
|
+
readonly _type?: "BarcodeFormatCode128Configuration";
|
|
89
|
+
readonly regexFilter?: string;
|
|
90
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
91
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
92
|
+
readonly minimumTextLength?: number;
|
|
93
|
+
readonly maximumTextLength?: number;
|
|
94
|
+
_marker?: () => void;
|
|
95
|
+
} | {
|
|
96
|
+
readonly _type?: "BarcodeFormatCode2Of5Configuration";
|
|
97
|
+
readonly regexFilter?: string;
|
|
98
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
99
|
+
readonly stripCheckDigits?: boolean;
|
|
100
|
+
readonly minimumTextLength?: number;
|
|
101
|
+
readonly maximumTextLength?: number;
|
|
102
|
+
readonly iata2of5?: boolean;
|
|
103
|
+
readonly code25?: boolean;
|
|
104
|
+
readonly industrial2of5?: boolean;
|
|
105
|
+
readonly useIATA2OF5Checksum?: boolean;
|
|
106
|
+
_marker?: () => void;
|
|
107
|
+
} | {
|
|
108
|
+
readonly _type?: "BarcodeFormatDataBarConfiguration";
|
|
109
|
+
readonly regexFilter?: string;
|
|
110
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
111
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
112
|
+
_marker?: () => void;
|
|
113
|
+
} | {
|
|
114
|
+
readonly _type?: "BarcodeFormatDataBarExpandedConfiguration";
|
|
115
|
+
readonly regexFilter?: string;
|
|
116
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
117
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
118
|
+
_marker?: () => void;
|
|
119
|
+
} | {
|
|
120
|
+
readonly _type?: "BarcodeFormatDataBarLimitedConfiguration";
|
|
121
|
+
readonly regexFilter?: string;
|
|
122
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
123
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
124
|
+
_marker?: () => void;
|
|
125
|
+
} | {
|
|
126
|
+
readonly _type?: "BarcodeFormatITFConfiguration";
|
|
127
|
+
readonly regexFilter?: string;
|
|
128
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
129
|
+
readonly minimumTextLength?: number;
|
|
130
|
+
readonly maximumTextLength?: number;
|
|
131
|
+
_marker?: () => void;
|
|
132
|
+
} | {
|
|
133
|
+
readonly _type?: "BarcodeFormatMSIPlesseyConfiguration";
|
|
134
|
+
readonly regexFilter?: string;
|
|
135
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
136
|
+
readonly stripCheckDigits?: boolean;
|
|
137
|
+
readonly minimumTextLength?: number;
|
|
138
|
+
readonly maximumTextLength?: number;
|
|
139
|
+
readonly checksumAlgorithms?: import("../core/bridge/compiled/BarcodeConfigs").MSIPlesseyChecksumAlgorithm[];
|
|
140
|
+
_marker?: () => void;
|
|
141
|
+
} | {
|
|
142
|
+
readonly _type?: "BarcodeFormatUpcEanConfiguration";
|
|
143
|
+
readonly regexFilter?: string;
|
|
144
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
145
|
+
readonly stripCheckDigits?: boolean;
|
|
146
|
+
readonly ean8?: boolean;
|
|
147
|
+
readonly ean13?: boolean;
|
|
148
|
+
readonly upca?: boolean;
|
|
149
|
+
readonly upce?: boolean;
|
|
150
|
+
readonly extensions?: import("../core/bridge/compiled/BarcodeTypes").UpcEanExtensionBehavior;
|
|
151
|
+
_marker?: () => void;
|
|
152
|
+
} | {
|
|
153
|
+
readonly _type?: "BarcodeFormatPharmaCodeConfiguration";
|
|
154
|
+
readonly regexFilter?: string;
|
|
155
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
156
|
+
readonly minimumValue?: number;
|
|
157
|
+
readonly allowNarrowBarsOnly?: boolean;
|
|
158
|
+
readonly allowWideBarsOnly?: boolean;
|
|
159
|
+
_marker?: () => void;
|
|
160
|
+
} | {
|
|
161
|
+
readonly _type?: "BarcodeFormatAztecConfiguration";
|
|
162
|
+
readonly regexFilter?: string;
|
|
163
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
164
|
+
_marker?: () => void;
|
|
165
|
+
} | {
|
|
166
|
+
readonly _type?: "BarcodeFormatQRCodeConfiguration";
|
|
167
|
+
readonly regexFilter?: string;
|
|
168
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
169
|
+
readonly strictMode?: boolean;
|
|
170
|
+
readonly qr?: boolean;
|
|
171
|
+
readonly microQr?: boolean;
|
|
172
|
+
readonly rmqr?: boolean;
|
|
173
|
+
_marker?: () => void;
|
|
174
|
+
} | {
|
|
175
|
+
readonly _type?: "BarcodeFormatPDF417Configuration";
|
|
176
|
+
readonly regexFilter?: string;
|
|
177
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
178
|
+
readonly strictMode?: boolean;
|
|
179
|
+
_marker?: () => void;
|
|
180
|
+
} | {
|
|
181
|
+
readonly _type?: "BarcodeFormatMicroPDF417Configuration";
|
|
182
|
+
readonly regexFilter?: string;
|
|
183
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
184
|
+
readonly strictMode?: boolean;
|
|
185
|
+
_marker?: () => void;
|
|
186
|
+
} | {
|
|
187
|
+
readonly _type?: "BarcodeFormatDataMatrixConfiguration";
|
|
188
|
+
readonly regexFilter?: string;
|
|
189
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
190
|
+
_marker?: () => void;
|
|
191
|
+
} | {
|
|
192
|
+
readonly _type?: "BarcodeFormatMaxiCodeConfiguration";
|
|
193
|
+
readonly regexFilter?: string;
|
|
194
|
+
_marker?: () => void;
|
|
195
|
+
} | {
|
|
196
|
+
readonly _type?: "BarcodeFormatAustraliaPostConfiguration";
|
|
197
|
+
readonly regexFilter?: string;
|
|
198
|
+
readonly australiaPostCustomerFormat?: import("../core/bridge/compiled/BarcodeConfigs").AustraliaPostCustomerFormat;
|
|
199
|
+
_marker?: () => void;
|
|
200
|
+
} | {
|
|
201
|
+
readonly _type?: "BarcodeFormatJapanPostConfiguration";
|
|
202
|
+
readonly regexFilter?: string;
|
|
203
|
+
_marker?: () => void;
|
|
204
|
+
} | {
|
|
205
|
+
readonly _type?: "BarcodeFormatRoyalMailConfiguration";
|
|
206
|
+
readonly regexFilter?: string;
|
|
207
|
+
readonly stripCheckDigits?: boolean;
|
|
208
|
+
_marker?: () => void;
|
|
209
|
+
} | {
|
|
210
|
+
readonly _type?: "BarcodeFormatRoyalTNTPostConfiguration";
|
|
211
|
+
readonly regexFilter?: string;
|
|
212
|
+
_marker?: () => void;
|
|
213
|
+
} | {
|
|
214
|
+
readonly _type?: "BarcodeFormatUSPSIntelligentMailConfiguration";
|
|
215
|
+
readonly regexFilter?: string;
|
|
216
|
+
_marker?: () => void;
|
|
217
|
+
} | {
|
|
218
|
+
readonly _type?: "BarcodeFormatPharmaCodeTwoTrackConfiguration";
|
|
219
|
+
readonly regexFilter?: string;
|
|
220
|
+
readonly minimumValue?: number;
|
|
221
|
+
_marker?: () => void;
|
|
222
|
+
} | {
|
|
223
|
+
readonly _type?: "BarcodeFormatGS1CompositeConfiguration";
|
|
224
|
+
readonly regexFilter?: string;
|
|
225
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
226
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
227
|
+
readonly strictMode?: boolean;
|
|
228
|
+
_marker?: () => void;
|
|
229
|
+
} | {
|
|
230
|
+
readonly _type?: "BarcodeFormatCommonOneDConfiguration";
|
|
231
|
+
readonly regexFilter?: string;
|
|
232
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
233
|
+
readonly stripCheckDigits?: boolean;
|
|
234
|
+
readonly minimumTextLength?: number;
|
|
235
|
+
readonly maximumTextLength?: number;
|
|
236
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
237
|
+
readonly strictMode?: boolean;
|
|
238
|
+
readonly formats?: import("../ui2/configuration/BarcodeTypes").BarcodeFormat[];
|
|
239
|
+
_marker?: () => void;
|
|
240
|
+
} | {
|
|
241
|
+
readonly _type?: "BarcodeFormatCommonTwoDConfiguration";
|
|
242
|
+
readonly regexFilter?: string;
|
|
243
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
244
|
+
readonly strictMode?: boolean;
|
|
245
|
+
readonly formats?: import("../ui2/configuration/BarcodeTypes").BarcodeFormat[];
|
|
246
|
+
_marker?: () => void;
|
|
247
|
+
} | {
|
|
248
|
+
readonly _type?: "BarcodeFormatCommonFourStateConfiguration";
|
|
249
|
+
readonly regexFilter?: string;
|
|
250
|
+
readonly formats?: import("../ui2/configuration/BarcodeTypes").BarcodeFormat[];
|
|
251
|
+
_marker?: () => void;
|
|
252
|
+
} | {
|
|
253
|
+
readonly _type?: "BarcodeFormatCommonConfiguration";
|
|
254
|
+
readonly regexFilter?: string;
|
|
255
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
256
|
+
readonly stripCheckDigits?: boolean;
|
|
257
|
+
readonly minimumTextLength?: number;
|
|
258
|
+
readonly maximumTextLength?: number;
|
|
259
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
260
|
+
readonly strictMode?: boolean;
|
|
261
|
+
readonly formats?: import("../ui2/configuration/BarcodeTypes").BarcodeFormat[];
|
|
262
|
+
_marker?: () => void;
|
|
263
|
+
})[];
|
|
264
|
+
engineMode?: import("../ui2/configuration").BarcodeScannerEngineMode;
|
|
40
265
|
live?: boolean;
|
|
41
|
-
acceptedDocumentFormats?: import("../
|
|
266
|
+
acceptedDocumentFormats?: import("../ui2/configuration").BarcodeDocumentFormat[];
|
|
42
267
|
returnBarcodeImage?: boolean;
|
|
43
268
|
_marker?: () => void;
|
|
44
269
|
}) => Promise<import("../core-types").ObjectId<"BarcodeRecognizer">>;
|
|
45
|
-
recognizeBarcodes: (barcodeRecognizerToken: import("../core-types").ObjectId<"BarcodeRecognizer">, image:
|
|
270
|
+
recognizeBarcodes: <ImageType_1 extends import("../core-types").Image>(barcodeRecognizerToken: import("../core-types").ObjectId<"BarcodeRecognizer">, image: ImageType_1) => Promise<import("../core/bridge/compiled/BarcodeScannerTypes").BarcodeScannerResult & {
|
|
271
|
+
originalImage: ImageType_1;
|
|
272
|
+
}>;
|
|
46
273
|
beginPdf: (options: {
|
|
47
274
|
readonly attributes?: {
|
|
48
275
|
readonly author?: string;
|
|
@@ -67,7 +294,24 @@ export declare class WorkerBridge {
|
|
|
67
294
|
jpegQuality?: number;
|
|
68
295
|
zipCompressionLevel?: number;
|
|
69
296
|
dpi?: number;
|
|
70
|
-
userFields?:
|
|
297
|
+
userFields?: {
|
|
298
|
+
readonly tag?: number;
|
|
299
|
+
readonly name?: string;
|
|
300
|
+
readonly value?: {
|
|
301
|
+
readonly _type?: "UserFieldDoubleValue";
|
|
302
|
+
readonly value?: number;
|
|
303
|
+
_marker?: () => void;
|
|
304
|
+
} | {
|
|
305
|
+
readonly _type?: "UserFieldStringValue";
|
|
306
|
+
readonly value?: string;
|
|
307
|
+
_marker?: () => void;
|
|
308
|
+
} | {
|
|
309
|
+
readonly _type?: "UserFieldIntValue";
|
|
310
|
+
readonly value?: number;
|
|
311
|
+
_marker?: () => void;
|
|
312
|
+
};
|
|
313
|
+
_marker?: () => void;
|
|
314
|
+
}[];
|
|
71
315
|
binarizationFilter?: {
|
|
72
316
|
readonly _type?: "ScanbotBinarizationFilter";
|
|
73
317
|
outputMode?: import("../core/bridge/compiled/ParametricFilters").OutputMode;
|
|
@@ -108,7 +352,7 @@ export declare class WorkerBridge {
|
|
|
108
352
|
};
|
|
109
353
|
_marker?: () => void;
|
|
110
354
|
}) => Promise<import("../core-types").ObjectId<"TiffGenerationContext">>;
|
|
111
|
-
addPageToTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">, image: import("../core-types").Image,
|
|
355
|
+
addPageToTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">, image: import("../core-types").Image, binarization: import("../core/bridge/compiled/TiffTypes").Binarization) => Promise<unknown>;
|
|
112
356
|
completeTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">) => Promise<Uint8Array>;
|
|
113
357
|
createMRZRecognizer: (configuration: {
|
|
114
358
|
accumulatedResultsVerifierConfig?: {
|
|
@@ -118,7 +362,9 @@ export declare class WorkerBridge {
|
|
|
118
362
|
};
|
|
119
363
|
_marker?: () => void;
|
|
120
364
|
}) => Promise<import("../core-types").ObjectId<"MrzRecognizerContext">>;
|
|
121
|
-
recognizeMRZ: (mrzRecognizerToken: import("../core-types").ObjectId<"MrzRecognizerContext">, image:
|
|
365
|
+
recognizeMRZ: <ImageType_2 extends import("../core-types").Image>(mrzRecognizerToken: import("../core-types").ObjectId<"MrzRecognizerContext">, image: ImageType_2) => Promise<import("../core/bridge/compiled/MRZTypes").RecognitionResult & {
|
|
366
|
+
originalImage: ImageType_2;
|
|
367
|
+
}>;
|
|
122
368
|
releaseObject: <T>(objectToken: import("../core-types").ObjectId<T>) => Promise<void>;
|
|
123
369
|
createOcrEngine: () => Promise<import("../core-types").ObjectId<"TLDROcrContext">>;
|
|
124
370
|
performOcr: (tldrOcrToken: import("../core-types").ObjectId<"TLDROcrContext">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/OcrElements").Page>;
|
|
@@ -143,11 +389,17 @@ export declare class WorkerBridge {
|
|
|
143
389
|
};
|
|
144
390
|
_marker?: () => void;
|
|
145
391
|
}) => Promise<import("../core-types").ObjectId<"GenericTextLineScanner">>;
|
|
146
|
-
recognizeTextLine: (scannerToken: import("../core-types").ObjectId<"GenericTextLineScanner">, image:
|
|
392
|
+
recognizeTextLine: <ImageType_3 extends import("../core-types").Image>(scannerToken: import("../core-types").ObjectId<"GenericTextLineScanner">, image: ImageType_3) => Promise<import("../core/bridge/compiled/GenericTextLineScannerTypes").ScannerResult & {
|
|
393
|
+
originalImage: ImageType_3;
|
|
394
|
+
}>;
|
|
147
395
|
cleanTextLineRecognitionQueue: (scannerToken: import("../core-types").ObjectId<"GenericTextLineScanner">) => Promise<void>;
|
|
148
396
|
createDocumentQualityAnalyzer: (options: {
|
|
149
|
-
readonly qualityThresholds?:
|
|
150
|
-
|
|
397
|
+
readonly qualityThresholds?: {
|
|
398
|
+
readonly symbolQuality?: number;
|
|
399
|
+
readonly symbolRatio?: number;
|
|
400
|
+
_marker?: () => void;
|
|
401
|
+
}[];
|
|
402
|
+
readonly qualityIndices?: import("../core/bridge/compiled/DocumentQualityAnalyzerTypes").DocumentQuality[];
|
|
151
403
|
readonly maxImageSize?: number;
|
|
152
404
|
minEstimatedNumberOfSymbolsForDocument?: number;
|
|
153
405
|
readonly minProcessedFraction?: number;
|
|
@@ -156,26 +408,55 @@ export declare class WorkerBridge {
|
|
|
156
408
|
readonly tileSize?: number;
|
|
157
409
|
_marker?: () => void;
|
|
158
410
|
}) => Promise<import("../core-types").ObjectId<"DocumentQualityAnalyzer">>;
|
|
159
|
-
documentQualityAnalyzerAnalyze: (dqaToken: import("../core-types").ObjectId<"DocumentQualityAnalyzer">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/DocumentQualityAnalyzerTypes").
|
|
411
|
+
documentQualityAnalyzerAnalyze: (dqaToken: import("../core-types").ObjectId<"DocumentQualityAnalyzer">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/DocumentQualityAnalyzerTypes").DocumentQualityAnalyzerResult>;
|
|
160
412
|
imageApplyFilter: (image: import("../core-types").Image, filter: import("../core-types").DeepPartial<import("../core/bridge/compiled/ParametricFilters").ParametricFilter>) => Promise<import("../core-types").RawImage>;
|
|
161
413
|
imageCrop: (image: import("../core-types").Image, polygon: [import("../core-types").Point, import("../core-types").Point, import("../core-types").Point, import("../core-types").Point]) => Promise<import("../core-types").RawImage>;
|
|
162
414
|
imageResize: (image: import("../core-types").Image, destinationSize: number) => Promise<import("../core-types").RawImage>;
|
|
163
415
|
imageRotate: (image: import("../core-types").Image, rotations: import("../core/bridge/compiled/ImageProcessorTypes").ImageRotation) => Promise<import("../core-types").RawImage>;
|
|
164
|
-
genericDocumentRecognizerCreate: (
|
|
416
|
+
genericDocumentRecognizerCreate: (parameters: {
|
|
165
417
|
resultAccumulationConfig?: {
|
|
418
|
+
confirmationMethod?: import("../core/bridge/compiled/FrameAccumulationTypes").ConfirmationMethod;
|
|
166
419
|
minConfirmations?: number;
|
|
167
420
|
minConfidenceForStableField?: number;
|
|
168
421
|
autoClearThreshold?: number;
|
|
169
422
|
_marker?: () => void;
|
|
170
423
|
};
|
|
171
424
|
fieldExcludeList?: string[];
|
|
172
|
-
|
|
425
|
+
configurations?: ({
|
|
426
|
+
readonly _type?: "DateValidationConfig";
|
|
427
|
+
readonly minBirthYear?: number;
|
|
428
|
+
readonly maxBirthYear?: number;
|
|
429
|
+
readonly minExpirationYear?: number;
|
|
430
|
+
readonly maxExpirationYear?: number;
|
|
431
|
+
readonly documentTypes?: import("../core/bridge/compiled/GenericDocumentTypes").DocumentType[];
|
|
432
|
+
_marker?: () => void;
|
|
433
|
+
} | {
|
|
434
|
+
readonly _type?: "EuropeanHealthInsuranceCardConfig";
|
|
435
|
+
readonly minBirthYear?: number;
|
|
436
|
+
readonly maxBirthYear?: number;
|
|
437
|
+
readonly minExpirationYear?: number;
|
|
438
|
+
readonly maxExpirationYear?: number;
|
|
439
|
+
readonly expectedCountry?: import("../core/bridge/compiled/GenericDocumentRecognizerConfigs").EHICIssuingCountry;
|
|
440
|
+
_marker?: () => void;
|
|
441
|
+
} | {
|
|
442
|
+
readonly _type?: "MRZFallbackConfig";
|
|
443
|
+
readonly acceptedCountries?: string[];
|
|
444
|
+
readonly acceptedMRZTypes?: import("../core/bridge/compiled/MRZTypes").DocumentType[];
|
|
445
|
+
_marker?: () => void;
|
|
446
|
+
} | {
|
|
447
|
+
readonly _type?: "GDRGroupConfig";
|
|
448
|
+
readonly acceptedDocumentTypes?: import("../core/bridge/compiled/GenericDocumentTypes").DocumentType[];
|
|
449
|
+
_marker?: () => void;
|
|
450
|
+
})[];
|
|
173
451
|
_marker?: () => void;
|
|
174
452
|
}) => Promise<import("../core-types").ObjectId<"GenericDocumentRecognizer">>;
|
|
175
|
-
genericDocumentRecognizerRecognize: (gdrToken: import("../core-types").ObjectId<"GenericDocumentRecognizer">, image:
|
|
453
|
+
genericDocumentRecognizerRecognize: <ImageType_4 extends import("../core-types").Image>(gdrToken: import("../core-types").ObjectId<"GenericDocumentRecognizer">, image: ImageType_4, parameters: {
|
|
176
454
|
mode?: import("../core/bridge/compiled/GenericDocumentRecognizerTypes").RecognitionMode;
|
|
177
455
|
_marker?: () => void;
|
|
178
|
-
}) => Promise<import("../core/bridge/compiled/GenericDocumentRecognizerTypes").RecognitionResult
|
|
456
|
+
}) => Promise<import("../core/bridge/compiled/GenericDocumentRecognizerTypes").RecognitionResult & {
|
|
457
|
+
originalImage: ImageType_4;
|
|
458
|
+
}>;
|
|
459
|
+
version: () => Promise<string>;
|
|
179
460
|
__hasModuleFunction: (functionName: string) => Promise<any>;
|
|
180
461
|
__callModuleFunction: (functionName: string, args?: any[]) => Promise<any>;
|
|
181
462
|
};
|
|
@@ -189,33 +470,260 @@ export declare class WorkerBridge {
|
|
|
189
470
|
getLicenseInfo: () => Promise<any>;
|
|
190
471
|
encodeJpeg: (image: import("../core-types").Image) => Promise<Uint8Array>;
|
|
191
472
|
detectDocument: (image: import("../core-types").Image, options: {
|
|
473
|
+
isLive?: boolean;
|
|
192
474
|
acceptedAngleScore?: number;
|
|
193
475
|
acceptedSizeScore?: number;
|
|
194
476
|
acceptedBrightnessThreshold?: number;
|
|
195
|
-
|
|
196
|
-
|
|
477
|
+
acceptedAspectRatioScore?: number;
|
|
478
|
+
aspectRatios?: {
|
|
479
|
+
readonly width?: number;
|
|
480
|
+
readonly height?: number;
|
|
481
|
+
_marker?: () => void;
|
|
482
|
+
}[];
|
|
197
483
|
_marker?: () => void;
|
|
198
|
-
}) => Promise<import("../core/bridge/compiled/DocumentDetectorTypes").
|
|
484
|
+
}) => Promise<import("../core/bridge/compiled/DocumentDetectorTypes").DocumentDetectionResult>;
|
|
199
485
|
detectAndCropDocument: (image: import("../core-types").Image) => Promise<import("../core-types").CroppedDetectionResult>;
|
|
200
486
|
createDocumentDetector: (options: {
|
|
487
|
+
isLive?: boolean;
|
|
201
488
|
acceptedAngleScore?: number;
|
|
202
489
|
acceptedSizeScore?: number;
|
|
203
490
|
acceptedBrightnessThreshold?: number;
|
|
204
|
-
|
|
205
|
-
|
|
491
|
+
acceptedAspectRatioScore?: number;
|
|
492
|
+
aspectRatios?: {
|
|
493
|
+
readonly width?: number;
|
|
494
|
+
readonly height?: number;
|
|
495
|
+
_marker?: () => void;
|
|
496
|
+
}[];
|
|
206
497
|
_marker?: () => void;
|
|
207
498
|
}) => Promise<import("../core-types").ObjectId<"DocumentDetector">>;
|
|
208
|
-
documentDetectorDetect: (documentDetectorToken: import("../core-types").ObjectId<"DocumentDetector">, image:
|
|
209
|
-
|
|
499
|
+
documentDetectorDetect: <ImageType extends import("../core-types").Image>(documentDetectorToken: import("../core-types").ObjectId<"DocumentDetector">, image: ImageType) => Promise<import("../core/bridge/compiled/DocumentDetectorTypes").DocumentDetectionResult & {
|
|
500
|
+
originalImage: ImageType;
|
|
501
|
+
}>;
|
|
502
|
+
parseBarcodeDocument: (options: import("../ui2/configuration").BarcodeDocumentFormat[], data: string) => Promise<import("../ui2/configuration").GenericDocument>;
|
|
210
503
|
createBarcodeRecognizer: (options: {
|
|
211
|
-
|
|
212
|
-
|
|
504
|
+
barcodeFormatConfigurations?: ({
|
|
505
|
+
readonly _type?: "BarcodeFormatCodabarConfiguration";
|
|
506
|
+
readonly regexFilter?: string;
|
|
507
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
508
|
+
readonly minimumTextLength?: number;
|
|
509
|
+
readonly maximumTextLength?: number;
|
|
510
|
+
readonly returnStartEnd?: boolean;
|
|
511
|
+
_marker?: () => void;
|
|
512
|
+
} | {
|
|
513
|
+
readonly _type?: "BarcodeFormatCode11Configuration";
|
|
514
|
+
readonly regexFilter?: string;
|
|
515
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
516
|
+
readonly stripCheckDigits?: boolean;
|
|
517
|
+
readonly minimumTextLength?: number;
|
|
518
|
+
readonly maximumTextLength?: number;
|
|
519
|
+
readonly checksum?: boolean;
|
|
520
|
+
_marker?: () => void;
|
|
521
|
+
} | {
|
|
522
|
+
readonly _type?: "BarcodeFormatCode39Configuration";
|
|
523
|
+
readonly regexFilter?: string;
|
|
524
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
525
|
+
readonly stripCheckDigits?: boolean;
|
|
526
|
+
readonly minimumTextLength?: number;
|
|
527
|
+
readonly maximumTextLength?: number;
|
|
528
|
+
readonly code32?: boolean;
|
|
529
|
+
readonly code39?: boolean;
|
|
530
|
+
readonly pzn?: boolean;
|
|
531
|
+
readonly tryCode39ExtendedMode?: boolean;
|
|
532
|
+
readonly useCode39CheckDigit?: boolean;
|
|
533
|
+
_marker?: () => void;
|
|
534
|
+
} | {
|
|
535
|
+
readonly _type?: "BarcodeFormatCode93Configuration";
|
|
536
|
+
readonly regexFilter?: string;
|
|
537
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
538
|
+
readonly minimumTextLength?: number;
|
|
539
|
+
readonly maximumTextLength?: number;
|
|
540
|
+
_marker?: () => void;
|
|
541
|
+
} | {
|
|
542
|
+
readonly _type?: "BarcodeFormatCode128Configuration";
|
|
543
|
+
readonly regexFilter?: string;
|
|
544
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
545
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
546
|
+
readonly minimumTextLength?: number;
|
|
547
|
+
readonly maximumTextLength?: number;
|
|
548
|
+
_marker?: () => void;
|
|
549
|
+
} | {
|
|
550
|
+
readonly _type?: "BarcodeFormatCode2Of5Configuration";
|
|
551
|
+
readonly regexFilter?: string;
|
|
552
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
553
|
+
readonly stripCheckDigits?: boolean;
|
|
554
|
+
readonly minimumTextLength?: number;
|
|
555
|
+
readonly maximumTextLength?: number;
|
|
556
|
+
readonly iata2of5?: boolean;
|
|
557
|
+
readonly code25?: boolean;
|
|
558
|
+
readonly industrial2of5?: boolean;
|
|
559
|
+
readonly useIATA2OF5Checksum?: boolean;
|
|
560
|
+
_marker?: () => void;
|
|
561
|
+
} | {
|
|
562
|
+
readonly _type?: "BarcodeFormatDataBarConfiguration";
|
|
563
|
+
readonly regexFilter?: string;
|
|
564
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
565
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
566
|
+
_marker?: () => void;
|
|
567
|
+
} | {
|
|
568
|
+
readonly _type?: "BarcodeFormatDataBarExpandedConfiguration";
|
|
569
|
+
readonly regexFilter?: string;
|
|
570
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
571
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
572
|
+
_marker?: () => void;
|
|
573
|
+
} | {
|
|
574
|
+
readonly _type?: "BarcodeFormatDataBarLimitedConfiguration";
|
|
575
|
+
readonly regexFilter?: string;
|
|
576
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
577
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
578
|
+
_marker?: () => void;
|
|
579
|
+
} | {
|
|
580
|
+
readonly _type?: "BarcodeFormatITFConfiguration";
|
|
581
|
+
readonly regexFilter?: string;
|
|
582
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
583
|
+
readonly minimumTextLength?: number;
|
|
584
|
+
readonly maximumTextLength?: number;
|
|
585
|
+
_marker?: () => void;
|
|
586
|
+
} | {
|
|
587
|
+
readonly _type?: "BarcodeFormatMSIPlesseyConfiguration";
|
|
588
|
+
readonly regexFilter?: string;
|
|
589
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
590
|
+
readonly stripCheckDigits?: boolean;
|
|
591
|
+
readonly minimumTextLength?: number;
|
|
592
|
+
readonly maximumTextLength?: number;
|
|
593
|
+
readonly checksumAlgorithms?: import("../core/bridge/compiled/BarcodeConfigs").MSIPlesseyChecksumAlgorithm[];
|
|
594
|
+
_marker?: () => void;
|
|
595
|
+
} | {
|
|
596
|
+
readonly _type?: "BarcodeFormatUpcEanConfiguration";
|
|
597
|
+
readonly regexFilter?: string;
|
|
598
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
599
|
+
readonly stripCheckDigits?: boolean;
|
|
600
|
+
readonly ean8?: boolean;
|
|
601
|
+
readonly ean13?: boolean;
|
|
602
|
+
readonly upca?: boolean;
|
|
603
|
+
readonly upce?: boolean;
|
|
604
|
+
readonly extensions?: import("../core/bridge/compiled/BarcodeTypes").UpcEanExtensionBehavior;
|
|
605
|
+
_marker?: () => void;
|
|
606
|
+
} | {
|
|
607
|
+
readonly _type?: "BarcodeFormatPharmaCodeConfiguration";
|
|
608
|
+
readonly regexFilter?: string;
|
|
609
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
610
|
+
readonly minimumValue?: number;
|
|
611
|
+
readonly allowNarrowBarsOnly?: boolean;
|
|
612
|
+
readonly allowWideBarsOnly?: boolean;
|
|
613
|
+
_marker?: () => void;
|
|
614
|
+
} | {
|
|
615
|
+
readonly _type?: "BarcodeFormatAztecConfiguration";
|
|
616
|
+
readonly regexFilter?: string;
|
|
617
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
618
|
+
_marker?: () => void;
|
|
619
|
+
} | {
|
|
620
|
+
readonly _type?: "BarcodeFormatQRCodeConfiguration";
|
|
621
|
+
readonly regexFilter?: string;
|
|
622
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
623
|
+
readonly strictMode?: boolean;
|
|
624
|
+
readonly qr?: boolean;
|
|
625
|
+
readonly microQr?: boolean;
|
|
626
|
+
readonly rmqr?: boolean;
|
|
627
|
+
_marker?: () => void;
|
|
628
|
+
} | {
|
|
629
|
+
readonly _type?: "BarcodeFormatPDF417Configuration";
|
|
630
|
+
readonly regexFilter?: string;
|
|
631
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
632
|
+
readonly strictMode?: boolean;
|
|
633
|
+
_marker?: () => void;
|
|
634
|
+
} | {
|
|
635
|
+
readonly _type?: "BarcodeFormatMicroPDF417Configuration";
|
|
636
|
+
readonly regexFilter?: string;
|
|
637
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
638
|
+
readonly strictMode?: boolean;
|
|
639
|
+
_marker?: () => void;
|
|
640
|
+
} | {
|
|
641
|
+
readonly _type?: "BarcodeFormatDataMatrixConfiguration";
|
|
642
|
+
readonly regexFilter?: string;
|
|
643
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
644
|
+
_marker?: () => void;
|
|
645
|
+
} | {
|
|
646
|
+
readonly _type?: "BarcodeFormatMaxiCodeConfiguration";
|
|
647
|
+
readonly regexFilter?: string;
|
|
648
|
+
_marker?: () => void;
|
|
649
|
+
} | {
|
|
650
|
+
readonly _type?: "BarcodeFormatAustraliaPostConfiguration";
|
|
651
|
+
readonly regexFilter?: string;
|
|
652
|
+
readonly australiaPostCustomerFormat?: import("../core/bridge/compiled/BarcodeConfigs").AustraliaPostCustomerFormat;
|
|
653
|
+
_marker?: () => void;
|
|
654
|
+
} | {
|
|
655
|
+
readonly _type?: "BarcodeFormatJapanPostConfiguration";
|
|
656
|
+
readonly regexFilter?: string;
|
|
657
|
+
_marker?: () => void;
|
|
658
|
+
} | {
|
|
659
|
+
readonly _type?: "BarcodeFormatRoyalMailConfiguration";
|
|
660
|
+
readonly regexFilter?: string;
|
|
661
|
+
readonly stripCheckDigits?: boolean;
|
|
662
|
+
_marker?: () => void;
|
|
663
|
+
} | {
|
|
664
|
+
readonly _type?: "BarcodeFormatRoyalTNTPostConfiguration";
|
|
665
|
+
readonly regexFilter?: string;
|
|
666
|
+
_marker?: () => void;
|
|
667
|
+
} | {
|
|
668
|
+
readonly _type?: "BarcodeFormatUSPSIntelligentMailConfiguration";
|
|
669
|
+
readonly regexFilter?: string;
|
|
670
|
+
_marker?: () => void;
|
|
671
|
+
} | {
|
|
672
|
+
readonly _type?: "BarcodeFormatPharmaCodeTwoTrackConfiguration";
|
|
673
|
+
readonly regexFilter?: string;
|
|
674
|
+
readonly minimumValue?: number;
|
|
675
|
+
_marker?: () => void;
|
|
676
|
+
} | {
|
|
677
|
+
readonly _type?: "BarcodeFormatGS1CompositeConfiguration";
|
|
678
|
+
readonly regexFilter?: string;
|
|
679
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
680
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
681
|
+
readonly strictMode?: boolean;
|
|
682
|
+
_marker?: () => void;
|
|
683
|
+
} | {
|
|
684
|
+
readonly _type?: "BarcodeFormatCommonOneDConfiguration";
|
|
685
|
+
readonly regexFilter?: string;
|
|
686
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
687
|
+
readonly stripCheckDigits?: boolean;
|
|
688
|
+
readonly minimumTextLength?: number;
|
|
689
|
+
readonly maximumTextLength?: number;
|
|
690
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
691
|
+
readonly strictMode?: boolean;
|
|
692
|
+
readonly formats?: import("../ui2/configuration/BarcodeTypes").BarcodeFormat[];
|
|
693
|
+
_marker?: () => void;
|
|
694
|
+
} | {
|
|
695
|
+
readonly _type?: "BarcodeFormatCommonTwoDConfiguration";
|
|
696
|
+
readonly regexFilter?: string;
|
|
697
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
698
|
+
readonly strictMode?: boolean;
|
|
699
|
+
readonly formats?: import("../ui2/configuration/BarcodeTypes").BarcodeFormat[];
|
|
700
|
+
_marker?: () => void;
|
|
701
|
+
} | {
|
|
702
|
+
readonly _type?: "BarcodeFormatCommonFourStateConfiguration";
|
|
703
|
+
readonly regexFilter?: string;
|
|
704
|
+
readonly formats?: import("../ui2/configuration/BarcodeTypes").BarcodeFormat[];
|
|
705
|
+
_marker?: () => void;
|
|
706
|
+
} | {
|
|
707
|
+
readonly _type?: "BarcodeFormatCommonConfiguration";
|
|
708
|
+
readonly regexFilter?: string;
|
|
709
|
+
readonly minimum1DQuietZoneSize?: number;
|
|
710
|
+
readonly stripCheckDigits?: boolean;
|
|
711
|
+
readonly minimumTextLength?: number;
|
|
712
|
+
readonly maximumTextLength?: number;
|
|
713
|
+
readonly gs1Handling?: import("../ui2/configuration/BarcodeTypes").GS1Handling;
|
|
714
|
+
readonly strictMode?: boolean;
|
|
715
|
+
readonly formats?: import("../ui2/configuration/BarcodeTypes").BarcodeFormat[];
|
|
716
|
+
_marker?: () => void;
|
|
717
|
+
})[];
|
|
718
|
+
engineMode?: import("../ui2/configuration").BarcodeScannerEngineMode;
|
|
213
719
|
live?: boolean;
|
|
214
|
-
acceptedDocumentFormats?: import("../
|
|
720
|
+
acceptedDocumentFormats?: import("../ui2/configuration").BarcodeDocumentFormat[];
|
|
215
721
|
returnBarcodeImage?: boolean;
|
|
216
722
|
_marker?: () => void;
|
|
217
723
|
}) => Promise<import("../core-types").ObjectId<"BarcodeRecognizer">>;
|
|
218
|
-
recognizeBarcodes: (barcodeRecognizerToken: import("../core-types").ObjectId<"BarcodeRecognizer">, image:
|
|
724
|
+
recognizeBarcodes: <ImageType_1 extends import("../core-types").Image>(barcodeRecognizerToken: import("../core-types").ObjectId<"BarcodeRecognizer">, image: ImageType_1) => Promise<import("../core/bridge/compiled/BarcodeScannerTypes").BarcodeScannerResult & {
|
|
725
|
+
originalImage: ImageType_1;
|
|
726
|
+
}>;
|
|
219
727
|
beginPdf: (options: {
|
|
220
728
|
readonly attributes?: {
|
|
221
729
|
readonly author?: string;
|
|
@@ -240,7 +748,24 @@ export declare class WorkerBridge {
|
|
|
240
748
|
jpegQuality?: number;
|
|
241
749
|
zipCompressionLevel?: number;
|
|
242
750
|
dpi?: number;
|
|
243
|
-
userFields?:
|
|
751
|
+
userFields?: {
|
|
752
|
+
readonly tag?: number;
|
|
753
|
+
readonly name?: string;
|
|
754
|
+
readonly value?: {
|
|
755
|
+
readonly _type?: "UserFieldDoubleValue";
|
|
756
|
+
readonly value?: number;
|
|
757
|
+
_marker?: () => void;
|
|
758
|
+
} | {
|
|
759
|
+
readonly _type?: "UserFieldStringValue";
|
|
760
|
+
readonly value?: string;
|
|
761
|
+
_marker?: () => void;
|
|
762
|
+
} | {
|
|
763
|
+
readonly _type?: "UserFieldIntValue";
|
|
764
|
+
readonly value?: number;
|
|
765
|
+
_marker?: () => void;
|
|
766
|
+
};
|
|
767
|
+
_marker?: () => void;
|
|
768
|
+
}[];
|
|
244
769
|
binarizationFilter?: {
|
|
245
770
|
readonly _type?: "ScanbotBinarizationFilter";
|
|
246
771
|
outputMode?: import("../core/bridge/compiled/ParametricFilters").OutputMode;
|
|
@@ -281,7 +806,7 @@ export declare class WorkerBridge {
|
|
|
281
806
|
};
|
|
282
807
|
_marker?: () => void;
|
|
283
808
|
}) => Promise<import("../core-types").ObjectId<"TiffGenerationContext">>;
|
|
284
|
-
addPageToTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">, image: import("../core-types").Image,
|
|
809
|
+
addPageToTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">, image: import("../core-types").Image, binarization: import("../core/bridge/compiled/TiffTypes").Binarization) => Promise<unknown>;
|
|
285
810
|
completeTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">) => Promise<Uint8Array>;
|
|
286
811
|
createMRZRecognizer: (configuration: {
|
|
287
812
|
accumulatedResultsVerifierConfig?: {
|
|
@@ -291,7 +816,9 @@ export declare class WorkerBridge {
|
|
|
291
816
|
};
|
|
292
817
|
_marker?: () => void;
|
|
293
818
|
}) => Promise<import("../core-types").ObjectId<"MrzRecognizerContext">>;
|
|
294
|
-
recognizeMRZ: (mrzRecognizerToken: import("../core-types").ObjectId<"MrzRecognizerContext">, image:
|
|
819
|
+
recognizeMRZ: <ImageType_2 extends import("../core-types").Image>(mrzRecognizerToken: import("../core-types").ObjectId<"MrzRecognizerContext">, image: ImageType_2) => Promise<import("../core/bridge/compiled/MRZTypes").RecognitionResult & {
|
|
820
|
+
originalImage: ImageType_2;
|
|
821
|
+
}>;
|
|
295
822
|
releaseObject: <T>(objectToken: import("../core-types").ObjectId<T>) => Promise<void>;
|
|
296
823
|
createOcrEngine: () => Promise<import("../core-types").ObjectId<"TLDROcrContext">>;
|
|
297
824
|
performOcr: (tldrOcrToken: import("../core-types").ObjectId<"TLDROcrContext">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/OcrElements").Page>;
|
|
@@ -316,11 +843,17 @@ export declare class WorkerBridge {
|
|
|
316
843
|
};
|
|
317
844
|
_marker?: () => void;
|
|
318
845
|
}) => Promise<import("../core-types").ObjectId<"GenericTextLineScanner">>;
|
|
319
|
-
recognizeTextLine: (scannerToken: import("../core-types").ObjectId<"GenericTextLineScanner">, image:
|
|
846
|
+
recognizeTextLine: <ImageType_3 extends import("../core-types").Image>(scannerToken: import("../core-types").ObjectId<"GenericTextLineScanner">, image: ImageType_3) => Promise<import("../core/bridge/compiled/GenericTextLineScannerTypes").ScannerResult & {
|
|
847
|
+
originalImage: ImageType_3;
|
|
848
|
+
}>;
|
|
320
849
|
cleanTextLineRecognitionQueue: (scannerToken: import("../core-types").ObjectId<"GenericTextLineScanner">) => Promise<void>;
|
|
321
850
|
createDocumentQualityAnalyzer: (options: {
|
|
322
|
-
readonly qualityThresholds?:
|
|
323
|
-
|
|
851
|
+
readonly qualityThresholds?: {
|
|
852
|
+
readonly symbolQuality?: number;
|
|
853
|
+
readonly symbolRatio?: number;
|
|
854
|
+
_marker?: () => void;
|
|
855
|
+
}[];
|
|
856
|
+
readonly qualityIndices?: import("../core/bridge/compiled/DocumentQualityAnalyzerTypes").DocumentQuality[];
|
|
324
857
|
readonly maxImageSize?: number;
|
|
325
858
|
minEstimatedNumberOfSymbolsForDocument?: number;
|
|
326
859
|
readonly minProcessedFraction?: number;
|
|
@@ -329,28 +862,58 @@ export declare class WorkerBridge {
|
|
|
329
862
|
readonly tileSize?: number;
|
|
330
863
|
_marker?: () => void;
|
|
331
864
|
}) => Promise<import("../core-types").ObjectId<"DocumentQualityAnalyzer">>;
|
|
332
|
-
documentQualityAnalyzerAnalyze: (dqaToken: import("../core-types").ObjectId<"DocumentQualityAnalyzer">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/DocumentQualityAnalyzerTypes").
|
|
865
|
+
documentQualityAnalyzerAnalyze: (dqaToken: import("../core-types").ObjectId<"DocumentQualityAnalyzer">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/DocumentQualityAnalyzerTypes").DocumentQualityAnalyzerResult>;
|
|
333
866
|
imageApplyFilter: (image: import("../core-types").Image, filter: import("../core-types").DeepPartial<import("../core/bridge/compiled/ParametricFilters").ParametricFilter>) => Promise<import("../core-types").RawImage>;
|
|
334
867
|
imageCrop: (image: import("../core-types").Image, polygon: [import("../core-types").Point, import("../core-types").Point, import("../core-types").Point, import("../core-types").Point]) => Promise<import("../core-types").RawImage>;
|
|
335
868
|
imageResize: (image: import("../core-types").Image, destinationSize: number) => Promise<import("../core-types").RawImage>;
|
|
336
869
|
imageRotate: (image: import("../core-types").Image, rotations: import("../core/bridge/compiled/ImageProcessorTypes").ImageRotation) => Promise<import("../core-types").RawImage>;
|
|
337
|
-
genericDocumentRecognizerCreate: (
|
|
870
|
+
genericDocumentRecognizerCreate: (parameters: {
|
|
338
871
|
resultAccumulationConfig?: {
|
|
872
|
+
confirmationMethod?: import("../core/bridge/compiled/FrameAccumulationTypes").ConfirmationMethod;
|
|
339
873
|
minConfirmations?: number;
|
|
340
874
|
minConfidenceForStableField?: number;
|
|
341
875
|
autoClearThreshold?: number;
|
|
342
876
|
_marker?: () => void;
|
|
343
877
|
};
|
|
344
878
|
fieldExcludeList?: string[];
|
|
345
|
-
|
|
879
|
+
configurations?: ({
|
|
880
|
+
readonly _type?: "DateValidationConfig";
|
|
881
|
+
readonly minBirthYear?: number;
|
|
882
|
+
readonly maxBirthYear?: number;
|
|
883
|
+
readonly minExpirationYear?: number;
|
|
884
|
+
readonly maxExpirationYear?: number;
|
|
885
|
+
readonly documentTypes?: import("../core/bridge/compiled/GenericDocumentTypes").DocumentType[];
|
|
886
|
+
_marker?: () => void;
|
|
887
|
+
} | {
|
|
888
|
+
readonly _type?: "EuropeanHealthInsuranceCardConfig";
|
|
889
|
+
readonly minBirthYear?: number;
|
|
890
|
+
readonly maxBirthYear?: number;
|
|
891
|
+
readonly minExpirationYear?: number;
|
|
892
|
+
readonly maxExpirationYear?: number;
|
|
893
|
+
readonly expectedCountry?: import("../core/bridge/compiled/GenericDocumentRecognizerConfigs").EHICIssuingCountry;
|
|
894
|
+
_marker?: () => void;
|
|
895
|
+
} | {
|
|
896
|
+
readonly _type?: "MRZFallbackConfig";
|
|
897
|
+
readonly acceptedCountries?: string[];
|
|
898
|
+
readonly acceptedMRZTypes?: import("../core/bridge/compiled/MRZTypes").DocumentType[];
|
|
899
|
+
_marker?: () => void;
|
|
900
|
+
} | {
|
|
901
|
+
readonly _type?: "GDRGroupConfig";
|
|
902
|
+
readonly acceptedDocumentTypes?: import("../core/bridge/compiled/GenericDocumentTypes").DocumentType[];
|
|
903
|
+
_marker?: () => void;
|
|
904
|
+
})[];
|
|
346
905
|
_marker?: () => void;
|
|
347
906
|
}) => Promise<import("../core-types").ObjectId<"GenericDocumentRecognizer">>;
|
|
348
|
-
genericDocumentRecognizerRecognize: (gdrToken: import("../core-types").ObjectId<"GenericDocumentRecognizer">, image:
|
|
907
|
+
genericDocumentRecognizerRecognize: <ImageType_4 extends import("../core-types").Image>(gdrToken: import("../core-types").ObjectId<"GenericDocumentRecognizer">, image: ImageType_4, parameters: {
|
|
349
908
|
mode?: import("../core/bridge/compiled/GenericDocumentRecognizerTypes").RecognitionMode;
|
|
350
909
|
_marker?: () => void;
|
|
351
|
-
}) => Promise<import("../core/bridge/compiled/GenericDocumentRecognizerTypes").RecognitionResult
|
|
910
|
+
}) => Promise<import("../core/bridge/compiled/GenericDocumentRecognizerTypes").RecognitionResult & {
|
|
911
|
+
originalImage: ImageType_4;
|
|
912
|
+
}>;
|
|
913
|
+
version: () => Promise<string>;
|
|
352
914
|
__hasModuleFunction: (functionName: string) => Promise<any>;
|
|
353
915
|
__callModuleFunction: (functionName: string, args?: any[]) => Promise<any>;
|
|
354
916
|
};
|
|
355
917
|
private getCoreForCommand;
|
|
918
|
+
destroy(): void;
|
|
356
919
|
}
|