@richard.fadiora/liveness-detection 5.0.4 → 5.1.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/README.md +19 -5
- package/dist/{LivenessCheck-CjVP-81C.cjs → LivenessCheck-6oh9vnb0.cjs} +6 -6
- package/dist/{LivenessCheck-uEzmlOY8.js → LivenessCheck-CtndKzVw.js} +654 -649
- package/dist/angular/README.md +19 -5
- package/dist/angular/fesm2022/richard.fadiora-liveness-detection.mjs +41 -13
- package/dist/angular/fesm2022/richard.fadiora-liveness-detection.mjs.map +1 -1
- package/dist/angular/types/richard.fadiora-liveness-detection.d.ts +5 -0
- package/dist/core/LivenessEngine.d.ts +5 -0
- package/dist/core/LivenessEngine.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Liveness Detection SDK v5.0
|
|
1
|
+
# Liveness Detection SDK v5.1.0
|
|
2
2
|
|
|
3
|
-
A high-security, cross-framework **Liveness Detection SDK** designed for financial services. v5.0
|
|
3
|
+
A high-security, cross-framework **Liveness Detection SDK** designed for financial services. v5.1.0 introduces **Temporal Identity Locking** to prevent identity switching during the verification process.
|
|
4
4
|
|
|
5
|
-
## 🔒 New Security Protocols (v5.0
|
|
5
|
+
## 🔒 New Security Protocols (v5.1.0)
|
|
6
6
|
|
|
7
7
|
This version introduces a "Zero-Trust" frontend architecture:
|
|
8
8
|
|
|
@@ -118,7 +118,7 @@ TypeScript
|
|
|
118
118
|
|
|
119
119
|
* * *
|
|
120
120
|
|
|
121
|
-
## 🚨 Updated Error Reference (
|
|
121
|
+
## 🚨 Updated Error Reference (v5.1.0)
|
|
122
122
|
|
|
123
123
|
The following codes are now emitted by the frontend engine **instantly**, without hitting the backend:
|
|
124
124
|
|
|
@@ -129,6 +129,20 @@ The following codes are now emitted by the frontend engine **instantly**, withou
|
|
|
129
129
|
| Security violation: Identity mismatch. | Biometric ratios shifted significantly mid-session. | Prevents mid-stream person-swapping. |
|
|
130
130
|
| Another session is active. | User has the verification open in another tab. | Prevents multi-device brute forcing. |
|
|
131
131
|
|
|
132
|
+
* * *
|
|
133
|
+
### ⚠️ Security Warnings & Temporary Interruption
|
|
134
|
+
|
|
135
|
+
Version 5.0.2 implements a non-fatal warning system for non-critical security events (e.g., fleeting obscuration).
|
|
136
|
+
|
|
137
|
+
* **Temporary Interruption**: If a security violation occurs (e.g., face obscured), the `LivenessEngine` will pause detection for **2 seconds** to allow the user to adjust their position.
|
|
138
|
+
|
|
139
|
+
* **Warning Counter**: The engine tracks these events using `warningCount`. If the violations exceed `MAX_WARNINGS` (default: 3), the session will trigger a `failInstantly` event.
|
|
140
|
+
|
|
141
|
+
* **State Feedback**: During the 2-second pause, the `errorMsg` property in `LivenessState` will be populated with a temporary notification (e.g., _"Please ensure both ears are fully visible. (Warning 1/3)"_).
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
**Best Practice:** Always subscribe to `onStateChange` in your UI layer to ensure your user-facing components react to the `errorMsg` text.
|
|
145
|
+
|
|
132
146
|
* * *
|
|
133
147
|
|
|
134
148
|
## 🏗️ Architectural Flow
|
|
@@ -148,7 +162,7 @@ These images are cropped to **224x224px** focusing on the face, making them opti
|
|
|
148
162
|
|
|
149
163
|
* * *
|
|
150
164
|
|
|
151
|
-
## 🔧 Integration Notes for v5.0
|
|
165
|
+
## 🔧 Integration Notes for v5.1.0
|
|
152
166
|
|
|
153
167
|
* **WASM Path**: Ensure your server allows cross-origin requests for the MediaPipe `.wasm` files hosted on JSDelivr.
|
|
154
168
|
|