๐ Overview
This project implements a weapon detection system using Python and OpenCV. The system processes images or real-time video feeds to detect weapons, aiming to enhance security and surveillance applications.
๐ Features
-
Real-time weapon detection using OpenCV
-
Image and video processing support
-
Custom-trained model for improved accuracy
-
Alerts when a weapon is detected
-
Scalable and adaptable for various use cases
๐ ๏ธ Technologies & Libraries Used
-
Python (Core programming language)
-
OpenCV (cv2) (For image and video processing)
-
NumPy (Handling arrays and computations)
-
imutils (For image processing utilities)
-
DateTime (For timestamping detections)
๐ Installation & Setup
- Clone this repository:
git clone https://github.com/AnonymousLearnerVivek/Weapon-Detection-Using-Python-OpenCV.git
cd weapon-detection-opencv
- Install dependencies:
pip install opencv-python numpy imutils
- Run the detection script:
python weapon_detection.py
๐ฏ How It Works
-
Pre-trained Model: Uses OpenCV and trained models (e.g., YOLO or Haar cascades) to detect weapons in images/videos.
-
Frame Processing: Extracts frames from video streams and applies detection models.
-
Alert Mechanism: Uses DateTime to log detection events.
๐ฅ Future Enhancements
-
Improve detection accuracy with a deep learning-based model
-
Add integration with security systems for real-time alerts
-
Deploy as a web-based or mobile application
๐ค Contribution
Contributions are welcome! Feel free to fork this repository and submit pull requests.