bry-biometric-collector 2.2.17 → 2.2.18-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
@@ -191,6 +191,12 @@ Currently supported tag parameters:
191
191
 
192
192
  Example: `show_justification_field=false`
193
193
 
194
+ - **min_eye_to_eye_dist**: The minimum distance between the eyes that should be accepted on face collector.
195
+
196
+ Default: `0`
197
+
198
+ Example: `min_eye_to_eye_dist=50`
199
+
194
200
  ### **Run-time Configuration**
195
201
 
196
202
  #### **Functions**
@@ -525,10 +531,17 @@ The web component listens to and emits a few events. The events emitted are:
525
531
  - **face-unconformities-validated**: When the photo is captured and after evaluating it, an event of this kind is emitted with their picture like so:
526
532
 
527
533
  ```ts
528
- {detail: {bodyParts[{bodyPart:'FACE', data: string, livenessBlob: string *, livenessResult: string}]}
534
+ {detail: {bodyParts[{bodyPart:'FACE', data: string, livenessBlob: string *, livenessResult: string},
535
+ {bodyPart:'FACE', resized: true, data: string}]} *
529
536
  * only if liveness_enable=true
530
537
  ```
531
538
 
539
+ - **low-face-quality**: When the photo is captured and the distance between the eyes is below the minimum required (min_eye_to_eye_dist), this event is emitted.
540
+
541
+ ```ts
542
+ {detail: {bodyParts[{bodyPart: 'FACE', minEyeToEyeDist: number, capturedEyeToEyeDist: number}], errorCode: string, translatedError: string}}
543
+ ```
544
+
532
545
  - **export-face**: When the user saves their face (by clicking finish), an event of this kind is emitted with their picture like so:
533
546
 
534
547
  ```ts