Files
cold_display_guard/config/example.toml

78 lines
1.8 KiB
TOML

camera_id = "1"
timezone = "Asia/Shanghai"
[stream]
rtsp_url = ""
[thresholds]
max_dwell_seconds = 1200
trash_confirmation_seconds = 120
[layout]
zone_count = 4
zone_ids = ["1", "2", "3", "4"]
[[zones]]
id = "1"
label = "区域 1"
polygon = [[0.241988, 0.289459], [0.323741, 0.306900], [0.319817, 0.438286], [0.256377, 0.420845]]
[[zones]]
id = "2"
label = "区域 2"
polygon = [[0.354480, 0.320852], [0.423152, 0.330154], [0.419228, 0.470842], [0.378025, 0.454564], [0.357096, 0.446425]]
[[zones]]
id = "3"
label = "区域 3"
polygon = [[0.545263, 0.400819], [0.587368, 0.417661], [0.554737, 0.500000], [0.509474, 0.483158]]
[[zones]]
id = "4"
label = "区域 4"
polygon = [[0.581255, 0.408928], [0.717971, 0.468544], [0.711092, 0.574018], [0.556320, 0.500645]]
[trash]
roi = [[0.776842, 0.486901], [0.896842, 0.522456], [0.841053, 0.857427], [0.716842, 0.853684]]
[runtime]
sample_stride_pixels = 4
occupancy_mean_delta = 55.0
occupancy_dark_luma_threshold = 80.0
occupancy_dark_fraction = 0.06
occupancy_texture_dark_fraction = 0.04
occupancy_bright_luma_threshold = 220.0
occupancy_bright_reflection_fraction = 0.18
occupancy_reflection_dark_fraction = 0.10
occupancy_reflection_bright_dark_ratio = 2.0
occupancy_confirm_frames = 2
empty_confirm_frames = 2
trash_motion_delta = 18.0
trash_sustained_motion_delta = 8.0
trash_sustained_motion_frames = 2
trash_motion_cooldown_seconds = 3
[event_sink]
path = "logs/events.jsonl"
[case_sink]
path = "logs/cases.jsonl"
[webhook_retry_sink]
path = "logs/webhook_retry.jsonl"
[webhook_delivery_sink]
path = "logs/webhook_delivery.jsonl"
[webhooks]
enabled = false
event_url = ""
case_url = ""
callback_token = ""
connect_timeout_seconds = 3
read_timeout_seconds = 5
retry_backoff_seconds = 30
retry_batch_limit = 20
retry_max_attempts = 5
retry_max_backoff_seconds = 1800