@idscan/idvc2 2.4.17 → 2.5.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 +16 -1
- package/dist/css/idvc.css +1 -1
- package/dist/idvc.js +1684 -2
- package/dist/index.html +3 -4
- package/dist/js/defaultConfig.ts +0 -8
- package/dist/js/environment/langs.js +1 -1
- package/dist/js/environment/networkNames.json +5 -16
- package/dist/js/environment/stepsDescription.ts +2 -23
- package/dist/networks/156-9239-chunk.js +1 -0
- package/dist/networks/190-77ed-chunk.js +1 -0
- package/dist/networks/77-9e2f-chunk.js +1 -0
- package/dist/networks/Face-e375-chunk.js +1 -0
- package/dist/networks/MRZ-d498-chunk.js +1 -0
- package/dist/networks/PDF-78d2-chunk.js +1 -0
- package/dist/networks/ZXing-5410-chunk.js +1 -0
- package/dist/networks/angle03032023.onnx +0 -0
- package/dist/networks/classLocal03032023.onnx +0 -0
- package/dist/networks/faceDetection03032023.onnx +0 -0
- package/dist/networks/faceLandmark03032023.onnx +0 -0
- package/dist/networks/mrz03032023.onnx +0 -0
- package/dist/networks/ort-wasm-simd-threaded.wasm +0 -0
- package/dist/networks/ort-wasm-simd.wasm +0 -0
- package/dist/networks/ort-wasm-threaded.wasm +0 -0
- package/dist/networks/ort-wasm.wasm +0 -0
- package/package.json +24 -47
- package/dist/idvc.js.LICENSE.txt +0 -219
- package/dist/js/geometry.d.ts +0 -8
- package/dist/js/image.d.ts +0 -5
- package/dist/js/index.d.ts +0 -9
- package/dist/js/loop.d.ts +0 -21
- package/dist/js/mrz.d.ts +0 -105
- package/dist/networks/130-3968-chunk.js +0 -1
- package/dist/networks/215-cb9e-chunk.js +0 -1
- package/dist/networks/400-3816-chunk.js +0 -1
- package/dist/networks/716-d3a2-chunk.js +0 -1
- package/dist/networks/Face-4ffb-chunk.js +0 -1
- package/dist/networks/MRZ-d77b-chunk.js +0 -1
- package/dist/networks/PDF-89f3-chunk.js +0 -1
- package/dist/networks/ZXing-e76f-chunk.js +0 -1
- package/dist/networks/angles20210831.bin +0 -0
- package/dist/networks/angles20210831.json +0 -1
- package/dist/networks/asyncLoader-4593-chunk.js +0 -1
- package/dist/networks/cdnLoader-bdbc-chunk.js +0 -1
- package/dist/networks/classLocal20220112.bin +0 -0
- package/dist/networks/classLocal20220112.json +0 -1
- package/dist/networks/detectormodel20220817.bin +0 -0
- package/dist/networks/detectormodel20220817.json +0 -1
- package/dist/networks/facemesh20210831.bin +0 -0
- package/dist/networks/facemesh20210831.json +0 -1
- package/dist/networks/landmarkmodel20220817.bin +0 -0
- package/dist/networks/landmarkmodel20220817.json +0 -1
- package/dist/networks/mrz20220531.bin +0 -0
- package/dist/networks/mrz20220531.json +0 -1953
- package/dist/types/assets/images/barcode.d.ts +0 -2
- package/dist/types/assets/images/face.d.ts +0 -2
- package/dist/types/assets/images/front.d.ts +0 -2
- package/dist/types/assets/images/mrz.d.ts +0 -2
- package/dist/types/assets/images/pdf.d.ts +0 -2
- package/dist/types/bl.d.ts +0 -15
- package/dist/types/constatnts/camera.d.ts +0 -7
- package/dist/types/constatnts/imageProcessing.d.ts +0 -3
- package/dist/types/context.d.ts +0 -119
- package/dist/types/controllers/LoggerController.d.ts +0 -13
- package/dist/types/controllers/ModuleController.d.ts +0 -57
- package/dist/types/core/LicenseVerificationWasmCore.d.ts +0 -2
- package/dist/types/core/Logger.d.ts +0 -10
- package/dist/types/core/blurCore.d.ts +0 -2
- package/dist/types/core/libheif2.d.ts +0 -2
- package/dist/types/core/libmrzdecode.d.ts +0 -2
- package/dist/types/core/libpdf417.d.ts +0 -2
- package/dist/types/core/wasmpico.d.ts +0 -2
- package/dist/types/core/zxing_reader.d.ts +0 -2
- package/dist/types/custom_tfjs/custom_ops_for_converter.d.ts +0 -28
- package/dist/types/custom_tfjs/custom_tfjs.d.ts +0 -3
- package/dist/types/custom_tfjs/custom_tfjs_core.d.ts +0 -1
- package/dist/types/defaultConfig.d.ts +0 -56
- package/dist/types/environment/designations.d.ts +0 -5
- package/dist/types/environment/documentTypes.d.ts +0 -26
- package/dist/types/environment/langs.d.ts +0 -88
- package/dist/types/environment/loopResult.d.ts +0 -8
- package/dist/types/environment/realFaceModes.d.ts +0 -22
- package/dist/types/environment/stepsDescription.d.ts +0 -71
- package/dist/types/environment/triangulation.d.ts +0 -18
- package/dist/types/helpers/canvas.d.ts +0 -22
- package/dist/types/helpers/color.d.ts +0 -8
- package/dist/types/helpers/dataManipulation.d.ts +0 -27
- package/dist/types/helpers/detectLanguage.d.ts +0 -3
- package/dist/types/helpers/eventListeners.d.ts +0 -14
- package/dist/types/helpers/geometry.d.ts +0 -27
- package/dist/types/helpers/html.d.ts +0 -26
- package/dist/types/helpers/image.d.ts +0 -32
- package/dist/types/helpers/imageprocessing.d.ts +0 -11
- package/dist/types/helpers/licenceKeyError.d.ts +0 -6
- package/dist/types/helpers/logger.d.ts +0 -8
- package/dist/types/helpers/manualUpload.d.ts +0 -7
- package/dist/types/helpers/math.d.ts +0 -37
- package/dist/types/helpers/mobileChecker.d.ts +0 -15
- package/dist/types/helpers/numbers.d.ts +0 -2
- package/dist/types/helpers/step-background.d.ts +0 -2
- package/dist/types/helpers/strings.d.ts +0 -9
- package/dist/types/helpers/time.d.ts +0 -11
- package/dist/types/helpers/ts/common.d.ts +0 -3
- package/dist/types/helpers/updateSelecetTypes.d.ts +0 -2
- package/dist/types/helpers/validators.d.ts +0 -44
- package/dist/types/helpers/windowTensorFlow.d.ts +0 -7
- package/dist/types/idvc.d.ts +0 -19
- package/dist/types/initialize.d.ts +0 -11
- package/dist/types/loader/asyncLoader.d.ts +0 -2
- package/dist/types/loader/cdn/cdnFace.d.ts +0 -2
- package/dist/types/loader/cdn/cdnMRZ.d.ts +0 -4
- package/dist/types/loader/cdn/cdnPDF.d.ts +0 -4
- package/dist/types/loader/cdnLoader.d.ts +0 -2
- package/dist/types/loader/loadTf.d.ts +0 -2
- package/dist/types/loader/loaderFace.d.ts +0 -2
- package/dist/types/loader/loaderMRZ.d.ts +0 -4
- package/dist/types/loader/loaderMeshFace.d.ts +0 -3
- package/dist/types/loader/loaderPDF.d.ts +0 -3
- package/dist/types/loader/loaderSelect.d.ts +0 -2
- package/dist/types/loader/loaderUploadMode.d.ts +0 -1
- package/dist/types/loader/loaderZXing.d.ts +0 -2
- package/dist/types/loader/meshfaceConfig.d.ts +0 -3
- package/dist/types/loader/syncLoader.d.ts +0 -63
- package/dist/types/loop.d.ts +0 -13
- package/dist/types/loopControl.d.ts +0 -10
- package/dist/types/modules/BarcodeModule.d.ts +0 -28
- package/dist/types/modules/Config.d.ts +0 -131
- package/dist/types/modules/Face.d.ts +0 -61
- package/dist/types/modules/FrontProcessing.d.ts +0 -7
- package/dist/types/modules/MeshFace.d.ts +0 -52
- package/dist/types/modules/MetaData.d.ts +0 -10
- package/dist/types/modules/MrzModule.d.ts +0 -114
- package/dist/types/modules/PdfModule.d.ts +0 -79
- package/dist/types/modules/SimpleFace.d.ts +0 -18
- package/dist/types/modules/Step.d.ts +0 -65
- package/dist/types/modules/blur.d.ts +0 -4
- package/dist/types/modules/browwserCompatibilities.d.ts +0 -6
- package/dist/types/modules/camera.d.ts +0 -14
- package/dist/types/modules/cameraManager.d.ts +0 -9
- package/dist/types/modules/fileType.d.ts +0 -1
- package/dist/types/modules/frameQuality.d.ts +0 -10
- package/dist/types/modules/heic.d.ts +0 -11
- package/dist/types/modules/image.d.ts +0 -13
- package/dist/types/modules/initErrorHandler.d.ts +0 -10
- package/dist/types/modules/licenseKeyChecker.d.ts +0 -1
- package/dist/types/modules/manualUpload.d.ts +0 -7
- package/dist/types/modules/manualUploadProcessing.d.ts +0 -30
- package/dist/types/modules/mediaDevices.d.ts +0 -2
- package/dist/types/modules/moduleInitializer.d.ts +0 -8
- package/dist/types/modules/step-functions/face.d.ts +0 -2
- package/dist/types/modules/step-result-processing/barcode.d.ts +0 -2
- package/dist/types/modules/step-result-processing/common.d.ts +0 -1
- package/dist/types/modules/step-result-processing/mrz.d.ts +0 -2
- package/dist/types/modules/step-result-processing/pdf.d.ts +0 -2
- package/dist/types/modules/step-result-processing/simpleFace.d.ts +0 -2
- package/dist/types/modules/step-result-processing/volumeFace.d.ts +0 -3
- package/dist/types/modules/stepFunctions.d.ts +0 -5
- package/dist/types/modules/stepResultProcessing.d.ts +0 -9
- package/dist/types/modules/ui/Flashlight.d.ts +0 -17
- package/dist/types/modules/ui/MaskCapture.d.ts +0 -52
- package/dist/types/modules/ui/MessageBox.d.ts +0 -19
- package/dist/types/modules/ui/Modal.d.ts +0 -20
- package/dist/types/modules/ui/SelectDocumentType.d.ts +0 -45
- package/dist/types/modules/ui/forceCaptruringBtn.d.ts +0 -12
- package/dist/types/modules/ui/hints.d.ts +0 -17
- package/dist/types/modules/ui/limitations.d.ts +0 -2
- package/dist/types/modules/ui/manualSwitchBtn.d.ts +0 -30
- package/dist/types/modules/ui/spinner.d.ts +0 -13
- package/dist/types/modules/ui/swiper.d.ts +0 -3
- package/dist/types/modules/uploader.d.ts +0 -59
- package/dist/types/modules/validation/ValidateBool.d.ts +0 -5
- package/dist/types/modules/validation/ValidateDocumentTypes.d.ts +0 -20
- package/dist/types/modules/validation/ValidateElement.d.ts +0 -5
- package/dist/types/modules/validation/ValidateFunction.d.ts +0 -5
- package/dist/types/modules/validation/ValidateNumber.d.ts +0 -5
- package/dist/types/modules/validation/ValidateString.d.ts +0 -5
- package/dist/types/modules/validation/ValidateStringInArray.d.ts +0 -12
- package/dist/types/modules/validation/showValidationError.d.ts +0 -2
- package/dist/types/modules/validation/validatorFactory.d.ts +0 -10
- package/dist/types/modules/validator.d.ts +0 -10
- package/dist/types/neural models/07072019/exits.d.ts +0 -2
- package/dist/types/neural models/08072019/exits.d.ts +0 -2
- package/dist/types/neural models/09072019/exits.d.ts +0 -2
- package/dist/types/neural models/10072019/exits.d.ts +0 -2
- package/dist/types/neural models/10072019/labels.d.ts +0 -541
- package/dist/types/neural models/angles/exits.d.ts +0 -2
- package/dist/types/neural models/classLocal/exits.d.ts +0 -2
- package/dist/types/neural models/classLocalModel.d.ts +0 -9
- package/dist/types/neural models/keras/exits.d.ts +0 -2
- package/dist/types/neural models/model.d.ts +0 -18
- package/dist/types/neural models/mrz/exits.d.ts +0 -2
- package/dist/types/neural models/mrzModel.d.ts +0 -10
- package/dist/types/neural models/neuralModel.d.ts +0 -20
- package/dist/types/neural models/stick/exits.d.ts +0 -2
- package/dist/types/stepProcessing.d.ts +0 -27
- package/dist/types/types/enums/realFace.d.ts +0 -5
- package/dist/types/types/modules/camera.enum.d.ts +0 -18
- package/dist/types/ui.d.ts +0 -117
- package/dist/types/util.d.ts +0 -34
- package/dist/types/workers/blurWorker.d.ts +0 -1
- package/dist/types/workers/bubbleWorker.d.ts +0 -1
- package/dist/types/workers/loadNetworksWorker.d.ts +0 -0
package/dist/types/ui.d.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import ForceBtn from './modules/ui/forceCaptruringBtn';
|
|
2
|
-
import { ISize } from './helpers/image';
|
|
3
|
-
import SelectDocumentType from './modules/ui/SelectDocumentType';
|
|
4
|
-
import MessageBox from './modules/ui/MessageBox';
|
|
5
|
-
import MaskCapture from './modules/ui/MaskCapture';
|
|
6
|
-
import Flashlight from './modules/ui/Flashlight';
|
|
7
|
-
import { IManualSwitchBtn } from './modules/ui/manualSwitchBtn';
|
|
8
|
-
export declare const getCoeff: () => number;
|
|
9
|
-
declare class Ui {
|
|
10
|
-
canvasNames: Set<string>;
|
|
11
|
-
canvasCtxNames: Set<string>;
|
|
12
|
-
dialogTypeBackground: HTMLDivElement;
|
|
13
|
-
stepImg: HTMLDivElement;
|
|
14
|
-
videoError: HTMLDivElement;
|
|
15
|
-
btnsWrap: HTMLDivElement;
|
|
16
|
-
uploaderWrap: HTMLDivElement;
|
|
17
|
-
videoPos: HTMLDivElement;
|
|
18
|
-
fakeContour: HTMLDivElement;
|
|
19
|
-
stepsWrapper: HTMLDivElement;
|
|
20
|
-
guidlinesBtn: HTMLDivElement;
|
|
21
|
-
videoWrap: HTMLDivElement;
|
|
22
|
-
resetAllStepsBtn: HTMLDivElement;
|
|
23
|
-
version: HTMLDivElement;
|
|
24
|
-
selectDocumentTypeText: HTMLDivElement;
|
|
25
|
-
resizedCanvas: HTMLCanvasElement;
|
|
26
|
-
mrzCanvas: HTMLCanvasElement;
|
|
27
|
-
videoCanvas: HTMLCanvasElement;
|
|
28
|
-
borderCanvas: HTMLCanvasElement;
|
|
29
|
-
mrzCtx: CanvasRenderingContext2D;
|
|
30
|
-
videoCtx: CanvasRenderingContext2D;
|
|
31
|
-
resizedCtx: CanvasRenderingContext2D;
|
|
32
|
-
borderCtx: CanvasRenderingContext2D;
|
|
33
|
-
retakeBtn: HTMLButtonElement;
|
|
34
|
-
continueBtn: HTMLButtonElement;
|
|
35
|
-
submitBtn: HTMLButtonElement;
|
|
36
|
-
changeBtn: HTMLButtonElement;
|
|
37
|
-
correctBtn: HTMLButtonElement;
|
|
38
|
-
cancelBtn: HTMLButtonElement;
|
|
39
|
-
doneBtn: HTMLButtonElement;
|
|
40
|
-
closeBtn: HTMLButtonElement;
|
|
41
|
-
pressToUpdateText: HTMLElement;
|
|
42
|
-
pressToUpdateTextSuccess: HTMLElement;
|
|
43
|
-
documentType: HTMLParagraphElement;
|
|
44
|
-
videoErrorText: HTMLElement;
|
|
45
|
-
mainContainer: HTMLElement;
|
|
46
|
-
Mask: MaskCapture;
|
|
47
|
-
selectDocumentType: SelectDocumentType;
|
|
48
|
-
forceBtn: ForceBtn;
|
|
49
|
-
msBtn: IManualSwitchBtn;
|
|
50
|
-
messageBox: MessageBox;
|
|
51
|
-
flashlight: Flashlight;
|
|
52
|
-
video: HTMLVideoElement;
|
|
53
|
-
constructor();
|
|
54
|
-
initTypeSelect(): void;
|
|
55
|
-
resizeMainContainer(): void;
|
|
56
|
-
updateHoldText(data?: number, isCorrectDirection?: boolean): void;
|
|
57
|
-
updateStepImg(): void;
|
|
58
|
-
showVideoError(errorCode: string): void;
|
|
59
|
-
hideVideoError(): void;
|
|
60
|
-
updateVideoWrap(): void;
|
|
61
|
-
setVideoWrapEnabled(val?: boolean): void;
|
|
62
|
-
updateContinueBtn(): void;
|
|
63
|
-
updateBtnsWrap(): void;
|
|
64
|
-
saveCanvas(): void;
|
|
65
|
-
restoreCanvas(): void;
|
|
66
|
-
updateSubmitBtn(): void;
|
|
67
|
-
updateResetAllBtn(): void;
|
|
68
|
-
updateRetakeButton(): void;
|
|
69
|
-
updateKeyError(): void;
|
|
70
|
-
initGeneralText(): void;
|
|
71
|
-
toggleUploaderWrap(): void;
|
|
72
|
-
setUploaderWrapEnabled(val?: boolean): void;
|
|
73
|
-
toggleVideoPos(): void;
|
|
74
|
-
toggleBorderCanvas(): void;
|
|
75
|
-
resizeBorders(): void;
|
|
76
|
-
clearBorderCtx(): void;
|
|
77
|
-
recreateCanvas(canvas: HTMLCanvasElement): {
|
|
78
|
-
canvas: HTMLCanvasElement;
|
|
79
|
-
ctx: CanvasRenderingContext2D;
|
|
80
|
-
};
|
|
81
|
-
setVideoCanvasSizes({ width, height }: ISize): void;
|
|
82
|
-
setDefaultVideoCanvasSizes(): void;
|
|
83
|
-
getBaseSizes(coefficient?: number): {
|
|
84
|
-
baseHeight: number;
|
|
85
|
-
baseWidth: number;
|
|
86
|
-
};
|
|
87
|
-
setOffsets(baseWidth: number, baseHeight: number): void;
|
|
88
|
-
setCropSizes(baseWidth: number, baseHeight: number): void;
|
|
89
|
-
getResizedBaseSizes(coefficient: number): {
|
|
90
|
-
resizedBaseWidth: number;
|
|
91
|
-
resizedBasedHeight: number;
|
|
92
|
-
};
|
|
93
|
-
setResizedCrops(resizedBaseWidth: number, resizedBasedHeight: number): void;
|
|
94
|
-
setResizedOffsets(): void;
|
|
95
|
-
getCropSizes(coefficient: number): {
|
|
96
|
-
width: number;
|
|
97
|
-
height: number;
|
|
98
|
-
};
|
|
99
|
-
setCropFace(faceCoefficient: number): void;
|
|
100
|
-
setFaceOffsets({ width }: ISize): void;
|
|
101
|
-
setResizedCanvasSizes({ width, height }: ISize): void;
|
|
102
|
-
setResizedCanvas(): void;
|
|
103
|
-
setBorderCanvas(width: number, height: number): void;
|
|
104
|
-
getFakeContourWidth(width: number): number;
|
|
105
|
-
setFakeContourStyles(width: number): void;
|
|
106
|
-
rectreateDistinctCanvas(canvasName: string): void;
|
|
107
|
-
drawVideo(): void;
|
|
108
|
-
drawResized(): void;
|
|
109
|
-
recreateWorkingCanvas(): void;
|
|
110
|
-
drawResizedVideo(): void;
|
|
111
|
-
setMirroring(): void;
|
|
112
|
-
}
|
|
113
|
-
declare const ui: {
|
|
114
|
-
ui: Ui | null;
|
|
115
|
-
};
|
|
116
|
-
export declare const initUi: () => void;
|
|
117
|
-
export default ui;
|
package/dist/types/util.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Base64Image } from './helpers/image';
|
|
2
|
-
import { IStepCallback } from './modules/Step';
|
|
3
|
-
import { DocumentTypeIndex } from './environment/documentTypes';
|
|
4
|
-
import { Context } from './context';
|
|
5
|
-
export interface IDataForSubmit {
|
|
6
|
-
metaData?: string;
|
|
7
|
-
payload?: Record<string, any>;
|
|
8
|
-
steps: IStepCallback[];
|
|
9
|
-
documentType: DocumentTypeIndex | 0;
|
|
10
|
-
}
|
|
11
|
-
interface IError {
|
|
12
|
-
code?: string;
|
|
13
|
-
message?: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const checkIsTouchScreen: () => boolean;
|
|
17
|
-
declare const _default: {
|
|
18
|
-
checkIsTouchScreen: () => boolean;
|
|
19
|
-
prepareCameraErr(err: IError): IError;
|
|
20
|
-
formDataForSubmit(steps: IStepCallback[], c: Context, payload?: {}): IDataForSubmit;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param img
|
|
24
|
-
* @returns {ImageData}
|
|
25
|
-
*/
|
|
26
|
-
imageToImageData(img: HTMLImageElement): ImageData;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @param base64
|
|
30
|
-
* @returns {Promise<ImageData>}
|
|
31
|
-
*/
|
|
32
|
-
base64ToImageData(base64: Base64Image): Promise<ImageData>;
|
|
33
|
-
};
|
|
34
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|