Downloads · 30 days
0
FatimaNoorAI/weapon-detection
weapon-detection is a machine learning model from FatimaNoorAI. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project implements a weapon detection system using YOLO (You Only Look Once) for object detection. It processes a video, detects weapons in each frame, and saves the annotated video.
Downloads · 30 days
0
Access
Public
Updated Aug 24, 2026
Repo size
6.3 MB
Likes
0
Public
Click a slice to open those files.
.pt6.3 MB · 100%
From the Hugging Face model README
This project implements a weapon detection system using YOLO (You Only Look Once) for object detection. It processes a video, detects weapons in each frame, and saves the annotated video.
Make sure you have the following dependencies installed before running the project:
pip install ultralytics opencv-python
To get started, clone the repository to your local machine using the following command:
git clone https://github.com/your-username/weapon-detection-yolo.git
cd weapon-detection-yolo
Download best.pt (your trained YOLO model) and place it in the project directory.
Make sure you have the required dependencies installed:
pip install ultralytics opencv-python
Execute the following command to run the detection script:
python weapon_detection.py
video.mp4 exists in the directory or update the script to match the correct file path.weapon_detection_output.mp4.weapon-detection-yolo/
├── best.pt # YOLO model file
├── video.mp4 # Input video
├── weapon_detection.py # Main script
├── README.md # Project documentation
└── weapon_detection_output.mp4 # Output video (after detection)
https://github.com/user-attachments/assets/28a04e37-afad-45b2-8291-423bcf17fc6d
🎯 Happy Coding! 🚀