@idscan/idvc2 2.2.2 → 2.3.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.
Files changed (42) hide show
  1. package/LICENSE.txt +202 -202
  2. package/README.md +160 -156
  3. package/dist/idvc.js +1 -1
  4. package/dist/index.html +95 -95
  5. package/dist/js/defaultConfig.ts +261 -254
  6. package/dist/js/environment/capturingModes.json +4 -4
  7. package/dist/js/environment/cssVariables.json +191 -191
  8. package/dist/js/environment/designations.ts +19 -19
  9. package/dist/js/environment/documentTypes.ts +145 -145
  10. package/dist/js/environment/langs.ts +293 -293
  11. package/dist/js/environment/loadModes.json +11 -11
  12. package/dist/js/environment/loopResult.ts +14 -14
  13. package/dist/js/environment/networkNames.json +20 -20
  14. package/dist/js/environment/realFaceModes.ts +15 -15
  15. package/dist/js/environment/stepsDescription.ts +85 -85
  16. package/dist/js/environment/triangulation.ts +188 -188
  17. package/dist/js/geometry.d.ts +8 -8
  18. package/dist/js/idvc.d.ts +3 -3
  19. package/dist/js/image.d.ts +4 -4
  20. package/dist/js/index.d.ts +12 -12
  21. package/dist/js/loop.d.ts +21 -21
  22. package/dist/js/mrz.d.ts +105 -105
  23. package/dist/networks/{130.0b466182.js → 130-bd8e-chunk.js} +0 -0
  24. package/dist/networks/215-741c-chunk.js +1 -0
  25. package/dist/networks/{400.8e839581.js → 400-bc2f-chunk.js} +0 -0
  26. package/dist/networks/716-6f4b-chunk.js +1 -0
  27. package/dist/networks/{Face.728ec3c6.js → Face-e893-chunk.js} +0 -0
  28. package/dist/networks/{MRZ.16515b82.js → MRZ-f8b7-chunk.js} +0 -0
  29. package/dist/networks/{PDF.04105754.js → PDF-a795-chunk.js} +0 -0
  30. package/dist/networks/{ZXing.d5fea691.js → ZXing-c4dc-chunk.js} +0 -0
  31. package/dist/networks/angles20210831.json +1 -1
  32. package/dist/networks/asyncLoader-87ca-chunk.js +1 -0
  33. package/dist/networks/cdnLoader-c56e-chunk.js +1 -0
  34. package/dist/networks/classLocal20220112.json +1 -1
  35. package/dist/networks/detectormodel20220817.json +1 -1
  36. package/dist/networks/landmarkmodel20220817.json +1 -1
  37. package/dist/networks/mrz20220531.json +1953 -1953
  38. package/package.json +4 -4
  39. package/dist/networks/215.bf164218.js +0 -1
  40. package/dist/networks/716.7c63165d.js +0 -1
  41. package/dist/networks/asyncLoader.c80a6980.js +0 -1
  42. package/dist/networks/cdnLoader.64c17c7d.js +0 -1
