Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weapon-Detection-System #1153

Conversation

venkat-2811
Copy link
Contributor

Related Issue

This PR addresses #1129 &
Closes #1129

Description

Weapon Detection Using YOLOv3

Project Overview

This project utilizes the YOLOv3 (You Only Look Once) algorithm for real-time weapon detection. The code supports two modes of operation:

  1. Webcam-based weapon detection: Uses the webcam to detect weapons in real-time.
  2. Video file-based weapon detection: Uses a pre-recorded video file to detect weapons.

Features

  • Real-time detection of weapons using either a webcam or a video file.
  • Display of bounding boxes and labels for detected objects.
  • Customizable detection thresholds.

Technologies and Libraries Used

  • Python (version 3.x)
  • OpenCV: Library for computer vision tasks.
  • NumPy: Library for numerical computations.
  • YOLOv3: Pre-trained deep learning model for object detection.

Type of PR

  • Bug fix
  • Feature enhancement
  • Documentation update
  • Other (specify): New Model for Weapon Detection

Screenshots / videos (if applicable)

The following image demonstrates the output of the YOLOv3 model, showing bounding boxes and labels for detected objects:

341933578-7d7e3f96-2c43-4b0e-a6f4-9a0ec38037ae

Checklist:

  • I have performed a self-review of my code
  • I have read and followed the Contribution Guidelines.
  • I have tested the changes thoroughly before submitting this pull request.
  • I have provided relevant issue numbers, screenshots, and videos after making the changes.
  • I have commented my code, particularly in hard-to-understand areas.

Additional context:

Customization

You can customize the detection thresholds and other parameters within the script to suit your specific requirements. Detailed comments within the code will guide you through making these adjustments.

Contact

For further assistance or inquiries, please reach out via the repository's contact information.

DESCRIPTION

This project is a real-time weapon detection system utilizing OpenCV and YOLO (You Only Look Once) object detection framework. The system is designed to detect various weapons such as knives, guns, and bombs using a pre-trained YOLOv3 model. The implementation involves loading the YOLO model with custom-trained weights and configuration files, capturing live video feed from the camera, and processing each frame to detect and highlight weapons. The detection results are displayed on the screen with bounding boxes and labels around the detected weapons. This tool is potentially useful for enhancing security measures in public spaces by providing an automated method for weapon detection.

341661359-02732cda-5175-47bc-86ef-31f15307e2f0

Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@Niketkumardheeryan
Copy link
Owner

@venkat-2811 you are using .py for that we are reducing level of this pr

@Niketkumardheeryan Niketkumardheeryan merged commit d9e797d into Niketkumardheeryan:master Oct 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weapon Detection System
2 participants