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

+7
View File
@@ -110,6 +110,13 @@ EXPORT_CSV=true
CROSS_CSV=/opt/batch-counter/batch_crossings.csv
# --- Rate / performance ---
# Enable motion detection pre-filter: skip inference on frames with no movement
# (true/false, default: false). When enabled, frames below MOTION_THRESHOLD are
# skipped, saving NPU/CPU load.
MOTION_DETECTION_ENABLED=false
# Mean absolute pixel difference threshold (0–255) to consider a frame as having
# motion. Lower = more sensitive. Default 5.0.
MOTION_THRESHOLD=5.0
# Sliding window in seconds for computing the crossing rate (objects/minute)
RATE_WINDOW_SEC=60
# Number of frames to discard at startup to let the stream buffer stabilise