@sssxyd/face-liveness-detector 0.4.0 → 0.4.1-beta.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/README.en.md +1 -6
- package/README.md +1 -6
- package/dist/index.esm.js +1350 -3049
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1350 -3049
- package/dist/index.js.map +1 -1
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/face-detection-engine.d.ts +0 -58
- package/dist/types/face-detection-engine.d.ts.map +1 -1
- package/dist/types/face-detection-state.d.ts +1 -8
- package/dist/types/face-detection-state.d.ts.map +1 -1
- package/dist/types/motion-liveness-detector.d.ts +253 -134
- package/dist/types/motion-liveness-detector.d.ts.map +1 -1
- package/dist/types/types.d.ts +0 -4
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -140,12 +140,11 @@ const engine = new FaceDetectionEngine({
|
|
|
140
140
|
tensorflow_wasm_path: '/wasm',
|
|
141
141
|
tensorflow_backend: 'auto',
|
|
142
142
|
|
|
143
|
-
// Detection settings
|
|
143
|
+
// Detection settings
|
|
144
144
|
detect_video_ideal_width: 1280,
|
|
145
145
|
detect_video_ideal_height: 720,
|
|
146
146
|
detect_video_mirror: true,
|
|
147
147
|
detect_video_load_timeout: 5000,
|
|
148
|
-
detect_frame_delay: 120,
|
|
149
148
|
|
|
150
149
|
// Collection quality requirements
|
|
151
150
|
collect_min_collect_count: 3, // Collect at least 3 faces
|
|
@@ -159,9 +158,6 @@ const engine = new FaceDetectionEngine({
|
|
|
159
158
|
action_liveness_action_list: [LivenessAction.BLINK, LivenessAction.MOUTH_OPEN, LivenessAction.NOD],
|
|
160
159
|
action_liveness_action_randomize: true,
|
|
161
160
|
action_liveness_verify_timeout: 60000,
|
|
162
|
-
|
|
163
|
-
// Anti-spoofing settings (motion and screen detection use built-in optimized algorithms, usually no adjustment needed)
|
|
164
|
-
motion_liveness_strict_photo_detection: false,
|
|
165
161
|
})
|
|
166
162
|
|
|
167
163
|
// Listen to core events
|
|
@@ -258,7 +254,6 @@ startLivenessDetection()
|
|
|
258
254
|
| `detect_video_ideal_height` | `number` | Video height (pixels) | `720` |
|
|
259
255
|
| `detect_video_mirror` | `boolean` | Horizontally flip video | `true` |
|
|
260
256
|
| `detect_video_load_timeout` | `number` | Load timeout (ms) | `5000` |
|
|
261
|
-
| `detect_frame_delay` | `number` | Delay between frames (ms) | `120` |
|
|
262
257
|
|
|
263
258
|
### Face Collection Quality Requirements
|
|
264
259
|
|
package/README.md
CHANGED
|
@@ -140,12 +140,11 @@ const engine = new FaceDetectionEngine({
|
|
|
140
140
|
tensorflow_wasm_path: '/wasm',
|
|
141
141
|
tensorflow_backend: 'auto',
|
|
142
142
|
|
|
143
|
-
//
|
|
143
|
+
// 检测设置
|
|
144
144
|
detect_video_ideal_width: 1280,
|
|
145
145
|
detect_video_ideal_height: 720,
|
|
146
146
|
detect_video_mirror: true,
|
|
147
147
|
detect_video_load_timeout: 5000,
|
|
148
|
-
detect_frame_delay: 120,
|
|
149
148
|
|
|
150
149
|
// 采集质量要求
|
|
151
150
|
collect_min_collect_count: 3, // 最少采集 3 张人脸
|
|
@@ -159,9 +158,6 @@ const engine = new FaceDetectionEngine({
|
|
|
159
158
|
action_liveness_action_list: [LivenessAction.BLINK, LivenessAction.MOUTH_OPEN, LivenessAction.NOD],
|
|
160
159
|
action_liveness_action_randomize: true,
|
|
161
160
|
action_liveness_verify_timeout: 60000,
|
|
162
|
-
|
|
163
|
-
// 防欺骗设置(运动和屏幕检测使用内置优化算法,通常无需调整)
|
|
164
|
-
motion_liveness_strict_photo_detection: false,
|
|
165
161
|
})
|
|
166
162
|
|
|
167
163
|
// 监听核心事件
|
|
@@ -258,7 +254,6 @@ startLivenessDetection()
|
|
|
258
254
|
| `detect_video_ideal_height` | `number` | 视频高度(像素) | `720` |
|
|
259
255
|
| `detect_video_mirror` | `boolean` | 水平翻转视频 | `true` |
|
|
260
256
|
| `detect_video_load_timeout` | `number` | 加载超时(ms) | `5000` |
|
|
261
|
-
| `detect_frame_delay` | `number` | 帧间延迟(ms) | `120` |
|
|
262
257
|
|
|
263
258
|
### 人脸采集质量要求
|
|
264
259
|
|