- Updated argument parsing in manage_api.py to include new threshold parameters. - Enhanced _config_payload to include thresholds and webhook configurations. - Modified _build_summary to track queue metrics and adjust alert reporting. - Refactored DwellEngine to utilize queue thresholds for alerting and reporting. - Added queue metrics calculations and status change tracking in dwell_engine.py. - Updated notifier.py to support posting JSON events to webhooks. - Adjusted example configuration to reflect new threshold parameters. - Enhanced Docker entrypoint script for better process management. - Updated tests to cover new queue metrics and thresholds. - Improved ManagedServiceDetail and ManagedServices Vue components to display queue metrics.
53 lines
1.0 KiB
YAML
53 lines
1.0 KiB
YAML
yolo:
|
|
model_path: "yolo11n.pt"
|
|
tracker: "botsort.yaml"
|
|
conf: 0.35
|
|
iou: 0.5
|
|
imgsz: 1280
|
|
device: "cuda:0"
|
|
|
|
counting:
|
|
line: [0.1, 0.55, 0.9, 0.55]
|
|
line_mode: "normalized"
|
|
crossing_tolerance: 12.0
|
|
|
|
attributes:
|
|
enabled: true
|
|
sample_every_n_frames: 12
|
|
max_samples_per_track: 5
|
|
min_person_box_width: 80
|
|
min_person_box_height: 160
|
|
person_crop_padding: 0.15
|
|
detector_backend: "retinaface"
|
|
enforce_detection: false
|
|
|
|
output:
|
|
save_video: true
|
|
save_json: true
|
|
save_csv: true
|
|
draw_boxes: true
|
|
draw_labels: true
|
|
|
|
rtsp:
|
|
sample_interval_seconds: 1.0
|
|
window_seconds: 1800
|
|
reconnect_delay_seconds: 5.0
|
|
stream_open_timeout_seconds: 10.0
|
|
idle_sleep_seconds: 0.05
|
|
output_subdir: "rtsp_stream"
|
|
|
|
queue:
|
|
enabled: true
|
|
area: [0.0, 0.0, 1.0, 1.0]
|
|
area_mode: "normalized"
|
|
queue_time_threshold_seconds: 300
|
|
crowded_count_threshold: 5
|
|
normal_count_threshold: 2
|
|
pause_timeout_seconds: 5
|
|
source_id: "people_flow_queue"
|
|
|
|
webhook:
|
|
url: ""
|
|
timeout_seconds: 5.0
|
|
event_log_path: "outputs/rtsp_stream/webhook_events.jsonl"
|