| Video detection system can collect traffic information data on real-time. Because it has some unique advantages such as easy installation and maintenance and the area of testing is wide, video detection system has become to mainstream technique of the field of vehicle detection. At present, there are several classical algorithms for video detection system. Among them, the background subtraction method is an effective way to detect moving targets. This method get moving foreground through the current frame minus the background frame. The quality of test performance depends on background modeling.The background modeling of the video detection system is used as study object in this paper. Background modeling of highway and its hardware was studied. The prototype of background modeling system was developed on the BF548 DSP evaluation board.In terms of the background modeling, typical algorithms of background modeling and characteristics of highway were analyzed and summarized. Then, the codebook modeling was used as the basis of the background modeling algorithm and improved. Finally, probability and statistics background modeling and updating algorithms is completed with setting the region of interest. Experiments show that the algorithm could extract background well on using resources of kernel less. That provided a strong guarantee for follow-up the work of video detection system.In terms of hardware implementation, mainstream hardware implementation of video detection system is analyzed first. Based on the needs of software algorithm of background modeling and future expansion, the BF 548 evaluation board was selected to achieve the algorithm. Then, the parts of the OpenCV were ported to the BF 548 DSP platform. The programs were optimized based on the characteristics of Blackfin family of processors. Finally, achieve to run background modeling algorithm and communication with the host computer on the BF 548 DSP evaluation board. The experimental results show that the background modeling system can accurately get the background in real time under certain conditions. Those achieve the desired effect. |