This paper proposes a method for fast and accurate vehicle speed measurement based on a monocular camera. Firstly, by establishing a new camera imaging model, the calibration method for variable focal lengths is optimized, simplifying the transformation process between the four coordinate systems in traditional camera imaging models, and the method does not need to restore the pixel coordinates to dedistortion. Secondly, based on the camera imaging model, a two-dimensional positioning algorithm is proposed. By leveraging the characteristics of the speed measurement problem, the complex three-dimensional positioning problem is simplified into a two-dimensional model, reducing the overall computational complexity of the positioning problem. Finally, the algorithm is combined with You Only Look Once version 7 (YOLOv7) and Deep Simple Online and Realtime Tracking (DeepSORT) algorithms, integrating multiple model structures to optimize the network, achieving precise multi-target speed measurement. Experiments show that under frame-by-frame measurement conditions, the minimum and average accuracies of this method reach 95.1% and 97.6%, respectively. Compared with other methods, it has significant advantages in speed measurement accuracy and computational efficiency. Therefore, this research outcome is expected to play an important role in intelligent transportation systems and road safety management.
Keywords: Camera calibration; DeepSORT; Monocular vision; Two-dimensional positioning; YOLOv7.
© 2025. The Author(s).