DriverTrac/config/poc_config.yaml
2025-11-24 18:38:24 +05:30

42 lines
904 B
YAML

# POC Demo Configuration
# Optimized for Raspberry Pi and reliable features only
yolo:
model: "yolov8n.pt"
onnx: "yolov8n.onnx"
confidence_threshold: 0.5
inference_skip: 2 # Process every 2nd frame
face_analysis:
perclos_threshold: 0.3 # Eye closure threshold (0-1)
head_pose_threshold: 25 # Degrees for distraction detection
min_detection_confidence: 0.5
min_tracking_confidence: 0.5
performance:
frame_size: [640, 480] # Width, Height
target_fps: 30
max_queue_size: 2
features:
# Enabled features for POC
drowsiness: true
distraction: true
driver_absent: true
phone_detection: true
vehicle_detection: true
pedestrian_detection: true
# Disabled for POC (not reliable enough)
seatbelt_detection: false
smoking_detection: false
fcw: false
ldw: false
tailgating: false
logging:
level: "INFO"
file: "logs/poc_demo.log"
max_log_entries: 100