AI Gun Detection

The security cameras you already have can spot a gun, raise the alarm and save the clip.

Real-time gun detection using Frigate NVR with AI-accelerated video analysis on edge devices

Beginner10minVision & Video AISource Code

reComputer J40 series — the default detection host for the Jetson preset

reComputer R2000 series with Hailo — the detection host for the Hailo preset

Reusable Site Templates

Entrances and public areas already covered by IP cameras, where nobody watches every screen.

School entrances

School entrances

School gates, teaching-block lobbies, dormitory entrances. A gun in view raises an alert.

Retail stores

Retail stores

Convenience-store checkouts, petrol-station shops. Each detection keeps a clip and a snapshot.

Offices and public venues

Offices and public venues

Office lobbies, stadium entrances, station waiting halls. Alerts reach the existing alarm system over MQTT.

Not a fit: replacing security staff, or serving as certified screening equipment. Validate on your own footage when the gun is small in frame, covered by a hand or clothing, or poorly lit.

How it works

Existing IP cameras provide the video, a detection host makes the decision, and alerts reach your receiving system and a browser dashboard.

Gun detection device composition: IP cameras send RTSP to a reComputer detection host, which serves the Frigate dashboard over HTTP and sends MQTT events to the alarm system

Three parts: the IP cameras you already have, one edge AI host running Frigate, and whatever receives the alert. Video is analysed and recorded on the host, inside your network. What leaves the host is the dashboard page and the MQTT events.

Cameras

Any IP camera with an RTSP stream works — Hikvision, Dahua and generic ONVIF cameras all expose one. Nothing on the camera changes.

  • Put the camera on the same network as the host.
  • Use the low-resolution sub-stream for detection and the main stream for recording; this keeps host load down.
  • Mount it at entrances and corridors, with a clear, stable view of the area.

The deploy form takes up to two RTSP addresses. More cameras are added later in the Frigate config file. Two looping demo videos ship with it, so detection is visible before any camera is connected.

How well it works

What the people on duty see and operate in a browser once it is running.

Per-camera live view, flagged the moment something is found

  • One tile per camera, loops automatically
  • Detected tile: red border, red dot
  • CPU load and system health shown live

Every detection leaves evidence

  • Detection grid with box + confidence badge
  • Filter by camera, label or date
  • Snapshot and clip saved per detection

Per-event detail and playback

  • Detail view has 4 tabs incl. video playback
  • Overall score and snapshot score shown separately
  • Camera source and timestamp recorded
Measured results

Scope: capabilities and limits of the shipped configuration; the thresholds below are configuration values.

What it does: checks every frame of each connected camera on the host, draws a box with a confidence score, and saves a clip and a snapshot for each event. The Jetson model reports guns above a 0.3 score, the Hailo model above 0.25; both thresholds are adjustable.

Limits: detection depends on how large and visible the gun is in the frame. Validate missed detections and false alarms with footage from your own cameras before connecting alerts to a response process. This is an assistive alert, not a certified security product.

What you get out of it

Once deployed, everything is served from the host.

PortContent
HTTP 5000Frigate dashboard: live view, Birdseye, event list with snapshots and playback
MQTT 1883Frigate event messages when a gun is detected
RTSP 8554Camera streams re-served for other players

Camera list, detection threshold and retention days (recordings 3 days, snapshots 14 days as shipped) live in config/config.yml on the host. Edit it and run docker compose restart.

How to deploy

Tell us about your site — we work out the hardware, then you connect the data and follow the steps.

Camera Count

How many cameras will this site connect, including ones added later? Both setups analyse and record video on the host inside your network. The difference is how much room there is for more cameras.

FAQ

Yes, once installed. Frigate, the model and the MQTT broker all run on the host, so detection, recording and alerts keep working offline. The internet is needed only during deployment to pull images and models.

Didn't find your answer?
Contact Us
We Are Glad to Be Your Hardware Partner !
Next