This project is a Django-based web application for object detection using the YOLOv8 model. The application allows users to upload images and videos, perform object detection, and display the results with bounding boxes and labels.
Shows Colors of the detected objects and other filters
- Image and video upload
- Object detection using YOLOv8
- Display detected objects with bounding boxes and labels
- Display dominant colors and color names for detected objects
- Save and display the results
- Python 3.x
- Django
- OpenCV
- NumPy
- Pandas
- UltraLytics YOLO
-
Clone the repository:
git clone https://github.com/sourabhligade/dominant_color.git cd yolo-django-object-detection
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the Django development server:
python manage.py runserver
- Navigate to
http://127.0.0.1:8000/upload-image/
in your web browser. - Use the form to upload an image file.
- Click the "Upload" button.
- The object detection results will be displayed, including bounding boxes and labels.
- Navigate to
http://127.0.0.1:8000/upload-video/
in your web browser. - Use the form to upload a video file.
- Click the "Upload" button.
- The object detection results will be displayed for each frame of the video.