Skip to content

scott-kirila/ObjectDetectionApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Detection App

A Streamlit-based web application for object detection using one of two models: YOLOv8 and GroundingDINO.

Features

  • YOLOv8 Detection: Fast object detection with support for 80 pre-defined classes
  • GroundingDINO Detection: Flexible object detection using natural language descriptions
  • Interactive UI: Upload images, view detections with bounding boxes, and get detailed results
  • Multiple Detection Modes: YOLOv8 for speed, GroundingDINO for flexibility

App interface

Installation

Prerequisites

  • Python 3.8+ (tested on 3.14)
  • pip

Setup

  1. Clone the repository:
git clone <repository-url>
cd <repository-name>
  1. Create a virtual environment (optional but recommended):
python -m venv venv
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt

Running the App

streamlit run Source/app.py

The app will open in your default browser at http://localhost:8501

Usage

  1. Select a Detection Model: Choose between YOLOv8 or GroundingDINO
  2. Upload an Image: Click to upload an image file or copy from clipboad
  3. Configure Detection Settings:
    • For GroundingDINO: Enter text descriptions of objects to detect
    • For either: Adjust confidence threshold, which can be updated in real time
  4. View Results: The app displays bounding boxes, labels, and confidence scores

Model Information

YOLOv8 (Nano)

  • Fast real-time detection
  • Supports 80 object classes
  • Model downloaded automatically on first run
  • Best for: Known object categories, speed-critical applications

GroundingDINO

  • Flexible object detection using natural language
  • Detects any object described in text
  • Automatically downloaded from Hugging Face on first run
  • Best for: Custom object detection, flexible queries

Requirements

See requirements.txt for complete dependency list:

  • streamlit
  • torch
  • pandas
  • pillow
  • transformers
  • ultralytics

Notes

  • Model files are downloaded automatically on first use and cached locally
  • Ensure you have sufficient disk space (~2GB) for model files
  • GPU (CUDA) support recommended for faster inference (CPU mode supported)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages