Abstract:A set of solutions for traffic detection based on video is proposed. The system is developed by using Vistual Studio 2008 with Microsoft's DirectShow video processing library and Intel's OpenCV image processing library. Three experiments under different scenarios show that the accuracy of the vehicle identification can be up to 90%. The system can fluently run on common equipments, meet the real-time demand, and has good adaptability.