An algorithm that uses YoloV5 and DeepSORT to count and measure the number of vehicles in a video stream, it detects the vehicles with YoloV5 and tracks them with DeepSORT to maintain a count of unique vehicles in the video. It also calculates the frames per second (FPS) of the video stream.
12 to 15 FPS
git clone https://github.com/mahimairaja/vehicle-counting-yolov5.git
cd vehicle-counting-yolov5
git clone https://github.com/ultralytics/yolov5.git
pip install -r requirements.txt
After completing the above steps your directory should look like somewhat as of below structure
vehicle-counting-yolov5
python tracker.py
# This will download model weight - yolov5s.pt to base folder on first execution.