This page is being translated by your browser

Translation can break parts of Roboflow. If something stops working, turn translation off and reload the page.

Detection · Security & Surveillance

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 example
1M+
developers
16k
organizations
50B
inferences

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

Detecting classes:

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

  1. Upload an image: Drop any photo into the widget above to try weapon detection for free, right on this page.
  2. 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.
  3. 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.
  4. 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

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.

Train your own model
Roboflow Agent

Not sure where to start?

Describe your Weapon Detection project to Roboflow Agent.

Agent