A traffic flow detection algorithm based on line detection is implemented, firstly, moving targets are detected by using background subtraction method. Then binary image is obtained after binarizafion, pixels of a line are extracted from the binary image. A new data processing algorithms is used for data processing, Finally, the count of traffic on each traffic lane is got. This algorithm is simple and easy to implement, the results indicate the proposed method is efficient, high-detection-rate and robust.%实现了一种基于线检测的车流量检测算法,首先利用背景消减法检测出运动目标.然后经过二值化处理得到二值图像,在二值图像上采集一条线上的像素点,然后利用新的数据处理算法对数据进行处理,最后统计出每条车道上的流量.算法简单,易于实现,结果证明此算法检测精度高且算法实时性好,具有较好的鲁棒性.
展开▼