@scandit/web-datacapture-id 7.3.0 → 7.4.0-beta.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/build/js/IdCapture.d.ts +3 -4
- package/build/js/IdCaptureSettings.d.ts +1 -0
- package/build/js/SerializedTypes.d.ts +5 -1
- package/build/js/index.d.ts +0 -8
- package/build/js/index.js +10 -3
- package/build/js/scandit-web-datacapture-id-private.d.ts +0 -1
- package/build/js/worker/IdCaptureMode.d.ts +6 -1
- package/build/js/worker/dataCaptureEngine.d.ts +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +7 -7
- package/package.json +6 -6
- package/sdc-lib/idcapture/7.4.0-beta.2/resources/centaurus-worker.js +6 -0
- package/sdc-lib/idcapture/7.4.0-beta.2/resources/lightweight/advanced/Centaurus.data +0 -0
- package/sdc-lib/idcapture/7.4.0-beta.2/resources/lightweight/advanced/Centaurus.js +1 -0
- package/sdc-lib/idcapture/{7.3.0 → 7.4.0-beta.2/resources}/lightweight/advanced/Centaurus.wasm +0 -0
- package/sdc-lib/idcapture/7.4.0-beta.2/resources/lightweight/advanced-threads/Centaurus.data +0 -0
- package/sdc-lib/idcapture/7.4.0-beta.2/resources/lightweight/advanced-threads/Centaurus.js +1 -0
- package/sdc-lib/idcapture/{7.3.0 → 7.4.0-beta.2/resources}/lightweight/advanced-threads/Centaurus.wasm +0 -0
- package/sdc-lib/idcapture/7.4.0-beta.2/resources/lightweight/advanced-threads/Centaurus.worker.js +1 -0
- package/sdc-lib/idcapture/7.4.0-beta.2/resources/lightweight/basic/Centaurus.data +0 -0
- package/sdc-lib/idcapture/7.4.0-beta.2/resources/lightweight/basic/Centaurus.js +1 -0
- package/sdc-lib/idcapture/{7.3.0 → 7.4.0-beta.2/resources}/lightweight/basic/Centaurus.wasm +0 -0
- package/sdc-lib/resources/models/ocr_price_label_default.ff089db78a2c.model +0 -0
- package/sdc-lib/resources/models/price_label_localization.ae780fb79426.model +0 -0
- package/sdc-lib/resources/models/price_localization_in_whole_label.ae70141639d3.model +0 -0
- package/sdc-lib/scandit-datacapture-sdk-id-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-id-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-id-simd-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-id-simd-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-id-simd.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-id-simd.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-id.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-id.wasm +0 -0
- package/sdc-lib/idcapture/7.3.0/Centaurus.worker.min.js +0 -1
- package/sdc-lib/idcapture/7.3.0/lightweight/advanced/Centaurus.data +0 -0
- package/sdc-lib/idcapture/7.3.0/lightweight/advanced/Centaurus.js +0 -1
- package/sdc-lib/idcapture/7.3.0/lightweight/advanced-threads/Centaurus.data +0 -0
- package/sdc-lib/idcapture/7.3.0/lightweight/advanced-threads/Centaurus.js +0 -1
- package/sdc-lib/idcapture/7.3.0/lightweight/advanced-threads/Centaurus.worker.js +0 -1
- package/sdc-lib/idcapture/7.3.0/lightweight/basic/Centaurus.data +0 -0
- package/sdc-lib/idcapture/7.3.0/lightweight/basic/Centaurus.js +0 -1
package/build/js/IdCapture.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { IdCaptureFeedback } from "./IdCaptureFeedback";
|
|
|
5
5
|
import type { IdCaptureSettings, IdCaptureSettingsJSON } from "./IdCaptureSettings";
|
|
6
6
|
import type { Listener } from "./Listener";
|
|
7
7
|
import { CapturedId } from "./captured-id/CapturedId";
|
|
8
|
-
import type { CentaurusLoader } from "scandit-web-datacapture-id-private";
|
|
9
8
|
type IdCaptureJSON = DataCaptureModeJSON<IdCaptureSettingsJSON & {
|
|
10
9
|
licensee: string;
|
|
11
10
|
licenseKey: string;
|
|
@@ -16,7 +15,6 @@ export declare const STATE: {
|
|
|
16
15
|
readonly ProcessingQueue: "ProcessingQueue";
|
|
17
16
|
};
|
|
18
17
|
export declare class IdCapture implements DataCaptureMode, Serializable<IdCaptureJSON> {
|
|
19
|
-
private static _centaurusLoader?;
|
|
20
18
|
private readonly type;
|
|
21
19
|
private readonly _synchronousFrameFlow;
|
|
22
20
|
private state;
|
|
@@ -26,7 +24,7 @@ export declare class IdCapture implements DataCaptureMode, Serializable<IdCaptur
|
|
|
26
24
|
private listeners;
|
|
27
25
|
private overlayListeners;
|
|
28
26
|
private contextListener;
|
|
29
|
-
private _centaurusConnector
|
|
27
|
+
private _centaurusConnector;
|
|
30
28
|
private _endOfCycleTasks;
|
|
31
29
|
private _feedback;
|
|
32
30
|
private _safariOOMDetector?;
|
|
@@ -38,7 +36,6 @@ export declare class IdCapture implements DataCaptureMode, Serializable<IdCaptur
|
|
|
38
36
|
get context(): DataCaptureContext | null;
|
|
39
37
|
get feedback(): IdCaptureFeedback;
|
|
40
38
|
private get privateContext();
|
|
41
|
-
static setCentaurusLoader(loader: CentaurusLoader): void;
|
|
42
39
|
static forContext(context: DataCaptureContext | null, settings: IdCaptureSettings): Promise<IdCapture>;
|
|
43
40
|
setFeedback(feedback: IdCaptureFeedback): Promise<void>;
|
|
44
41
|
addListener(listener: Listener): void;
|
|
@@ -49,6 +46,7 @@ export declare class IdCapture implements DataCaptureMode, Serializable<IdCaptur
|
|
|
49
46
|
applySettings(settings: IdCaptureSettings): Promise<void>;
|
|
50
47
|
parse(code: string): Promise<CapturedId | null>;
|
|
51
48
|
toJSONObject(): IdCaptureJSON;
|
|
49
|
+
private onSDCResetDone;
|
|
52
50
|
/**
|
|
53
51
|
* Called when the context has changed source.
|
|
54
52
|
* It is possible that we are still processing a frame when a source change occurs, which could prevent the
|
|
@@ -89,6 +87,7 @@ export declare class IdCapture implements DataCaptureMode, Serializable<IdCaptur
|
|
|
89
87
|
private didChange;
|
|
90
88
|
private onWorkerMessage;
|
|
91
89
|
private processFrameWithCentaurus;
|
|
90
|
+
private reportToBackend;
|
|
92
91
|
private uint8ArrayImageToBase64;
|
|
93
92
|
private convertRawImagesToBase64;
|
|
94
93
|
private triggerListenersForResult;
|
|
@@ -43,6 +43,7 @@ export declare class IdCaptureSettings implements Serializable<IdCaptureSettings
|
|
|
43
43
|
getProperty(name: string): any;
|
|
44
44
|
setShouldPassImageTypeToResult(type: IdImageType, shouldPass: boolean): void;
|
|
45
45
|
getShouldPassImageTypeToResult(type: IdImageType): boolean;
|
|
46
|
+
clone(): IdCaptureSettings;
|
|
46
47
|
toJSONObject(): IdCaptureSettingsJSON;
|
|
47
48
|
private static fromJSON;
|
|
48
49
|
private static createDocumentFromJSON;
|
|
@@ -103,7 +103,9 @@ export interface CapturedIdJSONWithRawImageInfo extends CapturedIdJSON {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
export type CapturedIdCommonFieldsJSON = Pick<CapturedIdJSON, "address" | "age" | "dateOfBirth" | "dateOfExpiry" | "dateOfIssue" | "documentAdditionalNumber" | "documentNumber" | "documentType" | "documentSubtype" | "firstName" | "fullName" | "isExpired" | "issuingCountry" | "issuingCountryIso" | "lastName" | "nationality" | "secondaryLastName" | "sex">;
|
|
106
|
-
export type VIZResultExtendedJSON = Omit<CapturedIdCommonFieldsJSON & VIZResultJSON, "age" | "isExpired"
|
|
106
|
+
export type VIZResultExtendedJSON = Omit<CapturedIdCommonFieldsJSON & VIZResultJSON, "age" | "isExpired"> & {
|
|
107
|
+
location?: QuadrilateralJSON | null;
|
|
108
|
+
};
|
|
107
109
|
interface FieldLocations {
|
|
108
110
|
frontFieldLocations: Partial<Record<string, QuadrilateralJSON>>;
|
|
109
111
|
}
|
|
@@ -278,6 +280,8 @@ export interface DataConsistencyResultJSON {
|
|
|
278
280
|
failedChecks: DataConsistencyCheck[];
|
|
279
281
|
skippedChecks: DataConsistencyCheck[];
|
|
280
282
|
passedChecks: DataConsistencyCheck[];
|
|
283
|
+
frontFieldLocations: Record<string, QuadrilateralJSON> | null;
|
|
284
|
+
frontImage: string | null;
|
|
281
285
|
}
|
|
282
286
|
export interface VerificationResultJSON {
|
|
283
287
|
dataConsistencyResult: DataConsistencyResultJSON | null;
|
package/build/js/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./scandit-web-datacapture-id-private";
|
|
2
2
|
import type { ModuleLoader } from "@scandit/web-datacapture-core";
|
|
3
3
|
import { IdCaptureWorkerManager } from "./worker/IdCaptureWorkerManager";
|
|
4
|
-
import { CentaurusLoader } from "scandit-web-datacapture-id-private";
|
|
5
4
|
export * from "./Enums";
|
|
6
5
|
export * from "./IdCapture";
|
|
7
6
|
export * from "./Listener";
|
|
@@ -42,13 +41,6 @@ export type { Translations } from "./translations";
|
|
|
42
41
|
export interface IdCaptureLoaderOptions {
|
|
43
42
|
enableVIZDocuments?: boolean;
|
|
44
43
|
}
|
|
45
|
-
export declare let centaurusLoader: CentaurusLoader | undefined;
|
|
46
44
|
export declare let mainDataCaptureLoader: IdCaptureWorkerManager;
|
|
47
45
|
export declare function idCaptureLoader(options?: IdCaptureLoaderOptions): ModuleLoader;
|
|
48
46
|
export declare function setMainDataCaptureLoader(newLoader: IdCaptureWorkerManager): void;
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*
|
|
52
|
-
* Used by tests.
|
|
53
|
-
*/
|
|
54
|
-
export declare function setCentaurusLoader(newLoader: CentaurusLoader): void;
|