barkoder-wasm-ocr 1.4.2 → 1.7.0
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/barkoder-umd.d.ts +19 -2
- package/barkoder-umd.js +218 -40
- package/barkoder.wasm +0 -0
- package/package.json +1 -1
package/barkoder-umd.d.ts
CHANGED
|
@@ -20,6 +20,14 @@ export declare interface BKResult {
|
|
|
20
20
|
capturedBarcode?: ImageData,
|
|
21
21
|
formattedJSON?: string;
|
|
22
22
|
formattedText?: string;
|
|
23
|
+
extra?: {
|
|
24
|
+
location_document?: string;
|
|
25
|
+
location_signature?: string;
|
|
26
|
+
location_picture?: string;
|
|
27
|
+
raw: string;
|
|
28
|
+
non-formatted: string;
|
|
29
|
+
JSON: string;
|
|
30
|
+
};
|
|
23
31
|
|
|
24
32
|
results?: {
|
|
25
33
|
barcodeTypeName: string,
|
|
@@ -36,6 +44,14 @@ export declare interface BKResult {
|
|
|
36
44
|
capturedBarcode?: ImageData,
|
|
37
45
|
formattedJSON?: string;
|
|
38
46
|
formattedText?: string;
|
|
47
|
+
extra?: {
|
|
48
|
+
location_document?: string;
|
|
49
|
+
location_signature?: string;
|
|
50
|
+
location_picture?: string;
|
|
51
|
+
raw: string;
|
|
52
|
+
"non-formatted": string;
|
|
53
|
+
JSON: string;
|
|
54
|
+
};
|
|
39
55
|
}[];
|
|
40
56
|
}
|
|
41
57
|
|
|
@@ -140,7 +156,8 @@ export declare enum Formatting {
|
|
|
140
156
|
Automatic = 1,
|
|
141
157
|
GS1 = 2,
|
|
142
158
|
AAMVA = 3,
|
|
143
|
-
SADL = 4
|
|
159
|
+
SADL = 4,
|
|
160
|
+
BCBP = 5
|
|
144
161
|
}
|
|
145
162
|
|
|
146
163
|
export declare enum EncodingCharacterSet {
|
|
@@ -308,4 +325,4 @@ export declare interface Barkoder extends EventTarget {
|
|
|
308
325
|
getVersion: () => { barkoderWebVersion: string, barkoderVersion: string, barkoderFullVersion: string, barkoderOcrVersion: boolean };
|
|
309
326
|
}
|
|
310
327
|
|
|
311
|
-
export declare function initialize(key: string): Promise<Barkoder>;
|
|
328
|
+
export declare function initialize(key: string, options?: { maxThreads?: number, wasmPath?: string, obtainVersionedBinary?: boolean, useMainThreadOnly?: boolean }): Promise<Barkoder>;
|