Skip to content

This project demonstrates real-time drone detection using YOLOv5 and OpenCV. It detects drones in real-time and displays a warning when a drone is detected inside or near a defined rectangle.

Notifications You must be signed in to change notification settings

Ayushkumawat/Advanced-Aerial-Drone-Detection-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Advanced-Aerial-Drone-Detection-System

This project demonstrates real-time drone detection using YOLOv5 and OpenCV. It detects drones in real-time and displays a warning when a drone is detected inside or near a defined rectangle.

proj_4

Features

  • Real-time drone detection using YOLOv5
  • Interactive rectangle creation and adjustment
  • Warning message displayed when a drone is detected inside or near the rectangle

df002233-cd13-44c0-b5f8-51623015146f

Benefits

  1. Enhanced Security Real-time detection of drones for improved security in airports, public events, and restricted areas.

  2. Automated Monitoring Reduce manual surveillance by automating the drone detection process using computer vision and machine learning.

  3. Customizable and Interactive Define and adjust the detection area using an interactive rectangle for accurate and adaptable detection.

  4. Real-time Feedback Instant detection and warning messages provide immediate responses to potential drone threats.

  5. Open-source and Extendable You can access the open-source codebase for customization and integration into existing security systems.

  6. Scalable and Cost-effective Efficient utilization of resources with a balance of accuracy and performance, resulting in cost savings.

3c146082-7f6b-4c0c-8cc2-ad7728771c87

d22ec15f-7f61-4053-b7cd-7402ece65116

About the Dataset

The Drone Detection model was trained on a diverse dataset consisting of 1400 images of different types of drones. The dataset was carefully curated and labeled to ensure accurate annotations. It covers a wide range of drone variations, sizes, orientations, and backgrounds.

The dataset was prepared using the Roboflow platform and exported through its API. This streamlined the dataset preparation process and ensured high-quality data inputs for training the model.

The availability of this diverse and well-annotated dataset enables the Drone Detection model to learn from a wide range of drone images, resulting in improved accuracy and reliability in real-world detection scenarios.

Requirements

  • Python 3.x
  • OpenCV
  • PyTorch
  • YOLOv5
  • Numpy
  • PIL

Installation

  1. Clone the repository:

  2. Install the required Python libraries:

    • pip install opencv-python torch numpy pillow
  3. Download the YOLOv5 model:

Usage

  1. Run the Advanced_Drone_Detection.py script:

    • python Advanced_Drone_Detection.py
  2. The script will open a live video feed from the default camera.

    • To create a rectangle, click and drag the mouse on the video feed to define the four corners of the rectangle.
    • The rectangle can be adjusted by dragging the corners.
    • A warning message will be displayed whenever a drone is detected inside or near the rectangle.
  3. Press 'q' to quit the program.

Customization

  • You can modify the classes list in the code to include or exclude specific classes of objects for detection.
  • Adjust the confidence threshold (conf) to control the sensitivity of detection.
  • Experiment with different YOLOv5 model sizes for performance and accuracy trade-offs.

About

This project demonstrates real-time drone detection using YOLOv5 and OpenCV. It detects drones in real-time and displays a warning when a drone is detected inside or near a defined rectangle.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages