---
title: "AI Weapon Detection: Synthetic CCTV Data"
description: "How to train AI weapon detection software for real CCTV: a synthetic dataset of handguns, rifles and concealed-weapon scenarios with YOLO annotations."
canonical: https://simuletic.com/blog/weapon-detection-dataset
html: https://simuletic.com/blog/weapon-detection-dataset
site: Simuletic, https://simuletic.com/llms.txt
---

# Introducing the Simuletic Synthetic CCTV Weapon-Detection Dataset

## Advancing AI Safety With Realistic Synthetic Data

This post introduced Simuletic's first open-source synthetic dataset for AI powered weapon detection software — a YOLO-annotated [CCTV weapon detection dataset](https://simuletic.com/datasets/cctv-weapon-detection-dataset) built to train models on the scenarios real footage almost never covers, including AI concealed weapons detection where a handgun is partially hidden behind a jacket, bag, or the person's own body.

Modern computer vision models are extremely capable — but they still struggle with rare, high-risk edge cases like weapons appearing in real-world surveillance footage. These events are:

- rare (thankfully)

- highly sensitive ethically and legally

- difficult to collect responsibly

- almost impossible to annotate at scale

- often constrained by privacy & regulatory requirements

Synthetic data changes this.

The dataset in this post

CCTV Weapon Detection Dataset

1,000 images · 5 classes (person, handgun, rifle, shotgun, sniper_rifle) · YOLO + COCO

This release is part of our mission at Simuletic to make AI safer and more reliable by providing diverse, ethical, and controllable datasets tailored for real-world safety scenarios.

*Annotated frames from the full dataset, with separate classes for handgun, rifle, shotgun and sniper_rifle.*

## Why Synthetic CCTV Weapon Data?

Traditional datasets face major challenges:

Challenge

- • Rare/extreme events hard to capture

- • Ethical/legal/privacy constraints

- • Annotation cost & accuracy

- • Limited diversity & camera setups

- • Bias risk in real imagery

Synthetic Solution

- • Generate them safely on demand

- • 100% synthetic = no real people or events

- • Automated labelling, checked for box placement and reviewed

- • Unlimited environments, angles, lighting and poses

- • Controlled scenario balancing and diversity planning

Our goal is to support security, research, and surveillance AI teams building responsible detection systems, without compromising privacy or sourcing sensitive footage.

## Dataset Overview

The free sample comes from an earlier release and uses two classes; the full dataset separates weapon types and adds hard negatives.

|  | Free sample | Full dataset |
| --- | --- | --- |
| Images | 141 PNG | 1,000 JPEG, fixed 900 / 100 train-val split |
| Classes | person, weapon | person, handgun, rifle, shotgun, sniper_rifle |
| Labels | YOLO .txt + a CSV of pixel boxes | YOLO + COCO |
| Camera view | Elevated CCTV angles, indoor and outdoor | Ceiling, wall and pole mounts; day, night and monochrome; about 20% hard negatives |
| Licence | CC BY 4.0 (on Hugging Face) | Research $149 or Commercial $590, one-time |

*A frame labelled with the two free-sample classes, person and weapon.*

## Data Structure

```
# Full dataset
dataset/
 ├─ images/
 │   ├─ train/   # 900 .jpg
 │   └─ val/     # 100 .jpg
 ├─ labels/
 │   ├─ train/   # YOLO .txt per image
 │   └─ val/
 └─ annotations/ # COCO .json
```

### Example YOLO Label Line

```
0 0.45 0.55 0.20 0.30   # person
1 0.60 0.70 0.10 0.15   # handgun
```

### Sample dataset.yaml

```
path: /path/to/dataset
train: images/train
val: images/val
names:
  0: person
  1: handgun
  2: rifle
  3: shotgun
  4: sniper_rifle
```

## Does COCO have gun or knife classes?

