Weapon detection: Datasets & Models
Automatically detect firearms and knives in live video or images using object detection. Built for security teams that need to flag weapons the moment they appear on camera.
Weapon detection
This detection workflow scans video frames and still images to locate weapons, drawing bounding boxes around each firearm or knife it identifies, including handguns, rifles, and blades. It accepts input from CCTV streams, entrance cameras, or uploaded image files, and can be trained further on a custom weapon dataset to fit specific surveillance environments.
Try it out
Powered by general detection model
Run on custom image
Drop an image here or click to upload
Why automate weapon detection
Manual monitoring of security cameras is expensive, fatiguing, and error-prone, an operator watching dozens of feeds will inevitably miss a brief moment when a firearm becomes visible. Automating weapon detection with computer vision gives security and surveillance teams a consistent, always-on layer that flags potential threats in seconds and routes them to the right people. This shortens response time in schools, transit hubs, retail sites, and public venues where every second matters. It also lets a small team cover far more cameras than they could review by hand.
Key benefits
Detection runs on the cameras and video infrastructure you already have, so there is no need to rip and replace hardware. The workflow scales from a single entrance camera to hundreds of feeds, and detections integrate with existing alerting, access control, and incident-management systems. Using RF-DETR as the recommended model, you get strong accuracy on small and partially hidden objects while keeping latency low enough for live monitoring.
How to use it
- Upload an image: Drop any photo into the widget above to try weapon detection for free, right on this page.
- Preview instant results: The model detects handgun, rifle, knife, shotgun within seconds and returns an annotated image with structured predictions, so you can immediately see how well it works. Adjust the detection classes and re-run until the results fit your scenario.
- Like what you see?: With a free Roboflow account, you can deploy this workflow with the Serverless Cloud API, customize it in your workspace, or train RF-DETR on your own images for production accuracy.
- Get started for free: No code or training data required to begin: upload, review the results, and make it part of your stack in a single click.
Recommended model for weapon detection
RF-DETR is state of the art for real-time object detection, instance segmentation, and keypoint detection, with higher accuracy and lower latency than comparable models, and it's Apache 2.0 licensed. When you're ready to build a production model for weapon detection, fine-tune it on your own labeled images, then deploy to a Serverless Cloud API endpoint.
Not sure where to start?
Describe your Weapon Detection project to Roboflow Agent.