This repository contains a Flask-based web application for object detection using the YOLO (You Only Look Once) model. The application can process images and video streams, detecting objects and displaying the results.
- Upload an image and get the detected objects highlighted.
- Real-time object detection from a video stream.
- Python 3.6+
- Flask
- ultralytics
- numpy
- pillow
- opencv-python
- werkzeug
- Clone the repository:
git clone https://github.com/givkashi/Object-Detection-Yolo-Flask.git
cd Object-Detection-Yolo-Flask
-
Download the YOLO weights from [here] and place them in the object_detection directory.
-
Running the Application To start the Flask application, run:
python app.py
The application will be available at http://localhost:8000.
Usage Image Upload
- Open your browser and navigate to http://localhost:8000.
- Upload an image file.
- The application will process the image and display the detected objects.
Real-time Video Detection
- Open your browser and navigate to http://localhost:8000/video.
- The application will start the webcam and display the real-time object detection.