{"id":24787646,"url":"https://github.com/raghavendra-km/spot_ai","last_synced_at":"2026-05-06T23:31:35.475Z","repository":{"id":274787289,"uuid":"924068756","full_name":"Raghavendra-KM/Spot_AI","owner":"Raghavendra-KM","description":"SpotAI is a basic Python-based AI object detection project using YOLOv5 and OpenCV to identify and label objects in images with high accuracy","archived":false,"fork":false,"pushed_at":"2025-03-07T04:35:33.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T11:14:05.259Z","etag":null,"topics":["artificial-intelligence","deep-learning","machine-learning","object-detection","object-recognition","opencv","python","pytorch","yolov5"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Raghavendra-KM.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":"2025-01-29T11:07:22.000Z","updated_at":"2025-03-07T04:35:36.000Z","dependencies_parsed_at":"2025-01-29T12:22:51.948Z","dependency_job_id":"88863076-dfd0-47e0-80ba-099dabb7f30a","html_url":"https://github.com/Raghavendra-KM/Spot_AI","commit_stats":null,"previous_names":["raghavendra-km/spot_ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raghavendra-KM%2FSpot_AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raghavendra-KM%2FSpot_AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raghavendra-KM%2FSpot_AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raghavendra-KM%2FSpot_AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raghavendra-KM","download_url":"https://codeload.github.com/Raghavendra-KM/Spot_AI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245258223,"owners_count":20585977,"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":["artificial-intelligence","deep-learning","machine-learning","object-detection","object-recognition","opencv","python","pytorch","yolov5"],"created_at":"2025-01-29T16:12:58.175Z","updated_at":"2026-05-06T23:31:35.470Z","avatar_url":"https://github.com/Raghavendra-KM.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpotAI\n\n## Overview\nThis project demonstrates an AI-powered object detection application using YOLOv5. The system takes an input image, identifies objects within it, and annotates the image with bounding boxes and labels for detected objects. The application is powered by PyTorch and OpenCV.\n\n## Features\n- **Real-Time Object Detection**: Detect objects in images using the YOLOv5 model.\n- **High Accuracy**: Uses the `yolov5x` model for better object detection and classification.\n- **Dynamic Text Labeling**: Ensures that object labels and bounding boxes fit within the image dimensions.\n- **User-Friendly Input**: Accepts user-defined image paths for easy testing.\n- **Customizable**: Supports modifications for detecting additional objects or improving accuracy.\n\n## Prerequisites\nBefore running the project, ensure you have the following installed:\n\n- Python 3.8 or higher\n- pip (Python package manager)\n- PyTorch\n- OpenCV\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Raghavendra-KM/Spot_AI.git\n   cd ai-object-detection\n   ```\n\n2. Install required dependencies:\n   ```bash\n   pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118\n   pip install opencv-python\n   ```\n\n3. Set up YOLOv5:\n   The model will automatically download when you run the script for the first time using PyTorch's `torch.hub.load` function.\n\n## Usage\n1. Place your input image in the project directory or note its path.\n2. Run the script:\n   ```bash\n   python Spot_AI.py\n   ```\n3. Enter the path to your input image when prompted.\n4. The processed image with detected objects will be saved in the same directory as the input image, with \"_detected\" appended to its name.\n\n## Example\n### Input Image \u0026 Output Image\n\n![INPUT-UNIDENTIFIED](https://github.com/user-attachments/assets/9ce63bb9-cae6-4fb9-8614-8b25c336661a)\n\n\n![OUTPUT-CARS IDENTIFIED](https://github.com/user-attachments/assets/70044519-cea0-4d9c-9b0d-3013db5c70e4)\n\n\n\n## Code Highlights\n- **YOLOv5 Model**: The `yolov5x` model is loaded via PyTorch Hub for state-of-the-art object detection.\n- **Dynamic Text Handling**: The code ensures text labels are displayed without exceeding image boundaries.\n- **Resizing**: Large images are resized for optimal processing.\n\n## Customization\n- To use a different YOLOv5 model, replace `'yolov5x'` with `'yolov5s'`, `'yolov5m'`, or other available variants.\n- Modify the confidence threshold for detection within the script to fine-tune results.\n\n## Future Enhancements\n- Add support for video input.\n- Deploy the application as a web service using Flask or FastAPI.\n- Extend support for training a custom YOLOv5 model for domain-specific tasks.\n\n## License\nThis project is licensed under the MIT License.\n\n## Acknowledgments\n- [Ultralytics](https://github.com/ultralytics/yolov5) for providing the YOLOv5 framework.\n- The open-source community for supporting PyTorch and OpenCV.\n\n## Author\n**Raghavendra KM**  \n[GitHub](https://github.com/Raghavendra-KM)\n[LinkedIn](https://linkedin.com/in/raghavendrakm08)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraghavendra-km%2Fspot_ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraghavendra-km%2Fspot_ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraghavendra-km%2Fspot_ai/lists"}