@getyoti/react-face-capture 2.2.0 → 2.2.1-dev.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v2.2.1-dev.1
4
+
5
+ ### Testing features
6
+
7
+ - Added new properties to allow configuration on faceStabilityCheck
8
+
9
+ - `faceStabilityThreshold` configures how strict the stability check will be.
10
+ The minimum value is 0.4 and the maximum value is 0.9.
11
+
12
+ - `numStableFrames` determines how many frames are used for the stability check.
13
+ The minimum value is 2 and the maximum is 5.
14
+
15
+ **Note:** These properties are for testing purposes and will be removed or refactored
16
+ in future versions.
17
+
18
+ ### Notices
19
+
20
+ - Improved Face validations performance.
21
+
3
22
  ## v2.2.0
4
23
 
5
24
  ### New features
package/README.md CHANGED
@@ -25,9 +25,9 @@ The package depends on the following peer dependencies
25
25
  | Browser | Versions |
26
26
  | ------- | ------------------- |
27
27
  | and_chr | 123 |
28
- | chrome | 123,122,121,120 |
28
+ | chrome | 124,123,122,121 |
29
29
  | edge | 123,122 |
30
- | firefox | 124,123,122,121 |
30
+ | firefox | 125,124,123,122 |
31
31
  | ios_saf | 17.4,17.3,17.2 |
32
32
  | safari | 17.4,17.3,17.2,17.1 |
33
33
 
@@ -129,6 +129,8 @@ The CSS custom properties must be defined using the `:root` CSS selector. Here i
129
129
  | encryptImage | Boolean | `true` | - | Encrypt the image inside the payload argument on the `onSuccess` callback when it runs the secure mode. |
130
130
  | allowBackgroundFaces | Boolean | `false` | - | Allows faces to be present in the background when the image is being captured. The face capture will return a cropped image with the main face when set to `true`. Note: This feature is designed for retail terminals and unsuitable for online user's face capture. |
131
131
  | faceSelectionMethod | String `center/area` | `center` | - | Defines where the main face can be placed, in the center or anywhere in the image. Note: This feature is designed for retail terminals and unsuitable for online user's face capture. It is recommend to enable `allowBackgroundFaces` when `faceSelectionMethod` is set to `area`. |
132
+ | faceStabilityThreshold | Number | 0.8 | - | Configures how strict the stability check will be. The minimum value is 0.4 and the maximum value is 0.9. |
133
+ | numStableFrames | Number | 4 | - | Determines how many frames are used for the stability check. The minimum value is 2 and the maximum is 5. |
132
134
 
133
135
  **(\*)**
134
136
  This field is only mandatory when using the secure mode. (secure = true)
package/index.d.ts CHANGED
@@ -251,6 +251,12 @@ declare module '@getyoti/react-face-capture' {
251
251
  * 'allowBackgroundFaces' when 'faceSelectionMethod' is set to 'area'.
252
252
  * (default:center) */
253
253
  faceSelectionMethod?: FACE_SELECTION_METHOD;
254
+ /** Configures how strict the stability check will be.
255
+ * The minimum value is 0.4 and the maximum value is 0.9. */
256
+ faceStabilityThreshold: number;
257
+ /** Determines how many frames are used for the stability check.
258
+ * The minimum value is 2 and the maximum is 5. */
259
+ numStableFrames: number;
254
260
  }
255
261
 
256
262
  /**