Giter Club home page Giter Club logo

yolov8_web_app's Introduction

YOLOv8 Web App

Project Overview

This project integrates a FastAPI backend with a Streamlit frontend to create a web-based application for uploading images, processing them with the YOLOv8 model for object detection, and displaying the results. The application supports image uploads in Base64 encoding, processes them using a pretrained YOLOv8 model, and returns processed image paths for display.

Features

  • Image Upload: Users can upload images via a Streamlit interface.
  • Object Detection: Uses the YOLOv8 model to detect objects in uploaded images.
  • Result Visualization: Processed images with detected objects are displayed.

Technologies Used

  • FastAPI: Backend server.
  • Streamlit: Frontend interface.
  • YOLOv8 (Ultralytics): Object detection.
  • Pydantic: Data validation.
  • Python: Programming language.

Installation

  1. Clone the Repository
    git clone https://github.com/t56gary/YOLOv8_Web_App
    cd YOLOv8_Web_App
  2. Install Required Libraries
    pip install fastapi uvicorn streamlit ultralytics[aio] pydantic aiofiles
    
  3. Environment Setup
    • Ensure Python 3.8+ is installed.
    • CUDA environment (if running YOLOv8 with GPU support).

Usage

  1. Start the Backend Server
    uvicorn backend:app --reload  # Replace 'backend' with your FastAPI script name if different
    
  2. Run the Streamlit Frontend
    streamlit run frontend.py  # Replace 'frontend.py' with your Streamlit script name
    
  3. Interacting with the Application
    • Navigate to the Streamlit URL (usually http://localhost:8501).
    • Use the file uploader to select and upload an image.
    • View the processed image and detection results displayed on the page.
    • The output of the YOLOv8 detection will be saved as a JSON file in the same folder where the backend is running.

yolov8_web_app's People

Contributors

t56gary avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.