The invention discloses a method for calculating a vehicle speed based on a moving unmanned aerial vehicle video, and belongs to the technical field of vehicle speed
calculation methods through videos, and the method comprises the steps: extracting global feature points of a video frame through employing an SIFT operator, calculating a
homography matrix H through combining with an RANSAC
algorithm, projecting a previous frame image to a current frame, and carrying out the calculation of the current frame image; the method effectively eliminates the interference of the motion (such as flight attitude change and displacement) of the unmanned aerial vehicle on the vehicle speed calculation, solves the problem of
speed measurement failure caused by the deviation of the motion directions of the unmanned aerial vehicle and the vehicle in the traditional method, enables the
algorithm to be suitable for complex scenes such as curves and multi-angle flight of the unmanned aerial vehicle, improves the adaptability of the
system in a dynamic environment, and improves the reliability of the
system. According to the method, the YOLOv5-1 model is combined with the DeepSORT
algorithm, high-precision detection and stable tracking of the vehicle are achieved, even under the complex conditions that the vehicle is partially shielded, illumination changes and the like, continuous detection frame association can still be kept, and reliable
time sequence data support is provided for vehicle displacement calculation.