Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 2.37 KB

File metadata and controls

47 lines (36 loc) · 2.37 KB

Vehicle_detection_tracking_speed_estimation_front_view

Vehicle detection using YOLOv3,4,5 ---- Tracking using DeepSORT -----Speed Estimating using personal method

A basic application using 2D image to estimate the speed of other vehicles around, can be developed for autonomous car with 3D detection
result_2

Demo video

Video_40s

Code at the time update

GDrive

Paper

YOLOv3 YOLOv4 DeepSORT

Installation

Use the package manager pip to install the environment with 'requirements.txt'.

pip install -r requirements.txt

Another way is installing the environment of Anaconda with 'environment.yml'

Usage

Dataset includes more than 5k images for training and testing
YOLOv3
YOLOv4
YOLOv5

  1. The given link to the dataset includes train and test, so you need to download and extract it first
  2. Then train the dataset with yolov5
  3. Remember to replace track.py in Yolov5 + Deep Sort with PyTorch with the track_4.py in my repo.
  4. Following the tutorials in Yolov5 + Deep Sort with PyTorch
  5. Finally run:(Remember to get the right movie path responding to kmph, EX:test_day_10_007.MOV and kph_test_day_10_007.MOV
python track_4.py --source PATH_TO_THE_MOVIE --kph PATH_TO_THE_KMPH --save-vid --yolo_model PATH_TO_YOLO_CHECKPOINT --img 1280

Acknowledgements

https://github.com/ultralytics/yolov3
https://github.com/WongKinYiu/PyTorch_YOLOv4
https://github.com/ultralytics/yolov5
https://github.com/mikel-brostrom/Yolov5_DeepSort_Pytorch