@idscan/idvc2 3.9.5 → 3.10.1
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/README.md +7 -1
- package/dist/idvc.js +1 -1
- package/dist/idvc.js.gzip +0 -0
- package/dist/index.html +3 -72
- package/dist/js/defaultConfig.ts +1 -30
- package/dist/js/environment/documentTypes.ts +4 -20
- package/dist/js/environment/langs.js +1 -1
- package/dist/js/environment/networkNames.json +0 -1
- package/dist/js/environment/previewAnimation.ts +1 -1
- package/dist/js/environment/stepsDescription.ts +2 -12
- package/dist/langs.js.gzip +0 -0
- package/dist/networks/Face-chunk.js +1 -1
- package/dist/networks/GeneralTypeDetectionYolo-chunk.js +1 -1
- package/dist/networks/MRZ-chunk.js +1 -1
- package/dist/networks/blurWorker.js.gzip +0 -0
- package/dist/types/controllers/ModuleController.d.ts +0 -2
- package/dist/types/defaultConfig.d.ts +2 -4
- package/dist/types/environment/documentTypes.d.ts +4 -6
- package/dist/types/environment/langs.d.ts +1 -6
- package/dist/types/environment/stepsDescription.d.ts +1 -1
- package/dist/types/helpers/base64.d.ts +0 -1
- package/dist/types/helpers/manualUpload.d.ts +0 -1
- package/dist/types/idvc.d.ts +1 -0
- package/dist/types/initialize.d.ts +0 -1
- package/dist/types/integrations/prepareRequestDataForDiveApi.d.ts +0 -1
- package/dist/types/loader/loaderMeshFace.d.ts +1 -1
- package/dist/types/loop.d.ts +1 -1
- package/dist/types/modules/Config.d.ts +0 -20
- package/dist/types/modules/MetaData.d.ts +4 -3
- package/dist/types/modules/Step.d.ts +3 -6
- package/dist/types/modules/camera/camera.d.ts +2 -0
- package/dist/types/modules/image.d.ts +0 -2
- package/dist/types/modules/manualUploadProcessing.d.ts +0 -6
- package/dist/types/modules/moduleInitializer.d.ts +0 -1
- package/dist/types/modules/stepFunctions.d.ts +1 -1
- package/dist/types/modules/stepResultProcessing.d.ts +0 -1
- package/dist/types/modules/ui/DesktopNotification/DesktopNotification.d.ts +1 -1
- package/dist/types/modules/ui/VideoWrapper/CanvasWrapper.d.ts +1 -1
- package/dist/types/modules/ui/VideoWrapper/VideoWrapper.d.ts +1 -1
- package/dist/types/types/context.d.ts +0 -1
- package/package.json +1 -1
- package/dist/js/environment/realFaceModes.ts +0 -24
- package/dist/networks/ZXing-chunk.js +0 -1
- package/dist/networks/angle03032023.onnx.gzip +0 -0
- package/dist/types/environment/realFaceModes.d.ts +0 -22
- package/dist/types/helpers/dataManipulation.d.ts +0 -27
- package/dist/types/loader/loadAnglesModel.d.ts +0 -3
- package/dist/types/loader/loadFrontModels.d.ts +0 -3
- package/dist/types/loader/loaderZXing.d.ts +0 -2
- package/dist/types/modules/BarcodeModule.d.ts +0 -28
- package/dist/types/modules/step-result-processing/barcode.d.ts +0 -2
- package/dist/types/neural models/anglesModel.d.ts +0 -15
|
Binary file
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type RealFaceMode = keyof typeof realFaceModes;
|
|
2
|
-
declare const realFaceModes: {
|
|
3
|
-
/**
|
|
4
|
-
* enable "realFaceMode" only for iphone.
|
|
5
|
-
*/
|
|
6
|
-
readonly auto: {
|
|
7
|
-
readonly description: "enable \"realFaceMode\" only for iphone.";
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* disable this option.
|
|
11
|
-
*/
|
|
12
|
-
readonly none: {
|
|
13
|
-
readonly description: "disable this option.";
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* enable "realFaceMode" for all devices.
|
|
17
|
-
*/
|
|
18
|
-
readonly all: {
|
|
19
|
-
readonly description: "enable \"realFaceMode\" for all devices.";
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default realFaceModes;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
interface Entity {
|
|
2
|
-
value: string;
|
|
3
|
-
name: string;
|
|
4
|
-
status: 'valid' | 'invalid';
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* convert mrz parsed data to html represent
|
|
8
|
-
* @param {Array} data - mrz parsed data
|
|
9
|
-
*/
|
|
10
|
-
export declare const mrzToHtml: (data: Entity[]) => HTMLElement;
|
|
11
|
-
/**
|
|
12
|
-
* convert pdf parsed data to html represent
|
|
13
|
-
* @param {Array} data - pdf parsed data
|
|
14
|
-
*/
|
|
15
|
-
export declare const pdfToHtml: (data: Entity[]) => HTMLElement;
|
|
16
|
-
/**
|
|
17
|
-
* convert barcode parsed data to html represent
|
|
18
|
-
* @param {String} data - barcode parsed data
|
|
19
|
-
*/
|
|
20
|
-
export declare const barcodeToHtml: (data: string) => HTMLElement;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param {*} data - data to represent in HTML
|
|
24
|
-
* @param {String} type - type of parsed data maybe mrz|pdf|barcode
|
|
25
|
-
*/
|
|
26
|
-
declare const jsonToHtml: (data: string | Entity[], type: 'mrz' | 'pdf' | 'barcode') => false | HTMLElement;
|
|
27
|
-
export default jsonToHtml;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare class BarcodeModule {
|
|
2
|
-
private module;
|
|
3
|
-
private isAllocate;
|
|
4
|
-
private buffer;
|
|
5
|
-
private readonly res;
|
|
6
|
-
private stringLib;
|
|
7
|
-
constructor(core: any);
|
|
8
|
-
init(stringLib: any): void;
|
|
9
|
-
allocate(buffer: any): void;
|
|
10
|
-
free(): void;
|
|
11
|
-
result(status?: boolean, image?: any, touch?: boolean, text?: string): {
|
|
12
|
-
status: boolean;
|
|
13
|
-
image: any;
|
|
14
|
-
touch: boolean;
|
|
15
|
-
text: string;
|
|
16
|
-
cancel: boolean;
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
process(data: any, origData: any): {
|
|
20
|
-
status: boolean;
|
|
21
|
-
image: any;
|
|
22
|
-
touch: boolean;
|
|
23
|
-
text: string;
|
|
24
|
-
cancel: boolean;
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export default BarcodeModule;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="onnxruntime-web" />
|
|
2
|
-
import { Provider } from './Provider';
|
|
3
|
-
import NeuralModel from './neuralModel';
|
|
4
|
-
import { RGBColor32 } from '../helpers/image';
|
|
5
|
-
interface Prediction {
|
|
6
|
-
label: string;
|
|
7
|
-
score: number;
|
|
8
|
-
}
|
|
9
|
-
export default class AnglesModel extends NeuralModel {
|
|
10
|
-
constructor(url?: string, provider?: Provider, wasmPaths?: string);
|
|
11
|
-
predict(rgb: RGBColor32): Promise<import("onnxruntime-web").InferenceSession.OnnxValueMapType>;
|
|
12
|
-
predictFromImage(input: HTMLCanvasElement | HTMLImageElement, dstCanvas?: HTMLCanvasElement): Promise<Prediction[]>;
|
|
13
|
-
interpret(data: Float32Array): Prediction[];
|
|
14
|
-
}
|
|
15
|
-
export {};
|