Spaces:
Sleeping
Sleeping
Update core/config.py
Browse files- core/config.py +6 -7
core/config.py
CHANGED
|
@@ -1,18 +1,17 @@
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
# AI Configuration - Smart Consensus Engine
|
| 4 |
-
DETECTOR = "
|
| 5 |
-
MODELS = ["
|
| 6 |
THRESHOLDS = {
|
| 7 |
-
"ArcFace": 0.65, # Standard High Security
|
| 8 |
"Facenet512": 0.40 # Standard High Security
|
| 9 |
}
|
| 10 |
|
| 11 |
-
# The absolute gate:
|
| 12 |
-
REQUIRED_AVERAGE_CONFIDENCE =
|
| 13 |
|
| 14 |
-
# Advanced Quality Gate (
|
| 15 |
-
MIN_FACE_AREA =
|
| 16 |
|
| 17 |
# Application Configuration
|
| 18 |
COOL_DOWN_SEC = 5
|
|
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
# AI Configuration - Smart Consensus Engine
|
| 4 |
+
DETECTOR = "mediapipe" # FASTEST for real-time webcams
|
| 5 |
+
MODELS = ["Facenet512"] # DEEPEST single model (512-dimensional vector)
|
| 6 |
THRESHOLDS = {
|
|
|
|
| 7 |
"Facenet512": 0.40 # Standard High Security
|
| 8 |
}
|
| 9 |
|
| 10 |
+
# The absolute gate: Confidence must be > 70%
|
| 11 |
+
REQUIRED_AVERAGE_CONFIDENCE = 70.0
|
| 12 |
|
| 13 |
+
# Advanced Quality Gate (Optimized for 480p)
|
| 14 |
+
MIN_FACE_AREA = 5000 # Adjusted for 640x480 frame size
|
| 15 |
|
| 16 |
# Application Configuration
|
| 17 |
COOL_DOWN_SEC = 5
|