{"id":20760874,"url":"https://github.com/hetbhalani/car_counter","last_synced_at":"2025-04-14T17:12:36.805Z","repository":{"id":261230240,"uuid":"883672400","full_name":"hetbhalani/Car_Counter","owner":"hetbhalani","description":"I am learning object detection using python","archived":false,"fork":false,"pushed_at":"2024-11-09T11:52:53.000Z","size":89035,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T17:12:30.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hetbhalani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-05T11:29:53.000Z","updated_at":"2025-03-18T15:11:16.000Z","dependencies_parsed_at":"2025-01-18T05:26:44.741Z","dependency_job_id":"bc4706d4-e92d-4d86-ae5b-8821b1d79abc","html_url":"https://github.com/hetbhalani/Car_Counter","commit_stats":null,"previous_names":["hetbhalani/object_detection","hetbhalani/car_counter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetbhalani%2FCar_Counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetbhalani%2FCar_Counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetbhalani%2FCar_Counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetbhalani%2FCar_Counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hetbhalani","download_url":"https://codeload.github.com/hetbhalani/Car_Counter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923764,"owners_count":21183953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T10:16:12.391Z","updated_at":"2025-04-14T17:12:36.769Z","avatar_url":"https://github.com/hetbhalani.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Car Counting 🚗\n\n\n\nThis is a Python-based project that uses the YOLOv8 object detection model and the SORT (Simple Online and Realtime Tracking) algorithm to count vehicles in a video feed. 🎥\n\n## Screensort 📸\n\n![ss of detection](./imgs/detect.jpg)\n\n## Features 🚀\n\n- Real-time vehicle detection and counting 🔍\n- Supports various vehicle types (cars, trucks, buses, motorbikes) 🚗🚌🏍️\n- Utilizes a custom road mask to focus the detection on the desired region 🛣️\n- Tracks individual vehicles across frames using the SORT algorithm 🔍🤖\n\n## Tech used 💻\n\n- Python 3.x\n- OpenCV 🖥️\n- Ultralytics YOLO 🤖\n- SORT (Simple Online and Realtime Tracking) 🔍\n- cvzone 🎨\n\n## How it Works 🤖\n\n1. The code loads the YOLOv8 model and initializes the SORT tracker. 🔍\n2. It then processes each frame of the video, detecting vehicles using the YOLOv8 model and vehicle types (cars, trucks, buses, bikes). 🚘\n3. The detected vehicles are then passed to the SORT tracker, which keeps track of individual vehicles across frames. 🔍\n4. The script draws bounding boxes around the detected vehicles, displays the vehicle IDs, and counts the number of unique vehicles that have passed through the linr🔢\n\n\n## ⚙️ Installation\n\nFollow these steps to run project :\n\n1. **Clone the repository**:\n    ```bash\n    git clone https://github.com/hetbhalani/Car_Counter.git\n    cd Car_Counter\n    ```\n\n2. **Install dependencies** :\n    ```bash\n   pip install requirements.txt\n    ```\n\n3. **Run the app**:\n    ```bash\n    python CarCounter.py \n    ```\n\n## Contributing 🤝\n\nIf you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request. 🙌\n\n## Acknowledgments 🙏\n\nSpecial thanks to Alex Bewley, the creator of the SORT (Simple Online and Realtime Tracking) algorithm, for his valuable contribution to the field of object tracking.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhetbhalani%2Fcar_counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhetbhalani%2Fcar_counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhetbhalani%2Fcar_counter/lists"}