@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.
- package/LICENSE.txt +202 -202
- package/README.md +160 -156
- package/dist/idvc.js +1 -1
- package/dist/index.html +95 -95
- package/dist/js/defaultConfig.ts +261 -254
- package/dist/js/environment/capturingModes.json +4 -4
- package/dist/js/environment/cssVariables.json +191 -191
- package/dist/js/environment/designations.ts +19 -19
- package/dist/js/environment/documentTypes.ts +145 -145
- package/dist/js/environment/langs.ts +293 -293
- package/dist/js/environment/loadModes.json +11 -11
- package/dist/js/environment/loopResult.ts +14 -14
- package/dist/js/environment/networkNames.json +20 -20
- package/dist/js/environment/realFaceModes.ts +15 -15
- package/dist/js/environment/stepsDescription.ts +85 -85
- package/dist/js/environment/triangulation.ts +188 -188
- package/dist/js/geometry.d.ts +8 -8
- package/dist/js/idvc.d.ts +3 -3
- package/dist/js/image.d.ts +4 -4
- package/dist/js/index.d.ts +12 -12
- package/dist/js/loop.d.ts +21 -21
- package/dist/js/mrz.d.ts +105 -105
- package/dist/networks/{130.0b466182.js → 130-bd8e-chunk.js} +0 -0
- package/dist/networks/215-741c-chunk.js +1 -0
- package/dist/networks/{400.8e839581.js → 400-bc2f-chunk.js} +0 -0
- package/dist/networks/716-6f4b-chunk.js +1 -0
- package/dist/networks/{Face.728ec3c6.js → Face-e893-chunk.js} +0 -0
- package/dist/networks/{MRZ.16515b82.js → MRZ-f8b7-chunk.js} +0 -0
- package/dist/networks/{PDF.04105754.js → PDF-a795-chunk.js} +0 -0
- package/dist/networks/{ZXing.d5fea691.js → ZXing-c4dc-chunk.js} +0 -0
- package/dist/networks/angles20210831.json +1 -1
- package/dist/networks/asyncLoader-87ca-chunk.js +1 -0
- package/dist/networks/cdnLoader-c56e-chunk.js +1 -0
- package/dist/networks/classLocal20220112.json +1 -1
- package/dist/networks/detectormodel20220817.json +1 -1
- package/dist/networks/landmarkmodel20220817.json +1 -1
- package/dist/networks/mrz20220531.json +1953 -1953
- package/package.json +4 -4
- package/dist/networks/215.bf164218.js +0 -1
- package/dist/networks/716.7c63165d.js +0 -1
- package/dist/networks/asyncLoader.c80a6980.js +0 -1
- 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.
|
|
90
|
-
-
|
|
91
|
-
- **2.2.
|
|
92
|
-
- fixed:
|
|
93
|
-
- **2.2.
|
|
94
|
-
- fixed:
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
- feature:
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
- **2.1.
|
|
110
|
-
-
|
|
111
|
-
- **2.1.
|
|
112
|
-
-
|
|
113
|
-
- **2.1.
|
|
114
|
-
- fixed
|
|
115
|
-
- **2.1.
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
- reduced
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
- deprecated:
|
|
141
|
-
- deprecated:
|
|
142
|
-
- deprecated:
|
|
143
|
-
- deprecated:
|
|
144
|
-
- deprecated:
|
|
145
|
-
- deprecated:
|
|
146
|
-
- deprecated:
|
|
147
|
-
- deprecated:
|
|
148
|
-
- deprecated:
|
|
149
|
-
- deprecated:
|
|
150
|
-
- deprecated:
|
|
151
|
-
- deprecated:
|
|
152
|
-
- deprecated:
|
|
153
|
-
- deprecated:
|
|
154
|
-
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
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.
|