This project demonstrates an advanced object detection application utilizing the YOLOv8 model. It features a Streamlit-based web interface, allowing users to upload images and receive detailed object detection results. The application supports object detection using both the COCO and Open Images V7 datasets, providing robust and versatile performance.
- Streamlit Integration: Interactive and user-friendly web interface for easy image uploads and real-time analysis.
- Dual Dataset Support: Detect objects using either COCO or Open Images V7 datasets, enhancing detection versatility.
- High Efficiency: Utilizes the YOLOv8 model for fast and accurate object detection.
- Automatic Image Conversion: Ensures uploaded images are in the correct format for analysis, enhancing compatibility.
To set up the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/HalemoGPA/slash_ai_task.git cd slash_ai_task
-
Install dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
To use the application, visit the Streamlit App.
- Upload an image file using the file uploader.
- Click the "Analyze Image" button to start the object detection process.
- View the detected components displayed below the uploaded image.
- app.py: The main application file containing the Streamlit interface.
- utils.py: Utility functions for image processing.
- yolo_model.py: Functions for loading the YOLO model and detecting objects.
The project employs the YOLOv8 model for object detection. Depending on the user's choice, it can load either:
yolov8l.pt
for COCO dataset.yolov8l-oiv7.pt
for Open Images V7 dataset.
- Streamlit Application: Object Detection App