Giter Site home page Giter Site logo

rajveersinghcse / car-detection-and-car-counter Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 86.56 MB

๐Ÿš™ This project merges YOLOv8l for precise car detection with SORT for streamlined car tracking, offering a comprehensive tool for real-time vehicle counting in designated areas.

License: MIT License

Python 100.00%
car-counter car-detection car-detection-opencv yolo yolov8

car-detection-and-car-counter's Introduction

Car Detection and Car Counter

This project utilizes the YOLOv8l model for car detection and implements a Simple Online and real-time tracking (SORT) algorithm for counting the number of cars in a video stream. The system detects cars within a predefined region of interest and tracks them using unique IDs.

car_gif

Requirements

  • Python 3.x
  • OpenCV
  • NumPy
  • Ultralytics YOLO
  • SORT (Simple Online and Realtime Tracking)

Installation

  1. Clone the repository:
git clone https://github.com/rajveersinghcse/Car-Detection-and-Car-Counter.git
  1. Install the required packages:
pip install -r requirements.txt

Usage

  1. Ensure you have a video file named cars.mp4 in the project directory.
  2. Download the YOLOv8l model weights (yolov8l.pt) from the Ultralytics YOLO repository and place them in the project directory.
  3. Run the following command to start the car detection and counting process:
python car_counter.py

Description

  • car_counter.py: This script performs car detection and counting using YOLOv8l for object detection and SORT for object tracking. It reads frames from the cars.mp4 video, applies a mask to isolate the region of interest, detects cars within this region, tracks them using SORT, and counts the total number of unique cars.

Acknowledgments

License

This project is licensed under the MIT License.

car-detection-and-car-counter's People

Contributors

rajveersinghcse avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.