Add motion detection before object detection

This commit is contained in:
proitlab committed 2026-07-06 22:55:36 +07:00
1 parent bed242d26c
commit 511d892d3c
6 files changed
+38 -6

No files matched your search

+5
View File
@@ -119,6 +119,11 @@ void AppConfig::load_from_env(const char* env_path) {
if (!ecsv.empty()) export_csv = (ecsv == "true");
cross_csv = get_env("CROSS_CSV", output_dir + "/batch_crossings.csv");
auto mde_s = get_env("MOTION_DETECTION_ENABLED");
motion_detection_enabled = (mde_s == "true");
auto mt_s = get_env("MOTION_THRESHOLD");
if (!mt_s.empty()) motion_threshold = std::stof(mt_s);
auto wf_s = get_env("WARMUP_FRAMES");
if (!wf_s.empty()) warmup_frames = std::stoi(wf_s);
auto rd_s = get_env("RECONNECT_DELAY_SEC");