Skip to content

Raafat-Nagy/YOLO-Object-Detection-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOLO Object Detection App

Made with FastAPI YOLO

A modern web application for real-time object detection in images and videos using powerful YOLO models. Built with a FastAPI backend and a dynamic JavaScript frontend.

🎥 Watch Demo on YouTube
📁 GitHub Repository


Features

  • Real-time object detection (YOLO11)
  • Upload image or video easily (drag & drop)
  • Choose model type: Fast / Balanced / Accurate
  • Smart streaming for video results
  • Dark mode styled UI
  • Reset and upload new file anytime

Getting Started

  1. Clone this repo

    git clone https://github.com/Raafat-Nagy/YOLO-Object-Detection-App.git
    cd YOLO-Object-Detection-App
    
  2. Install dependencies

    pip install -r requirements.txt
  3. Download YOLO models Put your models (e.g. yolo11n.pt) in the models/ directory. Get them from: Ultralytics Official Models

  4. Run the app

    uvicorn app.main:app --reload
  5. Open http://127.0.0.1:8000 in your browser.


Project Structure

YOLO-Object-Detection-App/
├── app/                # FastAPI backend
│   ├── image_processor.py
│   ├── main.py
│   ├── model_loader.py
│   └── stream_processor.py
├── static/             # Frontend JS/CSS
│   ├── script.js
│   └── style.css
├── templates/          # HTML template
│   └── index.html
├── models/             # YOLO .pt models
│   ├── yolo11m
│   ├── yolo11n
│   └── yolo11s
├── requirements.txt
└── README.md

Demo

📸 Here’s how it works:

Watch the video


Tech Stack

  • FastAPI – lightweight Python backend
  • Ultralytics YOLO – object detection engine
  • JavaScript + HTML + CSS – frontend
  • Font Awesome – icons

License

This project is licensed under the MIT License.


Contact

Feel free to reach out or contribute via pull request or issue!


About

A modern FastAPI-based web app for real-time object detection using YOLO models, supporting image and video uploads, model selection, live streaming, and interactive UI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors