{"id":18992007,"url":"https://github.com/alihassanml/yolov8-objecttracker","last_synced_at":"2025-08-17T13:15:11.760Z","repository":{"id":257137234,"uuid":"857420283","full_name":"alihassanml/YOLOv8-ObjectTracker","owner":"alihassanml","description":"A real-time object detection and tracking application using YOLOv8, OpenCV, and CVZone. This project detects objects from a video feed or webcam and draws bounding boxes with confidence scores around the detected objects.","archived":false,"fork":false,"pushed_at":"2024-09-14T16:23:25.000Z","size":450,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T11:26:42.660Z","etag":null,"topics":["computer-vision","cvzone","yolov10","yolov8"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alihassanml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-14T15:59:39.000Z","updated_at":"2024-09-14T16:23:28.000Z","dependencies_parsed_at":"2024-09-15T01:58:23.785Z","dependency_job_id":"112207a6-9fc3-4363-a144-955e9c5a859c","html_url":"https://github.com/alihassanml/YOLOv8-ObjectTracker","commit_stats":null,"previous_names":["alihassanml/yolov8-objecttracker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alihassanml/YOLOv8-ObjectTracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alihassanml%2FYOLOv8-ObjectTracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alihassanml%2FYOLOv8-ObjectTracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alihassanml%2FYOLOv8-ObjectTracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alihassanml%2FYOLOv8-ObjectTracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alihassanml","download_url":"https://codeload.github.com/alihassanml/YOLOv8-ObjectTracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alihassanml%2FYOLOv8-ObjectTracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270852245,"owners_count":24656845,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["computer-vision","cvzone","yolov10","yolov8"],"created_at":"2024-11-08T17:16:03.770Z","updated_at":"2025-08-17T13:15:11.723Z","avatar_url":"https://github.com/alihassanml.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YOLOv8-ObjectTracker\n\nA real-time object detection and tracking application using YOLOv8, OpenCV, and CVZone. This project detects objects from a video feed or webcam and draws bounding boxes with confidence scores around the detected objects.\n\n## Features\n\n- **Real-Time Object Detection**: Uses YOLOv8 for accurate object detection in real-time.\n- **Object Tracking**: Visualizes object bounding boxes and class labels.\n- **Customizable Classes**: Predefined COCO dataset classes.\n- **Video/Live Feed**: Supports webcam or video file inputs.\n  \n## Demo\n\n![YOLOv8 Object Tracker](demo.gif)\n\n## Requirements\n\n- Python 3.x\n- OpenCV\n- Ultralytics YOLOv8\n- CVZone\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/alihassanml/YOLOv8-ObjectTracker.git\n   cd YOLOv8-ObjectTracker\n   ```\n\n2. Create and activate a virtual environment (optional but recommended):\n\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n   ```\n\n3. Install dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Download YOLOv8 weights:\n\n   Place the YOLOv8 model weights (`yolov8n.pt`) in the `weights/` directory.\n\n## Usage\n\nRun the following command to start object detection with a webcam:\n\n```bash\npython app.py\n```\n\n### Adjusting the Detection Classes\n\nYou can customize the object detection classes by modifying the `classNames` list in the code.\n\n## Code Explanation\n\nThe main components of this project include:\n\n- **YOLOv8**: Used for object detection.\n- **OpenCV**: To handle video input and display.\n- **CVZone**: For better visualization of bounding boxes and labels.\n\n```python\nimport os\nimport cv2\nimport math\nimport cvzone\nfrom ultralytics import YOLO\n\n# Load the YOLOv8 model\nmodel = YOLO('weights/yolov8n.pt')\n\n# Predefined COCO classes\nclassNames = [\"person\", \"bicycle\", \"car\", \"motorbike\", \"aeroplane\", ...]\n```\n\n## Contributing\n\nFeel free to submit issues, fork the repository, and make pull requests. Contributions are welcome!\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falihassanml%2Fyolov8-objecttracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falihassanml%2Fyolov8-objecttracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falihassanml%2Fyolov8-objecttracker/lists"}