Delete runtime/config.example.yml
Browse files- runtime/config.example.yml +0 -773
runtime/config.example.yml
DELETED
|
@@ -1,773 +0,0 @@
|
|
| 1 |
-
# =============================================================================
|
| 2 |
-
# MBFS Sentinel - Configuration Template
|
| 3 |
-
# =============================================================================
|
| 4 |
-
#
|
| 5 |
-
# Usage:
|
| 6 |
-
# 1. Copy this file to config.yml: cp config.example.yml config.yml
|
| 7 |
-
# 2. Update values to match your environment
|
| 8 |
-
# 3. Restart mbfs-sentinel to apply changes
|
| 9 |
-
#
|
| 10 |
-
# Notes:
|
| 11 |
-
# - All paths can be relative (to the executable) or absolute
|
| 12 |
-
# - Durations use seconds unless noted otherwise
|
| 13 |
-
# - Set 'enabled: true' on any plugin you want to activate
|
| 14 |
-
#
|
| 15 |
-
# =============================================================================
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
# =============================================================================
|
| 19 |
-
# General Settings
|
| 20 |
-
# =============================================================================
|
| 21 |
-
general:
|
| 22 |
-
project_name: MBFS Sentinel # Display name shown in UI and logs
|
| 23 |
-
port: 8003 # HTTP API port (Axum server)
|
| 24 |
-
dev_mode: false # Enable development mode (extra logging, relaxed checks)
|
| 25 |
-
device_id: c9869e48ab4a2341fe4e08587b20d6c402da59ce2e26d934b9d3d6d503e0bd5a # Unique device identifier (from mbfs-mv-core)
|
| 26 |
-
|
| 27 |
-
# =============================================================================
|
| 28 |
-
# Database (PostgreSQL + pgvector)
|
| 29 |
-
# =============================================================================
|
| 30 |
-
database:
|
| 31 |
-
# PostgreSQL connection URL
|
| 32 |
-
# Format: postgresql://user:password@host:port/database?sslmode=disable
|
| 33 |
-
url: "postgresql://root:123123@localhost:5434/dev?sslmode=disable"
|
| 34 |
-
|
| 35 |
-
# Secret key for signing JWT tokens (MUST change in production!)
|
| 36 |
-
secret_key: "secret"
|
| 37 |
-
|
| 38 |
-
# =============================================================================
|
| 39 |
-
# MinIO Storage (S3-compatible object storage)
|
| 40 |
-
# =============================================================================
|
| 41 |
-
# Used for storing face crops, event snapshots, evidence images/videos.
|
| 42 |
-
# Any S3-compatible service can be used (AWS S3, MinIO, etc.)
|
| 43 |
-
# =============================================================================
|
| 44 |
-
minio:
|
| 45 |
-
endpoint: "localhost:9000" # MinIO server host:port
|
| 46 |
-
access_key: "minioadmin" # Access key (username)
|
| 47 |
-
secret_key: "minioadmin" # Secret key (password)
|
| 48 |
-
bucket: "mbfs-sentinel" # Bucket name for all stored objects
|
| 49 |
-
secure: false # Use TLS/SSL connection (true for HTTPS)
|
| 50 |
-
url: http://localhost:9000 # Public-facing URL for generating download links
|
| 51 |
-
|
| 52 |
-
# =============================================================================
|
| 53 |
-
# AI Models
|
| 54 |
-
# =============================================================================
|
| 55 |
-
# Directory and filenames for core ONNX models (face detection & recognition).
|
| 56 |
-
# Plugin-specific models are configured in their respective sections below.
|
| 57 |
-
# =============================================================================
|
| 58 |
-
models:
|
| 59 |
-
dir: './models' # Path to model files directory
|
| 60 |
-
detection_name: "" # Face detection model (RetinaFace)
|
| 61 |
-
recognition_name: "" # Face recognition/embedding model (ArcFace)
|
| 62 |
-
|
| 63 |
-
# =============================================================================
|
| 64 |
-
# Batch Processing
|
| 65 |
-
# =============================================================================
|
| 66 |
-
# Controls how frames are batched before inference to maximize GPU throughput.
|
| 67 |
-
# Larger batches = higher throughput but more latency and VRAM usage.
|
| 68 |
-
# =============================================================================
|
| 69 |
-
batch:
|
| 70 |
-
detection_size: 24 # Face detection batch size (frames per batch)
|
| 71 |
-
recognition_size: 96 # Face recognition batch size (face crops per batch)
|
| 72 |
-
collection_timeout_ms: 100 # Max wait time to fill a batch before processing (ms)
|
| 73 |
-
|
| 74 |
-
# =============================================================================
|
| 75 |
-
# Worker Threads
|
| 76 |
-
# =============================================================================
|
| 77 |
-
workers:
|
| 78 |
-
num_ai: 3 # Number of AI inference worker threads
|
| 79 |
-
upload: 24 # Number of upload worker threads (MinIO/S3)
|
| 80 |
-
|
| 81 |
-
# =============================================================================
|
| 82 |
-
# Face Tracking
|
| 83 |
-
# =============================================================================
|
| 84 |
-
# Settings for tracking detected faces across consecutive frames.
|
| 85 |
-
# Used by face recognition to maintain identity continuity.
|
| 86 |
-
# =============================================================================
|
| 87 |
-
tracking:
|
| 88 |
-
high_confidence_threshold: 0.65 # Min confidence for a high-quality face match
|
| 89 |
-
timeout: 2.0 # Seconds before a tracked face expires (no re-detection)
|
| 90 |
-
similarity: 0.55 # Cosine similarity threshold for re-identification
|
| 91 |
-
log_cooldown: 3.0 # Min seconds between logging the same face identity
|
| 92 |
-
min_detections: 2 # Min detection count before a face is logged as event
|
| 93 |
-
|
| 94 |
-
# =============================================================================
|
| 95 |
-
# Image Upload
|
| 96 |
-
# =============================================================================
|
| 97 |
-
upload:
|
| 98 |
-
queue_max_size: 100 # Max pending uploads in queue (overflow is dropped)
|
| 99 |
-
jpeg_quality: 70 # JPEG compression quality for uploaded images (0-100)
|
| 100 |
-
|
| 101 |
-
# =============================================================================
|
| 102 |
-
# Camera Manager
|
| 103 |
-
# =============================================================================
|
| 104 |
-
# Connection to the external camera management service.
|
| 105 |
-
# Sentinel periodically sends a survival signal to indicate it is alive.
|
| 106 |
-
# =============================================================================
|
| 107 |
-
camera_manager:
|
| 108 |
-
url: http://localhost:8000 # Camera manager API base URL
|
| 109 |
-
survival_signal_interval: 10 # Interval in seconds for survival heartbeat
|
| 110 |
-
|
| 111 |
-
# =============================================================================
|
| 112 |
-
# Core AI Node (Cluster mode)
|
| 113 |
-
# =============================================================================
|
| 114 |
-
# URL of the central AI node when running in distributed/cluster mode.
|
| 115 |
-
# =============================================================================
|
| 116 |
-
core_ai:
|
| 117 |
-
url: http://10.8.0.3:8003
|
| 118 |
-
|
| 119 |
-
# =============================================================================
|
| 120 |
-
# TensorRT Configuration
|
| 121 |
-
# =============================================================================
|
| 122 |
-
# TensorRT engine caching speeds up model loading after first run.
|
| 123 |
-
# Engine files are GPU-specific and will be rebuilt if hardware changes.
|
| 124 |
-
# =============================================================================
|
| 125 |
-
tensorrt:
|
| 126 |
-
enabled: true # false = skip TensorRT, use CUDA (faster startup, slower inference)
|
| 127 |
-
cache_dir: trt_cache # Directory for cached TensorRT engine files
|
| 128 |
-
lib_dir: null # Custom TensorRT library path (null = system default)
|
| 129 |
-
|
| 130 |
-
# =============================================================================
|
| 131 |
-
# License
|
| 132 |
-
# =============================================================================
|
| 133 |
-
license:
|
| 134 |
-
key: '' # License key (obtained from license server)
|
| 135 |
-
active_key: '' # Active license key (set after successful activation)
|
| 136 |
-
|
| 137 |
-
license_server:
|
| 138 |
-
url: https://ai-mv-core.mbfs.com.vn # License server URL
|
| 139 |
-
check_interval_secs: 86400 # License recheck interval (86400 = 24 hours)
|
| 140 |
-
|
| 141 |
-
# =============================================================================
|
| 142 |
-
# Processing Loop
|
| 143 |
-
# =============================================================================
|
| 144 |
-
# Low-level tuning for the frame processing pipeline.
|
| 145 |
-
# Default values work well for most setups. Only adjust if needed.
|
| 146 |
-
# =============================================================================
|
| 147 |
-
processing:
|
| 148 |
-
max_batch_size: 24 # Max frames per processing batch
|
| 149 |
-
loop_sleep_ms: 10 # Sleep between processing loops (ms)
|
| 150 |
-
channel_buffer_size: 256 # Channel buffer for frame pipeline
|
| 151 |
-
face_log_queue_size: 256 # Face event logging queue size
|
| 152 |
-
face_log_workers: 2 # Face event logging worker threads
|
| 153 |
-
dispatch_max_fps: 15 # Default max dispatch rate per pipeline runner (fps).
|
| 154 |
-
# Coordinator drops batches dispatched faster than this
|
| 155 |
-
# to avoid wasting Arc clones + mutex contention on frames
|
| 156 |
-
# the runner can't keep up with. Camera decode rate is
|
| 157 |
-
# capped separately at 15fps in mbfs-camera.
|
| 158 |
-
# Plugins can override per-plugin via manifest.toml:
|
| 159 |
-
# [runtime]
|
| 160 |
-
# max_fps = 8
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
# =============================================================================
|
| 164 |
-
# Plugins - AI Pipeline Configurations
|
| 165 |
-
# =============================================================================
|
| 166 |
-
#
|
| 167 |
-
# Each plugin can be independently enabled/disabled. Common sub-sections:
|
| 168 |
-
#
|
| 169 |
-
# enabled - Whether the plugin is active (true/false)
|
| 170 |
-
# confidence - Min detection confidence threshold (0.0 - 1.0)
|
| 171 |
-
# nms_threshold - Non-Maximum Suppression IoU threshold (0.0 - 1.0)
|
| 172 |
-
#
|
| 173 |
-
# tracking: - ByteTrack multi-object tracker settings
|
| 174 |
-
# enabled - Enable/disable object tracking
|
| 175 |
-
# high_conf_threshold - High confidence detection threshold
|
| 176 |
-
# low_conf_threshold - Low confidence detection threshold
|
| 177 |
-
# confirm_frames - Frames needed to confirm a new track
|
| 178 |
-
# max_lost_frames - Max frames before a lost track is removed
|
| 179 |
-
#
|
| 180 |
-
# alert: - Alert system settings (consecutive detection triggers)
|
| 181 |
-
# consecutive_threshold - Consecutive detections needed to trigger alert
|
| 182 |
-
# max_miss - Max missed frames before resetting alert counter
|
| 183 |
-
# cooldown_secs - Cooldown between alerts for the same object
|
| 184 |
-
#
|
| 185 |
-
# data_lake: - Event storage configuration
|
| 186 |
-
# enabled - Enable event logging
|
| 187 |
-
# bucket_prefix - MinIO bucket prefix for this plugin's events
|
| 188 |
-
# min_count - Min detection count before saving event
|
| 189 |
-
# jpeg_quality - JPEG quality for event snapshots (0-100)
|
| 190 |
-
# queue_size - Event processing queue size
|
| 191 |
-
# workers - Number of event processing workers
|
| 192 |
-
# batch_size - Events per batch write
|
| 193 |
-
# parquet_enabled - Enable Parquet file export
|
| 194 |
-
# parquet_batch_size - Rows per Parquet batch
|
| 195 |
-
# save_json - Save raw JSON alongside Parquet
|
| 196 |
-
# db_enabled - Write events to PostgreSQL
|
| 197 |
-
# db_batch_size - DB insert batch size
|
| 198 |
-
# db_batch_timeout_ms - Max wait before flushing DB batch (ms)
|
| 199 |
-
# db_channel_size - DB write channel buffer size
|
| 200 |
-
# save_crops - Save cropped detection images to MinIO
|
| 201 |
-
# crop_jpeg_quality - JPEG quality for crop images (0-100)
|
| 202 |
-
#
|
| 203 |
-
# dedup: - Deduplication settings (prevent duplicate events)
|
| 204 |
-
# cooldown_seconds - Min seconds between events for same object
|
| 205 |
-
# grid_size - Spatial grid cell size for position-based dedup
|
| 206 |
-
# high_confidence_threshold - Confidence above which dedup is stricter
|
| 207 |
-
# significant_count_threshold - Detection count to consider object significant
|
| 208 |
-
# max_tracked_per_camera - Max tracked objects per camera for dedup
|
| 209 |
-
#
|
| 210 |
-
# =============================================================================
|
| 211 |
-
plugins:
|
| 212 |
-
|
| 213 |
-
# ---------------------------------------------------------------------------
|
| 214 |
-
# Shared Models
|
| 215 |
-
# ---------------------------------------------------------------------------
|
| 216 |
-
# Model files referenced by multiple plugins. Avoids duplicating filenames.
|
| 217 |
-
# These are loaded once and shared across plugins that need them.
|
| 218 |
-
# ---------------------------------------------------------------------------
|
| 219 |
-
shared_models:
|
| 220 |
-
detection_model: det_10g_fp16_dynamic.onnx.enc # Face detection (RetinaFace)
|
| 221 |
-
recognition_model: mbfs_rec_vit_b_v3.onnx.enc # Face recognition (ViT)
|
| 222 |
-
human_detection_model: mbfs_human_det_v4.onnx # Human/person detection (YOLO)
|
| 223 |
-
helmet_model: helmet_dt_v10.onnx # Helmet detection
|
| 224 |
-
lpr_detection_model: lp_detection_v4.onnx # License plate detection
|
| 225 |
-
lpr_ocr_model: mbfs_ocr_license_plate_b16_v5.onnx # License plate OCR
|
| 226 |
-
vehicle_model: yolov8_coco.onnx # Vehicle detection (COCO classes)
|
| 227 |
-
|
| 228 |
-
# ---------------------------------------------------------------------------
|
| 229 |
-
# Face Recognition (builtin)
|
| 230 |
-
# ---------------------------------------------------------------------------
|
| 231 |
-
# Detects faces, extracts embeddings, and matches against enrolled identities.
|
| 232 |
-
# Requires: detection_model + recognition_model from shared_models.
|
| 233 |
-
# ---------------------------------------------------------------------------
|
| 234 |
-
face_recognition:
|
| 235 |
-
enabled: false
|
| 236 |
-
min_detection_score: 0.7 # Min face detection confidence
|
| 237 |
-
min_size: 32 # Min face size in pixels (width or height)
|
| 238 |
-
min_ratio: 0.0001 # Min face area ratio relative to frame
|
| 239 |
-
unknown_min_score: 0.50 # Min score to classify as "unknown" (below = discard)
|
| 240 |
-
enrollment_min_detection_score: 0.7 # Stricter detection threshold for face enrollment
|
| 241 |
-
enrollment_min_size: 100 # Min face size for enrollment (px)
|
| 242 |
-
enrollment_max_angle: 15.0 # Max yaw/pitch angle for enrollment (degrees)
|
| 243 |
-
data_lake:
|
| 244 |
-
enabled: true
|
| 245 |
-
bucket_prefix: face-recognition-events
|
| 246 |
-
min_count: 1
|
| 247 |
-
jpeg_quality: 85
|
| 248 |
-
queue_size: 512
|
| 249 |
-
workers: 1
|
| 250 |
-
batch_size: 16
|
| 251 |
-
parquet_enabled: true
|
| 252 |
-
parquet_batch_size: 1000
|
| 253 |
-
save_json: false
|
| 254 |
-
db_enabled: true
|
| 255 |
-
db_batch_size: 32
|
| 256 |
-
db_batch_timeout_ms: 100
|
| 257 |
-
db_channel_size: 512
|
| 258 |
-
save_crops: true
|
| 259 |
-
crop_jpeg_quality: 90
|
| 260 |
-
dedup:
|
| 261 |
-
cooldown_seconds: 5.0
|
| 262 |
-
grid_size: 100.0
|
| 263 |
-
high_confidence_threshold: 0.65
|
| 264 |
-
significant_count_threshold: 3
|
| 265 |
-
max_tracked_per_camera: 50
|
| 266 |
-
|
| 267 |
-
# ===========================================================================
|
| 268 |
-
# Dynamic Plugins
|
| 269 |
-
# ===========================================================================
|
| 270 |
-
# Plugins loaded at runtime from DLLs in the plugins/ directory.
|
| 271 |
-
# Each plugin has a manifest.toml defining its models and capabilities.
|
| 272 |
-
# Config values here override manifest defaults.
|
| 273 |
-
# ===========================================================================
|
| 274 |
-
dynamic_plugins:
|
| 275 |
-
|
| 276 |
-
# -------------------------------------------------------------------------
|
| 277 |
-
# Human Detection
|
| 278 |
-
# -------------------------------------------------------------------------
|
| 279 |
-
# Detects humans/persons in the frame. Foundation for many other plugins.
|
| 280 |
-
# Model: human_detection_model from shared_models.
|
| 281 |
-
# -------------------------------------------------------------------------
|
| 282 |
-
human_detection:
|
| 283 |
-
enabled: false
|
| 284 |
-
confidence: 0.75
|
| 285 |
-
nms_threshold: 0.45
|
| 286 |
-
alert:
|
| 287 |
-
consecutive_threshold: 5
|
| 288 |
-
max_miss: 2
|
| 289 |
-
cooldown_secs: 10.0
|
| 290 |
-
tracking:
|
| 291 |
-
enabled: true
|
| 292 |
-
high_conf_threshold: 0.5
|
| 293 |
-
low_conf_threshold: 0.1
|
| 294 |
-
confirm_frames: 3
|
| 295 |
-
max_lost_frames: 30
|
| 296 |
-
data_lake:
|
| 297 |
-
enabled: true
|
| 298 |
-
bucket_prefix: human-detection-events
|
| 299 |
-
min_count: 1
|
| 300 |
-
jpeg_quality: 85
|
| 301 |
-
queue_size: 512
|
| 302 |
-
workers: 2
|
| 303 |
-
batch_size: 16
|
| 304 |
-
parquet_enabled: true
|
| 305 |
-
parquet_batch_size: 1000
|
| 306 |
-
save_json: false
|
| 307 |
-
db_enabled: true
|
| 308 |
-
db_batch_size: 16
|
| 309 |
-
db_batch_timeout_ms: 100
|
| 310 |
-
db_channel_size: 256
|
| 311 |
-
save_crops: true
|
| 312 |
-
crop_jpeg_quality: 90
|
| 313 |
-
dedup:
|
| 314 |
-
cooldown_seconds: 3.0
|
| 315 |
-
grid_size: 100.0
|
| 316 |
-
high_confidence_threshold: 0.75
|
| 317 |
-
significant_count_threshold: 5
|
| 318 |
-
max_tracked_per_camera: 50
|
| 319 |
-
|
| 320 |
-
# -------------------------------------------------------------------------
|
| 321 |
-
# Facial Expression Recognition
|
| 322 |
-
# -------------------------------------------------------------------------
|
| 323 |
-
# Classifies facial expressions (happy, sad, angry, surprised, etc.).
|
| 324 |
-
# Two-stage: face detection -> expression classification.
|
| 325 |
-
# -------------------------------------------------------------------------
|
| 326 |
-
facial_expression:
|
| 327 |
-
enabled: false
|
| 328 |
-
confidence: 0.5
|
| 329 |
-
nms_threshold: 0.45
|
| 330 |
-
alert:
|
| 331 |
-
consecutive_threshold: 5
|
| 332 |
-
max_miss: 2
|
| 333 |
-
cooldown_secs: 10.0
|
| 334 |
-
tracking:
|
| 335 |
-
enabled: true
|
| 336 |
-
high_conf_threshold: 0.5
|
| 337 |
-
low_conf_threshold: 0.1
|
| 338 |
-
confirm_frames: 3
|
| 339 |
-
max_lost_frames: 30
|
| 340 |
-
data_lake:
|
| 341 |
-
enabled: true
|
| 342 |
-
bucket_prefix: facial-expression-events
|
| 343 |
-
min_count: 1
|
| 344 |
-
jpeg_quality: 85
|
| 345 |
-
queue_size: 512
|
| 346 |
-
workers: 2
|
| 347 |
-
batch_size: 16
|
| 348 |
-
parquet_enabled: true
|
| 349 |
-
parquet_batch_size: 1000
|
| 350 |
-
save_json: false
|
| 351 |
-
db_enabled: true
|
| 352 |
-
db_batch_size: 16
|
| 353 |
-
db_batch_timeout_ms: 100
|
| 354 |
-
db_channel_size: 256
|
| 355 |
-
save_crops: true
|
| 356 |
-
crop_jpeg_quality: 90
|
| 357 |
-
dedup:
|
| 358 |
-
cooldown_seconds: 3.0
|
| 359 |
-
grid_size: 100.0
|
| 360 |
-
high_confidence_threshold: 0.75
|
| 361 |
-
significant_count_threshold: 5
|
| 362 |
-
max_tracked_per_camera: 50
|
| 363 |
-
|
| 364 |
-
# -------------------------------------------------------------------------
|
| 365 |
-
# Object Detection (General)
|
| 366 |
-
# -------------------------------------------------------------------------
|
| 367 |
-
# General-purpose object detection using COCO or custom classes.
|
| 368 |
-
# Useful for counting/tracking arbitrary object types.
|
| 369 |
-
# -------------------------------------------------------------------------
|
| 370 |
-
object_detection:
|
| 371 |
-
enabled: false
|
| 372 |
-
confidence: 0.75
|
| 373 |
-
nms_threshold: 0.45
|
| 374 |
-
tracking:
|
| 375 |
-
enabled: true
|
| 376 |
-
high_conf_threshold: 0.5
|
| 377 |
-
low_conf_threshold: 0.1
|
| 378 |
-
confirm_frames: 3
|
| 379 |
-
max_lost_frames: 30
|
| 380 |
-
data_lake:
|
| 381 |
-
enabled: true
|
| 382 |
-
bucket_prefix: object-detection-events
|
| 383 |
-
min_count: 1
|
| 384 |
-
jpeg_quality: 85
|
| 385 |
-
queue_size: 512
|
| 386 |
-
workers: 2
|
| 387 |
-
batch_size: 16
|
| 388 |
-
parquet_enabled: true
|
| 389 |
-
parquet_batch_size: 1000
|
| 390 |
-
save_json: false
|
| 391 |
-
db_enabled: true
|
| 392 |
-
db_batch_size: 16
|
| 393 |
-
db_batch_timeout_ms: 100
|
| 394 |
-
db_channel_size: 256
|
| 395 |
-
save_crops: true
|
| 396 |
-
crop_jpeg_quality: 90
|
| 397 |
-
dedup:
|
| 398 |
-
cooldown_seconds: 3.0
|
| 399 |
-
grid_size: 100.0
|
| 400 |
-
high_confidence_threshold: 0.75
|
| 401 |
-
significant_count_threshold: 5
|
| 402 |
-
max_tracked_per_camera: 50
|
| 403 |
-
|
| 404 |
-
# -------------------------------------------------------------------------
|
| 405 |
-
# Smoke & Fire Detection
|
| 406 |
-
# -------------------------------------------------------------------------
|
| 407 |
-
# Detects smoke and fire in the frame. Triggers alerts when detected
|
| 408 |
-
# consecutively to reduce false positives.
|
| 409 |
-
# -------------------------------------------------------------------------
|
| 410 |
-
smoke_fire_detection:
|
| 411 |
-
enabled: false
|
| 412 |
-
confidence: 0.75
|
| 413 |
-
alert:
|
| 414 |
-
consecutive_threshold: 5 # Consecutive detections to trigger alert
|
| 415 |
-
max_miss: 2 # Max missed frames before reset
|
| 416 |
-
cooldown_secs: 10.0 # Alert cooldown (seconds)
|
| 417 |
-
data_lake:
|
| 418 |
-
enabled: true
|
| 419 |
-
bucket_prefix: smoke-fire-detection-events
|
| 420 |
-
min_count: 1
|
| 421 |
-
jpeg_quality: 85
|
| 422 |
-
queue_size: 512
|
| 423 |
-
workers: 2
|
| 424 |
-
batch_size: 16
|
| 425 |
-
parquet_enabled: true
|
| 426 |
-
parquet_batch_size: 1000
|
| 427 |
-
save_json: false
|
| 428 |
-
db_enabled: true
|
| 429 |
-
db_batch_size: 16
|
| 430 |
-
db_batch_timeout_ms: 100
|
| 431 |
-
db_channel_size: 256
|
| 432 |
-
save_crops: true
|
| 433 |
-
crop_jpeg_quality: 90
|
| 434 |
-
dedup:
|
| 435 |
-
cooldown_seconds: 3.0
|
| 436 |
-
grid_size: 100.0
|
| 437 |
-
high_confidence_threshold: 0.75
|
| 438 |
-
significant_count_threshold: 5
|
| 439 |
-
max_tracked_per_camera: 50
|
| 440 |
-
|
| 441 |
-
# -------------------------------------------------------------------------
|
| 442 |
-
# Behavior Detection
|
| 443 |
-
# -------------------------------------------------------------------------
|
| 444 |
-
# Detects abnormal behaviors (loitering, falling, running, etc.).
|
| 445 |
-
# Uses human detection + tracking to analyze movement patterns.
|
| 446 |
-
# -------------------------------------------------------------------------
|
| 447 |
-
behavior_detection:
|
| 448 |
-
enabled: false
|
| 449 |
-
confidence: 0.75
|
| 450 |
-
tracking:
|
| 451 |
-
enabled: true
|
| 452 |
-
high_conf_threshold: 0.5
|
| 453 |
-
low_conf_threshold: 0.1
|
| 454 |
-
confirm_frames: 5 # Higher confirm frames for behavior analysis
|
| 455 |
-
max_lost_frames: 30
|
| 456 |
-
data_lake:
|
| 457 |
-
enabled: true
|
| 458 |
-
bucket_prefix: behavior-detection-events
|
| 459 |
-
min_count: 1
|
| 460 |
-
jpeg_quality: 85
|
| 461 |
-
queue_size: 512
|
| 462 |
-
workers: 2
|
| 463 |
-
batch_size: 16
|
| 464 |
-
parquet_enabled: true
|
| 465 |
-
parquet_batch_size: 1000
|
| 466 |
-
save_json: false
|
| 467 |
-
db_enabled: true
|
| 468 |
-
db_batch_size: 16
|
| 469 |
-
db_batch_timeout_ms: 100
|
| 470 |
-
db_channel_size: 256
|
| 471 |
-
save_crops: true
|
| 472 |
-
crop_jpeg_quality: 90
|
| 473 |
-
dedup:
|
| 474 |
-
cooldown_seconds: 3.0
|
| 475 |
-
grid_size: 100.0
|
| 476 |
-
high_confidence_threshold: 0.75
|
| 477 |
-
significant_count_threshold: 5
|
| 478 |
-
max_tracked_per_camera: 50
|
| 479 |
-
|
| 480 |
-
# -------------------------------------------------------------------------
|
| 481 |
-
# Helmet Detection
|
| 482 |
-
# -------------------------------------------------------------------------
|
| 483 |
-
# Detects whether people are wearing safety helmets (construction sites, etc.).
|
| 484 |
-
# Triggers alerts for "no helmet" detections.
|
| 485 |
-
# -------------------------------------------------------------------------
|
| 486 |
-
helmet_detection:
|
| 487 |
-
enabled: false
|
| 488 |
-
confidence: 0.75
|
| 489 |
-
alert:
|
| 490 |
-
consecutive_threshold: 5
|
| 491 |
-
max_miss: 2
|
| 492 |
-
cooldown_secs: 10.0
|
| 493 |
-
tracking:
|
| 494 |
-
enabled: true
|
| 495 |
-
high_conf_threshold: 0.5
|
| 496 |
-
low_conf_threshold: 0.1
|
| 497 |
-
confirm_frames: 3
|
| 498 |
-
max_lost_frames: 30
|
| 499 |
-
data_lake:
|
| 500 |
-
enabled: true
|
| 501 |
-
bucket_prefix: helmet-detection-events
|
| 502 |
-
min_count: 1
|
| 503 |
-
jpeg_quality: 85
|
| 504 |
-
queue_size: 512
|
| 505 |
-
workers: 2
|
| 506 |
-
batch_size: 16
|
| 507 |
-
parquet_enabled: true
|
| 508 |
-
parquet_batch_size: 1000
|
| 509 |
-
save_json: false
|
| 510 |
-
db_enabled: true
|
| 511 |
-
db_batch_size: 16
|
| 512 |
-
db_batch_timeout_ms: 100
|
| 513 |
-
db_channel_size: 256
|
| 514 |
-
save_crops: true
|
| 515 |
-
crop_jpeg_quality: 90
|
| 516 |
-
dedup:
|
| 517 |
-
cooldown_seconds: 3.0
|
| 518 |
-
grid_size: 100.0
|
| 519 |
-
high_confidence_threshold: 0.75
|
| 520 |
-
significant_count_threshold: 5
|
| 521 |
-
max_tracked_per_camera: 50
|
| 522 |
-
|
| 523 |
-
# -------------------------------------------------------------------------
|
| 524 |
-
# Weapon Detection
|
| 525 |
-
# -------------------------------------------------------------------------
|
| 526 |
-
# Detects weapons (guns, knives, etc.) in the frame.
|
| 527 |
-
# Lower confidence threshold and shorter cooldown for safety-critical alerts.
|
| 528 |
-
# -------------------------------------------------------------------------
|
| 529 |
-
weapon_detection:
|
| 530 |
-
enabled: false
|
| 531 |
-
confidence: 0.5 # Lower threshold for safety-critical detection
|
| 532 |
-
nms_threshold: 0.45
|
| 533 |
-
alert:
|
| 534 |
-
consecutive_threshold: 5
|
| 535 |
-
max_miss: 2
|
| 536 |
-
cooldown_secs: 5.0 # Shorter cooldown for urgent alerts
|
| 537 |
-
tracking:
|
| 538 |
-
enabled: true
|
| 539 |
-
high_conf_threshold: 0.5
|
| 540 |
-
low_conf_threshold: 0.1
|
| 541 |
-
confirm_frames: 3
|
| 542 |
-
max_lost_frames: 30
|
| 543 |
-
data_lake:
|
| 544 |
-
enabled: true
|
| 545 |
-
bucket_prefix: weapon-detection-events
|
| 546 |
-
min_count: 1
|
| 547 |
-
jpeg_quality: 85
|
| 548 |
-
queue_size: 512
|
| 549 |
-
workers: 2
|
| 550 |
-
batch_size: 16
|
| 551 |
-
parquet_enabled: true
|
| 552 |
-
parquet_batch_size: 1000
|
| 553 |
-
save_json: false
|
| 554 |
-
db_enabled: true
|
| 555 |
-
db_batch_size: 16
|
| 556 |
-
db_batch_timeout_ms: 100
|
| 557 |
-
db_channel_size: 256
|
| 558 |
-
save_crops: true
|
| 559 |
-
crop_jpeg_quality: 90
|
| 560 |
-
dedup:
|
| 561 |
-
cooldown_seconds: 5.0 # Longer dedup for weapon events
|
| 562 |
-
grid_size: 100.0
|
| 563 |
-
high_confidence_threshold: 0.75
|
| 564 |
-
significant_count_threshold: 5
|
| 565 |
-
max_tracked_per_camera: 50
|
| 566 |
-
|
| 567 |
-
# -------------------------------------------------------------------------
|
| 568 |
-
# Phone Usage Detection
|
| 569 |
-
# -------------------------------------------------------------------------
|
| 570 |
-
# Two-stage: detect humans -> crop -> classify phone usage.
|
| 571 |
-
# Higher confidence threshold to reduce false positives on small objects.
|
| 572 |
-
# -------------------------------------------------------------------------
|
| 573 |
-
phone_usage_detection:
|
| 574 |
-
enabled: false
|
| 575 |
-
confidence: 0.8 # Higher threshold (small object, prone to FP)
|
| 576 |
-
nms_threshold: 0.45
|
| 577 |
-
crop_padding: 0.1 # Extra padding around human crop for context
|
| 578 |
-
alert:
|
| 579 |
-
consecutive_threshold: 5
|
| 580 |
-
max_miss: 2
|
| 581 |
-
cooldown_secs: 5.0
|
| 582 |
-
tracking:
|
| 583 |
-
enabled: true
|
| 584 |
-
high_conf_threshold: 0.5
|
| 585 |
-
low_conf_threshold: 0.1
|
| 586 |
-
confirm_frames: 3
|
| 587 |
-
max_lost_frames: 30
|
| 588 |
-
data_lake:
|
| 589 |
-
enabled: true
|
| 590 |
-
bucket_prefix: phone-usage-detection-events
|
| 591 |
-
min_count: 1
|
| 592 |
-
jpeg_quality: 85
|
| 593 |
-
queue_size: 512
|
| 594 |
-
workers: 2
|
| 595 |
-
batch_size: 16
|
| 596 |
-
parquet_enabled: true
|
| 597 |
-
parquet_batch_size: 1000
|
| 598 |
-
save_json: false
|
| 599 |
-
db_enabled: true
|
| 600 |
-
db_batch_size: 16
|
| 601 |
-
db_batch_timeout_ms: 100
|
| 602 |
-
db_channel_size: 256
|
| 603 |
-
save_crops: true
|
| 604 |
-
crop_jpeg_quality: 90
|
| 605 |
-
dedup:
|
| 606 |
-
cooldown_seconds: 30.0 # Longer cooldown to avoid spam
|
| 607 |
-
grid_size: 100.0
|
| 608 |
-
high_confidence_threshold: 0.75
|
| 609 |
-
significant_count_threshold: 5
|
| 610 |
-
max_tracked_per_camera: 50
|
| 611 |
-
|
| 612 |
-
# -------------------------------------------------------------------------
|
| 613 |
-
# Fight Detection
|
| 614 |
-
# -------------------------------------------------------------------------
|
| 615 |
-
# Detects physical fights/altercations between people.
|
| 616 |
-
# Uses pose or interaction analysis on tracked humans.
|
| 617 |
-
# -------------------------------------------------------------------------
|
| 618 |
-
fight_detection:
|
| 619 |
-
enabled: false
|
| 620 |
-
confidence: 0.5
|
| 621 |
-
nms_threshold: 0.45
|
| 622 |
-
alert:
|
| 623 |
-
consecutive_threshold: 5
|
| 624 |
-
max_miss: 2
|
| 625 |
-
cooldown_secs: 5.0
|
| 626 |
-
tracking:
|
| 627 |
-
enabled: true
|
| 628 |
-
high_conf_threshold: 0.5
|
| 629 |
-
low_conf_threshold: 0.1
|
| 630 |
-
confirm_frames: 3
|
| 631 |
-
max_lost_frames: 30
|
| 632 |
-
data_lake:
|
| 633 |
-
enabled: true
|
| 634 |
-
bucket_prefix: fight-detection-events
|
| 635 |
-
min_count: 1
|
| 636 |
-
jpeg_quality: 85
|
| 637 |
-
queue_size: 512
|
| 638 |
-
workers: 2
|
| 639 |
-
batch_size: 16
|
| 640 |
-
parquet_enabled: true
|
| 641 |
-
parquet_batch_size: 1000
|
| 642 |
-
save_json: false
|
| 643 |
-
db_enabled: true
|
| 644 |
-
db_batch_size: 16
|
| 645 |
-
db_batch_timeout_ms: 100
|
| 646 |
-
db_channel_size: 256
|
| 647 |
-
save_crops: true
|
| 648 |
-
crop_jpeg_quality: 90
|
| 649 |
-
dedup:
|
| 650 |
-
cooldown_seconds: 3.0
|
| 651 |
-
grid_size: 100.0
|
| 652 |
-
high_confidence_threshold: 0.75
|
| 653 |
-
significant_count_threshold: 5
|
| 654 |
-
max_tracked_per_camera: 50
|
| 655 |
-
|
| 656 |
-
# -------------------------------------------------------------------------
|
| 657 |
-
# People Counting (migrated from builtin to dynamic plugin)
|
| 658 |
-
# -------------------------------------------------------------------------
|
| 659 |
-
people_counting:
|
| 660 |
-
enabled: false
|
| 661 |
-
confidence: 0.25
|
| 662 |
-
nms_threshold: 0.45
|
| 663 |
-
tracking:
|
| 664 |
-
enabled: true
|
| 665 |
-
high_conf_threshold: 0.5
|
| 666 |
-
low_conf_threshold: 0.1
|
| 667 |
-
confirm_frames: 3
|
| 668 |
-
max_lost_frames: 30
|
| 669 |
-
data_lake:
|
| 670 |
-
enabled: true
|
| 671 |
-
bucket_prefix: people-counting-events
|
| 672 |
-
min_count: 1
|
| 673 |
-
jpeg_quality: 85
|
| 674 |
-
queue_size: 512
|
| 675 |
-
workers: 2
|
| 676 |
-
batch_size: 16
|
| 677 |
-
parquet_enabled: true
|
| 678 |
-
parquet_batch_size: 1000
|
| 679 |
-
save_json: false
|
| 680 |
-
db_enabled: true
|
| 681 |
-
db_batch_size: 16
|
| 682 |
-
db_batch_timeout_ms: 100
|
| 683 |
-
db_channel_size: 256
|
| 684 |
-
save_crops: true
|
| 685 |
-
crop_jpeg_quality: 90
|
| 686 |
-
dedup:
|
| 687 |
-
cooldown_seconds: 3.0
|
| 688 |
-
grid_size: 100.0
|
| 689 |
-
high_confidence_threshold: 0.75
|
| 690 |
-
significant_count_threshold: 5
|
| 691 |
-
max_tracked_per_camera: 50
|
| 692 |
-
|
| 693 |
-
# -------------------------------------------------------------------------
|
| 694 |
-
# License Plate Recognition (migrated from builtin to dynamic plugin)
|
| 695 |
-
# -------------------------------------------------------------------------
|
| 696 |
-
license_plate_recognition:
|
| 697 |
-
enabled: false
|
| 698 |
-
confidence: 0.5
|
| 699 |
-
nms_threshold: 0.45
|
| 700 |
-
tracking:
|
| 701 |
-
enabled: true
|
| 702 |
-
high_conf_threshold: 0.5
|
| 703 |
-
low_conf_threshold: 0.1
|
| 704 |
-
confirm_frames: 2
|
| 705 |
-
max_lost_frames: 15
|
| 706 |
-
data_lake:
|
| 707 |
-
enabled: true
|
| 708 |
-
bucket_prefix: license-plate-recognition-events
|
| 709 |
-
min_count: 1
|
| 710 |
-
jpeg_quality: 85
|
| 711 |
-
queue_size: 512
|
| 712 |
-
workers: 2
|
| 713 |
-
batch_size: 16
|
| 714 |
-
parquet_enabled: true
|
| 715 |
-
parquet_batch_size: 1000
|
| 716 |
-
save_json: false
|
| 717 |
-
db_enabled: true
|
| 718 |
-
db_batch_size: 16
|
| 719 |
-
db_batch_timeout_ms: 100
|
| 720 |
-
db_channel_size: 256
|
| 721 |
-
save_crops: true
|
| 722 |
-
crop_jpeg_quality: 90
|
| 723 |
-
dedup:
|
| 724 |
-
cooldown_seconds: 10.0
|
| 725 |
-
grid_size: 100.0
|
| 726 |
-
high_confidence_threshold: 0.75
|
| 727 |
-
significant_count_threshold: 5
|
| 728 |
-
max_tracked_per_camera: 50
|
| 729 |
-
|
| 730 |
-
# -------------------------------------------------------------------------
|
| 731 |
-
# Traffic Violation Detection (migrated from builtin to dynamic plugin)
|
| 732 |
-
# -------------------------------------------------------------------------
|
| 733 |
-
traffic_violation_detection:
|
| 734 |
-
enabled: false
|
| 735 |
-
confidence: 0.5
|
| 736 |
-
nms_threshold: 0.45
|
| 737 |
-
tracking:
|
| 738 |
-
enabled: true
|
| 739 |
-
high_conf_threshold: 0.5
|
| 740 |
-
low_conf_threshold: 0.1
|
| 741 |
-
confirm_frames: 3
|
| 742 |
-
max_lost_frames: 30
|
| 743 |
-
data_lake:
|
| 744 |
-
enabled: true
|
| 745 |
-
bucket_prefix: traffic-violation-events
|
| 746 |
-
min_count: 1
|
| 747 |
-
jpeg_quality: 85
|
| 748 |
-
queue_size: 512
|
| 749 |
-
workers: 2
|
| 750 |
-
batch_size: 16
|
| 751 |
-
parquet_enabled: true
|
| 752 |
-
parquet_batch_size: 1000
|
| 753 |
-
save_json: false
|
| 754 |
-
db_enabled: true
|
| 755 |
-
db_batch_size: 16
|
| 756 |
-
db_batch_timeout_ms: 100
|
| 757 |
-
db_channel_size: 256
|
| 758 |
-
save_crops: true
|
| 759 |
-
crop_jpeg_quality: 90
|
| 760 |
-
dedup:
|
| 761 |
-
cooldown_seconds: 3.0
|
| 762 |
-
grid_size: 100.0
|
| 763 |
-
high_confidence_threshold: 0.75
|
| 764 |
-
significant_count_threshold: 5
|
| 765 |
-
max_tracked_per_camera: 50
|
| 766 |
-
|
| 767 |
-
# =============================================================================
|
| 768 |
-
# Logging
|
| 769 |
-
# =============================================================================
|
| 770 |
-
logging:
|
| 771 |
-
enabled: true
|
| 772 |
-
dir: logs # Log files directory (relative to executable)
|
| 773 |
-
max_days: 7 # Auto-cleanup logs older than N days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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