scanbot-web-sdk 7.0.0-dev.6 → 7.0.0-dev.7
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/core/bridge/compiled/TiffTypes.d.ts +6 -6
- package/@types/core/worker/ScanbotSDK.Core.d.ts +2 -2
- package/@types/scanbot-sdk.d.ts +3 -3
- package/@types/ui2/document/model/sb-document.d.ts +2 -2
- package/bundle/ScanbotSDK.min.js +1 -1
- package/bundle/ScanbotSDK.ui2.min.js +11 -11
- 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
|
@@ -56,7 +56,7 @@ Binarization behavior to apply when adding pages to a TIFF.
|
|
|
56
56
|
- `ENABLED`:
|
|
57
57
|
Binarize the image. Image will be stored as a 1-bit TIFF. If the input image is not black-and-white, a simple thresholding is applied.
|
|
58
58
|
- `ENABLED_IF_BINARIZATION_FILTER_SET`:
|
|
59
|
-
Same behavior as ENABLED if a binarization filter (
|
|
59
|
+
Same behavior as ENABLED if a binarization filter (TIFFGeneratorParameters.binarizationFilter) is set,
|
|
60
60
|
otherwise same behavior as DISABLED. This is the default.
|
|
61
61
|
*/
|
|
62
62
|
export type Binarization = "DISABLED" | "ENABLED" | "ENABLED_IF_BINARIZATION_FILTER_SET";
|
|
@@ -128,9 +128,9 @@ export declare class UserField extends PartiallyConstructible {
|
|
|
128
128
|
constructor(source?: DeepPartial<UserField>);
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
TIFF
|
|
131
|
+
TIFF generator parameters.
|
|
132
132
|
*/
|
|
133
|
-
export declare class
|
|
133
|
+
export declare class TiffGeneratorParameters extends PartiallyConstructible {
|
|
134
134
|
/**
|
|
135
135
|
Compression.
|
|
136
136
|
@defaultValue "LZW";
|
|
@@ -165,10 +165,10 @@ export declare class TiffWriterParameters extends PartiallyConstructible {
|
|
|
165
165
|
@defaultValue null;
|
|
166
166
|
*/
|
|
167
167
|
binarizationFilter: ParametricFilter | null;
|
|
168
|
-
/** @param source {@displayType `DeepPartial<
|
|
169
|
-
constructor(source?: DeepPartial<
|
|
168
|
+
/** @param source {@displayType `DeepPartial<TiffGeneratorParameters>`} */
|
|
169
|
+
constructor(source?: DeepPartial<TiffGeneratorParameters>);
|
|
170
170
|
}
|
|
171
|
-
export declare namespace
|
|
171
|
+
export declare namespace TiffGeneratorParameters {
|
|
172
172
|
/**
|
|
173
173
|
Default compression.
|
|
174
174
|
@defaultValue "LZW";
|
|
@@ -10,7 +10,7 @@ import type { Page } from "../bridge/compiled/OcrTypes";
|
|
|
10
10
|
import { type BarcodeDocumentFormat } from "../bridge/compiled/BarcodeDocumentTypes";
|
|
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
|
-
import { type Binarization,
|
|
13
|
+
import { type Binarization, TiffGeneratorParameters } from "../bridge/compiled/TiffTypes";
|
|
14
14
|
import type { RawImage, Point, DeepPartial } from "../bridge/common";
|
|
15
15
|
import type { GenericDocument } from "../bridge/compiled/GenericDocument";
|
|
16
16
|
/** Represents an object of type T residing in the WASM's memory. */
|
|
@@ -52,7 +52,7 @@ export declare const commands: {
|
|
|
52
52
|
beginPdf: (options: DeepPartial<PdfConfiguration>) => Promise<ObjectId<"PdfGenerationContext">>;
|
|
53
53
|
addPageToPdf: (pdfOperation: ObjectId<"PdfGenerationContext">, image: Image) => Promise<void>;
|
|
54
54
|
completePdf: (pdfOperation: ObjectId<"PdfGenerationContext">) => Promise<Uint8Array>;
|
|
55
|
-
beginTiff: (options: DeepPartial<
|
|
55
|
+
beginTiff: (options: DeepPartial<TiffGeneratorParameters>) => Promise<ObjectId<"TiffGenerationContext">>;
|
|
56
56
|
addPageToTiff: (tiffOperation: ObjectId<"TiffGenerationContext">, image: Image, binarization: Binarization) => Promise<unknown>;
|
|
57
57
|
completeTiff: (tiffOperation: ObjectId<"TiffGenerationContext">) => Promise<Uint8Array>;
|
|
58
58
|
createMRZScanner: (configuration: DeepPartial<MrzScannerConfiguration>) => Promise<ObjectId<"MRZScannerContext">>;
|
package/@types/scanbot-sdk.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { VinScannerViewConfiguration } from "./model/configuration/vin-scanner-v
|
|
|
20
20
|
import { ITextPatternScannerHandle } from "./interfaces/i-text-pattern-scanner-handle";
|
|
21
21
|
import DocumentQualityAnalyzer from "./service/document-quality-analyzer";
|
|
22
22
|
import ScanbotSDKUI from "./ui2/scanbot-sdk-ui";
|
|
23
|
-
import { Image, DeepPartial, RawImage, ObjectId, Point, DocumentScannerParameters, DocumentDetectionResult, CroppedDetectionResult, BarcodeScannerConfiguration, BarcodeDocumentFormat, DocumentQualityAnalyzerConfiguration, ImageRotation, ParametricFilter, PdfConfiguration,
|
|
23
|
+
import { Image, DeepPartial, RawImage, ObjectId, Point, DocumentScannerParameters, DocumentDetectionResult, CroppedDetectionResult, BarcodeScannerConfiguration, BarcodeDocumentFormat, DocumentQualityAnalyzerConfiguration, ImageRotation, ParametricFilter, PdfConfiguration, TiffGeneratorParameters, DocumentDataExtractorConfiguration } from "./core-types";
|
|
24
24
|
import * as Config from "./core-types";
|
|
25
25
|
import { DocumentDataExtractor } from "./service/document-data-extractor";
|
|
26
26
|
import { DocumentDataExtractorViewConfiguration } from "./model/configuration/document-data-extractor-view-configuration";
|
|
@@ -79,8 +79,8 @@ export default class ScanbotSDK {
|
|
|
79
79
|
getLicenseInfo(): Promise<LicenseInfo>;
|
|
80
80
|
/** @param options {@displayType `DeepPartial<PdfConfiguration>`} {@link PdfConfiguration}*/
|
|
81
81
|
beginPdf(options: DeepPartial<PdfConfiguration>): Promise<PdfGenerator>;
|
|
82
|
-
/** @param options {@displayType `DeepPartial<
|
|
83
|
-
beginTiff(options?: DeepPartial<
|
|
82
|
+
/** @param options {@displayType `DeepPartial<TiffGeneratorParameters>`} {@link TiffGeneratorParameters} */
|
|
83
|
+
beginTiff(options?: DeepPartial<TiffGeneratorParameters>): Promise<TiffGenerator>;
|
|
84
84
|
/** @param options {@displayType `DeepPartial<DocumentDataExtractorConfiguration>`} {@link DocumentDataExtractorConfiguration}*/
|
|
85
85
|
createDocumentDataExtractor(options: DeepPartial<DocumentDataExtractorConfiguration>): Promise<DocumentDataExtractor>;
|
|
86
86
|
imageToJpeg(image: Image, consumeImage?: ConsumeType): Promise<Uint8Array>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Point } from "../../configuration/utils";
|
|
2
2
|
import ScanbotSDK from "../../../scanbot-sdk";
|
|
3
|
-
import { CroppedDetectionResult, DeepPartial, PdfConfiguration,
|
|
3
|
+
import { CroppedDetectionResult, DeepPartial, PdfConfiguration, TiffGeneratorParameters } from "../../../core-types";
|
|
4
4
|
import { SBPage } from "./sb-page";
|
|
5
5
|
import { PageImageSource } from "../../configuration/native/PageImageSource";
|
|
6
6
|
import { DocumentQuality } from "../../configuration/DocumentQualityAnalyzerTypes";
|
|
@@ -54,7 +54,7 @@ export declare class SBDocument {
|
|
|
54
54
|
convertToFinalVersion(): Promise<SBDocument>;
|
|
55
55
|
private insertRenderedBuffer;
|
|
56
56
|
createPdf(generatorOptions: DeepPartial<PdfConfiguration>): Promise<ArrayBuffer>;
|
|
57
|
-
createTiff(generatorOptions?: DeepPartial<
|
|
57
|
+
createTiff(generatorOptions?: DeepPartial<TiffGeneratorParameters>, pageOptions?: Omit<TiffPageOptions, "consumeImage">): Promise<ArrayBuffer>;
|
|
58
58
|
loadPdf(): Promise<ArrayBuffer>;
|
|
59
59
|
loadTiff(): Promise<ArrayBuffer>;
|
|
60
60
|
private loadBuffer;
|