Views
No views yet
pip install ultralytics opencv-python1git clone https://github.com/your-username/weapon-detection-yolo.git
2cd weapon-detection-yolobest.pt (your trained YOLO model) and place it in the project directory.pip install ultralytics opencv-pythonpython weapon_detection.pyvideo.mp4 exists in the directory or update the script to match the correct file path.weapon_detection_output.mp4.1weapon-detection-yolo/
2├── best.pt # YOLO model file
3├── video.mp4 # Input video
4├── weapon_detection.py # Main script
5├── README.md # Project documentation
6└── weapon_detection_output.mp4 # Output video (after detection)