bry-biometric-collector 2.2.12 → 2.2.13-RC02
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 +23 -4
- package/dist/DocumentCollector_88ebb6ba_2.2.13-RC02.js +1354 -0
- package/dist/FaceCollector_1886fa7f_2.2.13-RC02.js +2312 -0
- package/dist/TakePictureBtn_139600c3_2.2.13-RC02.js +1060 -0
- package/dist/bry-biometric-collector-main.js +2 -1
- package/dist/{en-us_dfe3f804_2.2.12.js → en-us_9c06257f_2.2.13-RC02.js} +66 -46
- package/dist/{es-cl_14b74e4b_2.2.12.js → es-cl_ed33301b_2.2.13-RC02.js} +35 -17
- package/dist/face_api_0e3ce8c8_2.2.13-RC02.js +36289 -0
- package/dist/fingersApi_8c784824_2.2.13-RC02.js +147 -0
- package/dist/index-no-detector_acb82d83_2.2.13-RC02.js +10396 -0
- package/dist/index.js +2 -1
- package/dist/main_73a659f1_2.2.13-RC02.js +25573 -0
- package/dist/{pt-br_2a12cf43_2.2.12.js → pt-br_4cf594be_2.2.13-RC02.js} +51 -31
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/CameraBtn_eb7e334d_2.2.12.js +0 -513
- package/dist/DocumentCollector_e2e48632_2.2.12.js +0 -1043
- package/dist/FaceCollector_63ba171b_2.2.12.js +0 -1828
- package/dist/face_api_0e3ce8c8_2.2.12.js +0 -36288
- package/dist/fingersApi_43c7dd77_2.2.12.js +0 -146
- package/dist/index-no-detector_acb82d83_2.2.12.js +0 -10395
- package/dist/main_4d732675_2.2.12.js +0 -23799
package/README.md
CHANGED
@@ -130,6 +130,12 @@ Currently supported tag parameters:
|
|
130
130
|
|
131
131
|
Example: `extension_url_mozilla="https://www.bry.com.br/downloads/extension/v2/api/v1/extension-api.js"`
|
132
132
|
|
133
|
+
- **evaluate_photo**: Wether to enable photo evaluation in the facial capture process. If enabled, the evaluation endpoint also has to be set.
|
134
|
+
|
135
|
+
Default: `true`
|
136
|
+
|
137
|
+
Example: `evaluate_photo=false`
|
138
|
+
|
133
139
|
- **show_capture_button**: Wether to hide capture button. If you enable a button to trigger manual capture, it will be shown below the video.
|
134
140
|
|
135
141
|
Default: `true`
|
@@ -142,12 +148,18 @@ Currently supported tag parameters:
|
|
142
148
|
|
143
149
|
Example: `show_unconformities=false`
|
144
150
|
|
145
|
-
- **
|
151
|
+
- **video_overlay**: Camera filter/color outside the oval area. Possible values are `"none", "white",
|
146
152
|
"blue", "red", "green", "gray", "yellow", "black"`. HTML colors are also accepted.
|
147
153
|
|
148
|
-
Default: `
|
154
|
+
Default: `white`
|
155
|
+
|
156
|
+
Example: `video_overlay=white`
|
157
|
+
|
158
|
+
- **video_overlay_transparency**: Specifies the level of transparency for the filter/color applied outside the oval area of the camera. The value is given on a scale from 0 to 100, where 0 means fully opaque and 100 means fully transparent.
|
149
159
|
|
150
|
-
|
160
|
+
Default: `0`
|
161
|
+
|
162
|
+
Example: `video_overlay_transparency=60`
|
151
163
|
|
152
164
|
- **show_config_button**: Wether to hide config button. It will be shown below the video on the left side.
|
153
165
|
|
@@ -178,7 +190,7 @@ Currently supported tag parameters:
|
|
178
190
|
|
179
191
|
The Web-component exports a series of functions that the host environment may call. These functions are called by simply getting the html element from the page and invoking them. The following actions can be performed during run-time from the host environment:
|
180
192
|
|
181
|
-
- **setBioAcJWTToken**\*:
|
193
|
+
- **setBioAcJWTToken**\*: Sets the JTWToken to perform face validations on the specified back-end. This configuration is necessary when the `evaluate_photo` parameter has a value of `true`. Receives a string _token_, a string for the base URL, and a string path to the evaluate biometrics endpoint. This endpoint was previously used for both fingers and face validations, now however, we only use it for face validation. The endpoint should accept a post containing in the body an object with a list of BodyParts, such as described [here](src/lib/remote/bioacService.ts). The return is expected to be an object containing a list called bodyParts conforming to the BodyPartReturnType interface, but also a field called icaoWarnings containing an array of unconformities in string form.
|
182
194
|
|
183
195
|
Example:
|
184
196
|
|
@@ -503,6 +515,13 @@ The web component listens to and emits a few events. The events emitted are:
|
|
503
515
|
|
504
516
|
- **face-scrapped**: When the user scraps their face (by clicking capture again after having saved their picture) this event gets emitted without any data.
|
505
517
|
|
518
|
+
- **face-unconformities-validated**: When the photo is captured and after evaluating it, an event of this kind is emitted with their picture like so:
|
519
|
+
|
520
|
+
```ts
|
521
|
+
{detail: {bodyParts[{bodyPart:'FACE', data: string, livenessBlob: string *, livenessResult: string}]}
|
522
|
+
* only if liveness_enable=true
|
523
|
+
```
|
524
|
+
|
506
525
|
- **export-face**: When the user saves their face (by clicking finish), an event of this kind is emitted with their picture like so:
|
507
526
|
|
508
527
|
```ts
|