Skip to content

Henistein/Traffic_Analysis_from_UAV

Repository files navigation

Traffic Analysis from UAV data

This framework aims to analyze car traffic from data collected using a drone. For the complete functioning of the framework, three inputs are necessary:

  • A video captured by the drone with the pitch at -90º.
  • A georeferenced image of the location where the drone flew over (geotiff).
  • The drone logs from the video.

The proposed method consists of three main modules:

Proposed Method

  • Object Detector - This framework offers 3 different models to detect vehicles: YOLOv5, Faster-RCNN and TPH-YOLOv5.
  • Multi Object Tracker- This module is responsible for tracking vehicles along the video frames. For this we use DeepSort.
  • Speed Estimation - This module is dependent on the previous modules and is responsible for estimating the speed of vehicles (even in videos with the drone in motion).

To learn more about this framework, we advise you to read the respective report.

Demo

Speed Estimation with drone in motion.

Speed Demo

Vehicle counting.

Count Demo

Traffic density heatmap.

Heatmap

Run

To run you must have a folder with three subfolders (logs, map, video). Inside logs it must contain a .csv file with drone logs, inside map it must contain a .tiff (geotiff) with the georreferenced map and inside video it must contain the drone captured video.

To run you can simply execute:

python3 main.py --path examples/roundabout --model yolov5l-xs.pt --img-size 1920 

About

Traffic Analysis from UAV data Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published