Automatic Counting System in a Region of Interest from Videos Taken by Drones
摘要
Implementing road infrastructure projects to improve connectivity and communication in developing countries begins with traffic flow statistics for better planning. This article presents an automatic counting system in videos taken by drones from a segment of interest and a dataset explicitly designed for this task. The input to the system consists of the video and the segment given by the user; the output is a table with the count of eight classes of relevant objects in the Yucatan area: car, truck, bus, combi, motorcycle, bike, mototaxi and pedestrian. The counting system has sequentially integrated modules that perform the tasks of detection, tracking, and counting, respectively. First, the detection module uses a fine-tuned and trained YOLOv4 model. Then, the tracking module uses the Intersection over Union method. Finally, the counting module selects those that have crossed the segment of interest from the tracked objects for the first time. The system reports a weighted average accuracy of \(80.38\%\) .