Short answer: COCO has **knife** but no gun. Its 80 categories include knife (alongside fork, spoon and scissors) but no pistol, rifle or firearm class, and its knives are mostly on dining tables. Open Images V7 is broader: its boxable classes include Weapon, Handgun, Rifle, Shotgun, Knife, Kitchen knife, Dagger and Sword — but almost all of it is eye-level photography, not overhead security-camera footage.

That is the gap our datasets fill: weapons from real CCTV heights, in crowds and bad light, with the look-alikes that cause false alarms. See the [CCTV weapon detection dataset](https://simuletic.com/datasets/cctv-weapon-detection-dataset), [knife detection dataset](https://simuletic.com/datasets/cctv-knife-detection-dataset) and [handgun vs chips](https://simuletic.com/datasets/weapon-detection-handgun-vs-chips).

**Does the COCO dataset have gun or knife classes?**

COCO has a 'knife' class (one of its 80 object categories, next to fork and spoon), but no gun, pistol, rifle or firearm class. Its knife examples are mostly kitchen and table scenes, not CCTV.

**Does Open Images have weapon classes?**

Yes. The Open Images V7 boxable classes include Weapon, Handgun, Rifle, Shotgun, Knife, Kitchen knife, Dagger and Sword. The images are mostly photos taken at eye level, so they still differ from overhead security-camera footage.

**Where can I get gun and knife data from CCTV angles?**

Simuletic's synthetic weapon datasets are rendered from real CCTV mounting heights and labelled in YOLO and COCO, with hard negatives such as umbrellas, phones and chip bags. Free samples are on Kaggle.

*Hard negatives from the full dataset: everyday objects held the way a weapon would be.*

## Download & Explore

### Kaggle

### Hugging Face

If you train a model on this dataset, we'd love to see your results!

## Ethics, Safety & Limitations

We believe strongly in ethical synthetic data for public safety.

Ethical Benefits

- No real people or events

- Designed to reduce bias & privacy risks

- Intended for research, safety testing, and threat-detection systems

Limitations

- Not all camera types, angles, cultures, clothing, or motion patterns included

- Real-world deployment requires combined real + validated synthetic data

We plan to expand the diversity of:

- environments

- subjects and clothing

- behavior patterns

- camera viewpoints

- lighting and weather conditions

Always audit, stress-test, and validate your model before real deployment.

Our [False-Positive Stress Test](https://simuletic.com/stress-test) does exactly that for an existing weapon detector: it runs the model against hard negatives and edge cases and reports every failure.

Get the dataset

CCTV Weapon Detection Dataset

1,000 images · 5 classes (person, handgun, rifle, shotgun, sniper_rifle) · YOLO + COCO

### Ready to explore synthetic data for your use case?

This open dataset is just the beginning. We can create custom synthetic datasets tailored to your specific detection needs, environments, and edge cases.

Written by

Simuletic

Simuletic is a Swedish company that builds synthetic CCTV and security datasets for computer vision. The same people who run the generation pipeline and ship each dataset release write these articles and answer every customer message.

## Related Articles

### [Fixing the 'Doritos Effect': Why AI Mistakes Chip Bags for Handguns](https://simuletic.com/blog/handgun-vs-chips-dataset)

A student was handcuffed over a bag of Doritos. Here's the technical breakdown of why weapon detection AI fails.

### [When Umbrellas Trigger Lockdowns: Solving False Positives in Weapon Detection AI](https://simuletic.com/blog/rifles-vs-umbrellas-dataset)

How synthetic data and hard negative mining solve the biggest challenge in CCTV weapon detection.

### [Who's Holding the Knife? Role-Aware ATM Robbery Detection with Synthetic Data](https://simuletic.com/blog/cctv-atm-robbery-dataset)

A 3,000-image synthetic CCTV dataset with offender, victim, gun, and knife classes for ATM security AI.

---
Markdown version of https://simuletic.com/blog/weapon-detection-dataset. Prices in USD, excl. VAT. Contact: contact@simuletic.com
