@idscan/idvc2 2.2.1 → 2.2.3

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 (41) hide show
  1. package/LICENSE.txt +202 -202
  2. package/README.md +158 -154
  3. package/dist/idvc.js +1 -1
  4. package/dist/index.html +95 -95
  5. package/dist/js/defaultConfig.ts +254 -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.f9cf8b7f.js} +0 -0
  24. package/dist/networks/{215.bf164218.js → 215.d4dcf9f8.js} +0 -0
  25. package/dist/networks/{400.8e839581.js → 400.c10b35da.js} +0 -0
  26. package/dist/networks/716.0ae8557d.js +1 -0
  27. package/dist/networks/{Face.728ec3c6.js → Face.caf8a3ec.js} +0 -0
  28. package/dist/networks/{MRZ.16515b82.js → MRZ.4736053a.js} +0 -0
  29. package/dist/networks/{PDF.04105754.js → PDF.e3b27d00.js} +0 -0
  30. package/dist/networks/{ZXing.d5fea691.js → ZXing.ccc17251.js} +0 -0
  31. package/dist/networks/angles20210831.json +1 -1
  32. package/dist/networks/asyncLoader.9bf3066b.js +1 -0
  33. package/dist/networks/cdnLoader.edab76a1.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/716.7c63165d.js +0 -1
  40. package/dist/networks/asyncLoader.52c5ed04.js +0 -1
  41. package/dist/networks/cdnLoader.2caa8b83.js +0 -1
package/README.md CHANGED
@@ -1,154 +1,158 @@
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.1**
90
- - fixed: spinner on manual upload
91
- - **2.2.0**
92
- - fixed: video container
93
- - fixed: force image capture button
94
- - feature: check for blur
95
- - feature: reduced loading time
96
- - feature: reduced image capturing time
97
- - feature: new liveness checks
98
- - updated: pdf and mrz modules
99
- - feature: lazy async loading
100
- - fixed: flashlight state on step change
101
- - updated: neuron networks
102
- - feature: new hook updateDocumentTypes
103
- - **2.1.6**
104
- - Fixed css variable
105
- - **2.1.5**
106
- - Added limitations check
107
- - **2.1.4**
108
- - fixed event listeners behavior on restart component
109
- - **2.1.3**
110
- - fixed reload component method
111
- - **2.1.2**
112
- - fixed change document type
113
- - **2.1.1**
114
- - updated camera module
115
- - improved camera errors handling
116
- - **2.1.0**
117
- - removed additional fonts
118
- - added step swiping if an image is uploaded
119
- - changed front document capturing method
120
- - improved mrz parsing
121
- - fixed bubbling if an image is mirrored
122
- - reduced library size
123
- - added new css variable for library's font family
124
- - reduced css
125
- - added blur detector to front step
126
- - improved MRZ location and MRZ decode speed.
127
- - moved HEIC supports to distinct module and added additional config option for it.
128
- - reduced first loading time.
129
- - removed "parsePDF" option.
130
- - added "mrzImg" field to mrz step. It's cut mrz for better MRZ recognition on DVS side.
131
- - **2.0.2**
132
- - fix: manual upload.
133
- - **2.0.1**
134
- - deprecated: isShowManualSwitchButton. Now the decision is made on a step config
135
- - deprecated: enableFlash. Now it shows only if device/browser supports flashlight.
136
- - deprecated: showSubmitBtn. The submit button is always turned on.
137
- - deprecated: isShowVersion. The Library version is always showing.
138
- - deprecated: tapOnVideo.
139
- - deprecated: tapBackSide.
140
- - deprecated: tapFace.
141
- - deprecated: showForceCapturingBtn.
142
- - deprecated: minPDFframes.
143
- - deprecated: capturingMode.
144
- - deprecated: showPreviewForOneStep.
145
- - deprecated: priority. Now the priority is selected by camera availability.
146
- - deprecated: parseMRZ.
147
- - deprecated: enableGeolocation.
148
- - deprecated: enableLimitation. Now limitation shows only if the system not supports needed features.
149
- - deprecated: steps.
150
- - deprecated: types.
151
- - deprecated: displayParsedData.
152
- - changed behavior: autoContinue.
153
- - feat: documentTypes. Now the "documentTypes" option is a union of steps and types.
154
- - 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.2.3**
90
+ - fixed: switch manual upload button
91
+ - **2.2.2**
92
+ - fixed: spinner module
93
+ - **2.2.1**
94
+ - fixed: spinner on manual upload
95
+ - **2.2.0**
96
+ - fixed: video container
97
+ - fixed: force image capture button
98
+ - feature: check for blur
99
+ - feature: reduced loading time
100
+ - feature: reduced image capturing time
101
+ - feature: new liveness checks
102
+ - updated: pdf and mrz modules
103
+ - feature: lazy async loading
104
+ - fixed: flashlight state on step change
105
+ - updated: neuron networks
106
+ - feature: new hook updateDocumentTypes
107
+ - **2.1.6**
108
+ - Fixed css variable
109
+ - **2.1.5**
110
+ - Added limitations check
111
+ - **2.1.4**
112
+ - fixed event listeners behavior on restart component
113
+ - **2.1.3**
114
+ - fixed reload component method
115
+ - **2.1.2**
116
+ - fixed change document type
117
+ - **2.1.1**
118
+ - updated camera module
119
+ - improved camera errors handling
120
+ - **2.1.0**
121
+ - removed additional fonts
122
+ - added step swiping if an image is uploaded
123
+ - changed front document capturing method
124
+ - improved mrz parsing
125
+ - fixed bubbling if an image is mirrored
126
+ - reduced library size
127
+ - added new css variable for library's font family
128
+ - reduced css
129
+ - added blur detector to front step
130
+ - improved MRZ location and MRZ decode speed.
131
+ - moved HEIC supports to distinct module and added additional config option for it.
132
+ - reduced first loading time.
133
+ - removed "parsePDF" option.
134
+ - added "mrzImg" field to mrz step. It's cut mrz for better MRZ recognition on DVS side.
135
+ - **2.0.2**
136
+ - fix: manual upload.
137
+ - **2.0.1**
138
+ - deprecated: isShowManualSwitchButton. Now the decision is made on a step config
139
+ - deprecated: enableFlash. Now it shows only if device/browser supports flashlight.
140
+ - deprecated: showSubmitBtn. The submit button is always turned on.
141
+ - deprecated: isShowVersion. The Library version is always showing.
142
+ - deprecated: tapOnVideo.
143
+ - deprecated: tapBackSide.
144
+ - deprecated: tapFace.
145
+ - deprecated: showForceCapturingBtn.
146
+ - deprecated: minPDFframes.
147
+ - deprecated: capturingMode.
148
+ - deprecated: showPreviewForOneStep.
149
+ - deprecated: priority. Now the priority is selected by camera availability.
150
+ - deprecated: parseMRZ.
151
+ - deprecated: enableGeolocation.
152
+ - deprecated: enableLimitation. Now limitation shows only if the system not supports needed features.
153
+ - deprecated: steps.
154
+ - deprecated: types.
155
+ - deprecated: displayParsedData.
156
+ - changed behavior: autoContinue.
157
+ - feat: documentTypes. Now the "documentTypes" option is a union of steps and types.
158
+ - feat: add translation.