Skip to content

This project aims to count every vehicle (motorcycle, bus, car, cycle, truck, train) detected in the input video using YOLOv3 object-detection algorithm.

License

Notifications You must be signed in to change notification settings

j4real2208/VehicleCounter-Yolov3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VehicleCounter-Yolov3

This project aims to count every vehicle (motorcycle, bus, car, cycle, truck, train) detected in the input video using YOLOv3 object-detection algorithm.

Prerequisites

  • Linux distro or MacOS or Windows(Tested on Ubuntu 18.04)
  • A street video file to run the vehicle counting
  • The pre-trained yolov3 weight file should be downloaded by following these steps:
cd yolo-coco
wget https://pjreddie.com/media/files/yolov3.weights

Dependencies for using CPU for computations

  • Python3 (Tested on Python 3.6.9)
sudo apt-get upgrade python3
  • Pip3
sudo apt-get install python3-pip
  • OpenCV 3.4 or above(Tested on OpenCV 3.4.2.17)
pip3 install opencv-python==3.4.2.17
  • Imutils
pip3 install imutils
  • Scipy
pip3 install scipy

Examples:

  • Running with defaults
python3 yolo_video.py --input inputVideos/highway.mp4 --output outputVideos/highwayOut.avi --yolo yolo-coco 
  • Specifying confidence
python3 yolo_video.py --input inputVideos/highway.mp4 --output outputVideos/highwayOut.avi --yolo yolo-coco --confidence 0.3

Reference

About

This project aims to count every vehicle (motorcycle, bus, car, cycle, truck, train) detected in the input video using YOLOv3 object-detection algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages