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 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
- - **video_filter**: Camera filter/color outside the oval area. Possible values are `"blur", "none", "white",
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: `blur`
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
- Example: `video_filter=white`
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**\*: Required when using face collector (for now). Sets the JTWToken to perform face validations on the specified back-end. 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.
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