package/README.md CHANGED
@@ -1,156 +1,160 @@
1
- ## Overview
2
-
3
- Upon being switched on, the library integrates the component of capturing the documents and faces from a video to your page.
4
-
5
- ## Use cases
6
-
7
- - Capture and determination of the document type
8
- - Capture of pdf417
9
- - Capture of MRZ
10
- - Capture of faces
11
- - Capture of QR code
12
- - Capture of VIN
13
-
14
- ## Recommendations
15
-
16
- Use a modern phone with a good camera having the definition of not less than 8 megapixels.
17
- The capture must be made in a well-lighted room. A document must be located at the uniform background.
18
-
19
- ## Limitations
20
-
21
- This component works in phones with the operating system Android in the browser Chrome (minimum version 93) and in phones with the operating system iOS (minimum version 14) in the browser Safari
22
-
23
- ## Installation
24
-
25
- ```
26
- $ npm install @idscan/idvc2
27
- ```
28
-
29
- This component contains JS, CSS files which require the mandatory import into your project.
30
-
31
- 1. Before importing, it is necessary to set the webpack-configuration.
32
-
33
- *Note: The project must use the webpack 4 and later versions.*
34
-
35
- 1.1. Add the following rules of loading to the field rules
36
- ```javascript
37
- {
38
- test: /\.css$/,
39
- use: ["style-loader", "css-loader"],
40
- }
41
- ```
42
-
43
- 1.2. If you prefer to use neural networks from your domain, you should add the 'CopyWebpackPlugin' into the section 'plugins' which will copy the files, which are necessary for the work of the neural network, from the folder to another folder that should be selected by you.
44
-
45
- *Note: The structure inside the folder of the component 'networks' must be saved on the server with due regard to the nesting.
46
- There are binary files in the folder which do not have the extension. These files must be provided by the server with the header `Content-Type: application/octet-stream`.*
47
-
48
- *copy-webpack-plugin v.5 and below*
49
- ```javascript
50
- const CopyWebpackPlugin = require('copy-webpack-plugin');
51
-
52
- new CopyWebpackPlugin ([{
53
- from: 'node_modules/@idscan/idvc2/dist/networks/*',
54
- to: 'networks/[name].[ext]',
55
- toType: 'template',
56
- }]);
57
- ```
58
- *copy-webpack-plugin v.6 and above*
59
- ```javascript
60
- const CopyWebpackPlugin = require('copy-webpack-plugin');
61
-
62
- new CopyWebpackPlugin({
63
- patterns: [
64
- {
65
- from: 'node_modules/@idscan/idvc2/dist/networks/*',
66
- to: 'networks/[name][ext]',
67
- toType: 'template',
68
- },
69
- ],
70
- });
71
- ```
72
-
73
- 1.3. Import the library and css to your project.
74
-
75
- ```javascript
76
- import IDVC from '@idscan/idvc2'
77
- import '@idscan/idvc2/dist/css/idvc.css'
78
-
79
- ```
80
-
81
- ## Configuration
82
- Configuration documentation you can find on our [site](https://docs.idscan.net/dvs/dvs-web-api/web-library-v2.html).
83
-
84
-
85
- *Note: Request a license key for the library by emailing
86
- [sales@idscan.net](mailto:sales@idscan.net) or [support@idscan.net](mailto:support@idscan.net)*
87
-
88
- ## Version history
89
- - **2.2.2**
90
- - fixed: spinner module
91
- - **2.2.1**
92
- - fixed: spinner on manual upload
93
- - **2.2.0**
94
- - fixed: video container
95
- - fixed: force image capture button
96
- - feature: check for blur
97
- - feature: reduced loading time
98
- - feature: reduced image capturing time
99
- - feature: new liveness checks
100
- - updated: pdf and mrz modules
101
- - feature: lazy async loading
102
- - fixed: flashlight state on step change
103
- - updated: neuron networks
104
- - feature: new hook updateDocumentTypes
105
- - **2.1.6**
106
- - Fixed css variable
107
- - **2.1.5**
108
- - Added limitations check
109
- - **2.1.4**
110
- - fixed event listeners behavior on restart component
111
- - **2.1.3**
112
- - fixed reload component method
113
- - **2.1.2**
114
- - fixed change document type
115
- - **2.1.1**
116
- - updated camera module
117
- - improved camera errors handling
118
- - **2.1.0**
119
- - removed additional fonts
120
- - added step swiping if an image is uploaded
121
- - changed front document capturing method
122
- - improved mrz parsing
123
- - fixed bubbling if an image is mirrored
124
- - reduced library size
125
- - added new css variable for library's font family
126
- - reduced css
127
- - added blur detector to front step
128
- - improved MRZ location and MRZ decode speed.
129
- - moved HEIC supports to distinct module and added additional config option for it.
130
- - reduced first loading time.
131
- - removed "parsePDF" option.
132
- - added "mrzImg" field to mrz step. It's cut mrz for better MRZ recognition on DVS side.
133
- - **2.0.2**
134
- - fix: manual upload.
135
- - **2.0.1**
136
- - deprecated: isShowManualSwitchButton. Now the decision is made on a step config
137
- - deprecated: enableFlash. Now it shows only if device/browser supports flashlight.
138
- - deprecated: showSubmitBtn. The submit button is always turned on.
139
- - deprecated: isShowVersion. The Library version is always showing.
140
- - deprecated: tapOnVideo.
141
- - deprecated: tapBackSide.
142
- - deprecated: tapFace.
143
- - deprecated: showForceCapturingBtn.
144
- - deprecated: minPDFframes.
145
- - deprecated: capturingMode.
146
- - deprecated: showPreviewForOneStep.
147
- - deprecated: priority. Now the priority is selected by camera availability.
148
- - deprecated: parseMRZ.
149
- - deprecated: enableGeolocation.
150
- - deprecated: enableLimitation. Now limitation shows only if the system not supports needed features.
151
- - deprecated: steps.
152
- - deprecated: types.
153
- - deprecated: displayParsedData.
154
- - changed behavior: autoContinue.
155
- - feat: documentTypes. Now the "documentTypes" option is a union of steps and types.
156
- - feat: add translation.
1
+ ## Overview
2
+
3
+ Upon being switched on, the library integrates the component of capturing the documents and faces from a video to your page.
4
+
5
+ ## Use cases
6
+
7
+ - Capture and determination of the document type
8
+ - Capture of pdf417
9
+ - Capture of MRZ
10
+ - Capture of faces
11
+ - Capture of QR code
12
+ - Capture of VIN
13
+
14
+ ## Recommendations
15
+
16
+ Use a modern phone with a good camera having the definition of not less than 8 megapixels.
17
+ The capture must be made in a well-lighted room. A document must be located at the uniform background.
18
+
19
+ ## Limitations
20
+
21
+ This component works in phones with the operating system Android in the browser Chrome (minimum version 93) and in phones with the operating system iOS (minimum version 14) in the browser Safari
22
+
23
+ ## Installation
24
+
25
+ ```
26
+ $ npm install @idscan/idvc2
27
+ ```
28
+
29
+ This component contains JS, CSS files which require the mandatory import into your project.
30
+
31
+ 1. Before importing, it is necessary to set the webpack-configuration.
32
+
33
+ *Note: The project must use the webpack 4 and later versions.*
34
+
35
+ 1.1. Add the following rules of loading to the field rules
36
+ ```javascript
37
+ {
38
+ test: /\.css$/,
39
+ use: ["style-loader", "css-loader"],
40
+ }
41
+ ```
42
+
43
+ 1.2. If you prefer to use neural networks from your domain, you should add the 'CopyWebpackPlugin' into the section 'plugins' which will copy the files, which are necessary for the work of the neural network, from the folder to another folder that should be selected by you.
44
+
45
+ *Note: The structure inside the folder of the component 'networks' must be saved on the server with due regard to the nesting.
46
+ There are binary files in the folder which do not have the extension. These files must be provided by the server with the header `Content-Type: application/octet-stream`.*
47
+
48
+ *copy-webpack-plugin v.5 and below*
49
+ ```javascript
50
+ const CopyWebpackPlugin = require('copy-webpack-plugin');
51
+
52
+ new CopyWebpackPlugin ([{
53
+ from: 'node_modules/@idscan/idvc2/dist/networks/*',
54
+ to: 'networks/[name].[ext]',
55
+ toType: 'template',
56
+ }]);
57
+ ```
58
+ *copy-webpack-plugin v.6 and above*
59
+ ```javascript
60
+ const CopyWebpackPlugin = require('copy-webpack-plugin');
61
+
62
+ new CopyWebpackPlugin({
63
+ patterns: [
64
+ {
65
+ from: 'node_modules/@idscan/idvc2/dist/networks/*',
66
+ to: 'networks/[name][ext]',
67
+ toType: 'template',
68
+ },
69
+ ],
70
+ });
71
+ ```
72
+
73
+ 1.3. Import the library and css to your project.
74
+
75
+ ```javascript
76
+ import IDVC from '@idscan/idvc2'
77
+ import '@idscan/idvc2/dist/css/idvc.css'
78
+
79
+ ```
80
+
81
+ ## Configuration
82
+ Configuration documentation you can find on our [site](https://docs.idscan.net/dvs/dvs-web-api/web-library-v2.html).
83
+
84
+
85
+ *Note: Request a license key for the library by emailing
86
+ [sales@idscan.net](mailto:sales@idscan.net) or [support@idscan.net](mailto:support@idscan.net)*
87
+
88
+ ## Version history
89
+ - **2.3.0**
90
+ - added: new option in config "chunkPublicPath"
91
+ - **2.2.3**
92
+ - fixed: switch manual upload button
93
+ - **2.2.2**
94
+ - fixed: spinner module
95
+ - **2.2.1**
96
+ - fixed: spinner on manual upload
97
+ - **2.2.0**
98
+ - fixed: video container
99
+ - fixed: force image capture button
100
+ - feature: check for blur
101
+ - feature: reduced loading time
102
+ - feature: reduced image capturing time
103
+ - feature: new liveness checks
104
+ - updated: pdf and mrz modules
105
+ - feature: lazy async loading
106
+ - fixed: flashlight state on step change
107
+ - updated: neuron networks
108
+ - feature: new hook updateDocumentTypes
109
+ - **2.1.6**
110
+ - Fixed css variable
111
+ - **2.1.5**
112
+ - Added limitations check
113
+ - **2.1.4**
114
+ - fixed event listeners behavior on restart component
115
+ - **2.1.3**
116
+ - fixed reload component method
117
+ - **2.1.2**
118
+ - fixed change document type
119
+ - **2.1.1**
120
+ - updated camera module
121
+ - improved camera errors handling
122
+ - **2.1.0**
123
+ - removed additional fonts
124
+ - added step swiping if an image is uploaded
125
+ - changed front document capturing method
126
+ - improved mrz parsing
127
+ - fixed bubbling if an image is mirrored
128
+ - reduced library size
129
+ - added new css variable for library's font family
130
+ - reduced css
131
+ - added blur detector to front step
132
+ - improved MRZ location and MRZ decode speed.
133
+ - moved HEIC supports to distinct module and added additional config option for it.
134
+ - reduced first loading time.
135
+ - removed "parsePDF" option.
136
+ - added "mrzImg" field to mrz step. It's cut mrz for better MRZ recognition on DVS side.
137
+ - **2.0.2**
138
+ - fix: manual upload.
139
+ - **2.0.1**
140
+ - deprecated: isShowManualSwitchButton. Now the decision is made on a step config
141
+ - deprecated: enableFlash. Now it shows only if device/browser supports flashlight.
142
+ - deprecated: showSubmitBtn. The submit button is always turned on.
143
+ - deprecated: isShowVersion. The Library version is always showing.
144
+ - deprecated: tapOnVideo.
145
+ - deprecated: tapBackSide.
146
+ - deprecated: tapFace.
147
+ - deprecated: showForceCapturingBtn.
148
+ - deprecated: minPDFframes.
149
+ - deprecated: capturingMode.
150
+ - deprecated: showPreviewForOneStep.
151
+ - deprecated: priority. Now the priority is selected by camera availability.
152
+ - deprecated: parseMRZ.
153
+ - deprecated: enableGeolocation.
154
+ - deprecated: enableLimitation. Now limitation shows only if the system not supports needed features.
155
+ - deprecated: steps.
156
+ - deprecated: types.
157
+ - deprecated: displayParsedData.
158
+ - changed behavior: autoContinue.
159
+ - feat: documentTypes. Now the "documentTypes" option is a union of steps and types.
160
+ - feat: add translation.