无需训练即可在树莓派上实时统计车流,靠几何规则计数。
Data collection from highways: a geometric, class-agnostic approach to embedded vehicle counting

- 用背景差分和阈值提取运动目标,通过虚拟线计数
- 自校准规则在真实场景中达91%准确率,优于追踪基线
- 适合无标注数据、低功耗、隐私敏感的边缘部署
交通数据采集通常依赖深度检测器与跟踪,但常面临缺乏目标类别训练数据的问题。本文提出一种纯几何的感知流水线,适用于单板计算机:通过背景减法与阈值分割识别运动物体,利用虚拟感应线进行计数,不依赖对象模型、训练集或轨迹。该方法在树莓派级别硬件上运行速度超过实时。提出两种计数规则:恒定平均速度规则在高斯速度分布下理论准确率达约86%;自校准预校准规则从斑点统计中恢复车道几何,计数车道占用边沿,额外获得每车平均速度。在四段视频中准确率为83.3%-100%;实地部署中达91%,而基于斑点追踪的基线仅37.5%。详细报告了分辨率下限、帧率下限、短片段与长视频差距,以及Python(100% CPU)与C++(40% CPU,热稳定)的权衡。这些均源于采样几何,仍制约边缘部署。文章主张:在无标注数据、严苛功耗、隐私受限及冷启动阶段,基于运动的类无关检测仍是优选方案。
原文摘要 · Abstract (English)
Traffic data collection is dominated today by deep object detectors followed by tracking-by-detection, a pipeline that presupposes what is often missing in practice: a detector already trained on the class one wants to count. We revisit a purely geometric traffic-sensing pipeline for Single Board Computers in which detection is class-agnostic: moving objects come from background subtraction and thresholding, and counting is decided by a geometric rule on an imaginary line across the road, a software inductive loop detector. With no object model, training set or per-object trajectory, it runs faster than real time on Raspberry Pi class hardware. Two counting rules are described: a constant average speed rule, whose expected accuracy is derived analytically as about 86% under a Gaussian speed distribution, and a self-calibrating pre-calibration rule that recovers the lane geometry from blob statistics and counts edges of lane occupancy, additionally yielding per-vehicle average speed at no extra cost. Over four videos the latter counts with 83.3%-100% accuracy; in a field deployment it reaches 91% against 37.5% for a blob-tracking baseline under the same compute budget. We report the observations of that period in detail: the resolution floor below which accuracy collapses, the frame rate floor at which vehicles alias past the counting line, the gap between short curated clips and long uncontrolled footage, and the trade-off between Python (easier to tune, 100% CPU) and C++ (40% CPU, thermally viable). These are properties of the sampling geometry, not of the hardware of the time, and still constrain edge deployments. We close by arguing where motion-based, class-agnostic detection remains the right tool: open-set classes with no annotated data, tight power budgets, privacy-constrained installations, and the cold start of mining training crops to bootstrap a learned detector.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。