Skip to content

Load and apply YOLO object detection models to images and videos. Apply various image filters such as Gaussian Blur, Sharpen, Canny Edge Detection, and more. Process and apply filters to video files or live video streams. Display processed images in a Tkinter GUI with support for resizing and aspect ratio preservation.

muhammadmustafaisb/Object-Detection-Using-Yolo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

OpenCV Function Explorer

OpenCV Function Explorer is a Python application that allows users to explore and apply various OpenCV functions on images and videos. The application supports live video processing, Video Processing, Image Display and YOLO-based object detection.

Features

  • Load and apply YOLO models for object detection.
  • Select and apply different image filters.
  • Process and display video files or live video feeds.
  • GUI with Tkinter for user-friendly interaction.

Installation

  1. Clone the repository:

    git clone https://github.com/muhammadmustafaisb/Object-Detection-Using-Yolo
    cd Object-Detection-Using-Yolo
  2. Create a virtual environment and activate it (optional but recommended):

    python -m venv venv
    # On Windows
    venv\Scripts\activate
    # On macOS/Linux
    source venv/bin/activate
  3. Install the required dependencies:

    pip install opencv-python numpy pillow
  4. Run the application:

    python main.py

Usage

  1. Download YOLO Files:
  2. Launch the application.
  3. Load and Process Images:
    • Click on "Select Image" to load an image.
    • Choose the desired filter by clicking on the corresponding button in the options menu.
    • Optionally, enable object detection by clicking "Detect Objects".
  4. Load and Process Videos:
    • Click on "Select Video" to load a video file.
    • The video will start processing with the selected filter and YOLO object detection.
  5. Live Video:
    • Click on "Live Video" to start a live feed from your webcam. You can apply filters and perform object detection in real-time.
  6. Additional Options:
    • Click "Reset" to reset the image to its original state.
    • Click "Reset Filters" to remove applied filters.

Requirements

  • Python 3.12
  • OpenCV
  • NumPy
  • Pillow
  • Tkinter

Code Overview

YOLOModel: Handles loading and applying the YOLO object detection model. ImageProcessor: Provides various image processing functions and applies filters to images. VideoProcessor: Manages video loading, processing, and live video capture. MainApp: The main Tkinter application class that integrates all functionalities and provides the GUI.

Contributing

Feel free to fork the repository and submit pull requests with improvements or bug fixes. Please make sure to test your changes and follow the existing code style.

About

Load and apply YOLO object detection models to images and videos. Apply various image filters such as Gaussian Blur, Sharpen, Canny Edge Detection, and more. Process and apply filters to video files or live video streams. Display processed images in a Tkinter GUI with support for resizing and aspect ratio preservation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages