task_categories:image-segmentation task_categories:object-detection language:en license:cc-by-nc-nd-4.0 code finance legal region:us
The dataset consists of photos depicting **individuals holding guns**. It specifically
focuses on the **segmentation** of guns within these images and the **detection** of
people holding guns.
Each image in the dataset presents a different scenario, capturing individuals from
various *backgrounds, genders, and age groups in different poses* while holding guns.
The dataset is an essential resource for the development and evaluation of computer
vision models and algorithms in fields related to *firearms recognition, security
systems, law enforcement, and safety analysis*.
@InProceedings{huggingface:dataset,
title = {people-with-guns-segmentation-and-detection},
author = {TrainingDataPro},
year = {2023}
}
---
language:
- en
license: cc-by-nc-nd-4.0
task_categories:
- image-segmentation
- object-detection
tags:
- code
- finance
- legal
dataset_info:
  config_name: people-with-guns-segmentation-and-detection
  features:
  - name: id
    dtype: int32
  - name: name
    dtype: string
  - name: image
    dtype: image
  - name: mask
    dtype: image
  - name: width
    dtype: uint16
  - name: height
    dtype: uint16
  - name: shapes
    sequence:
    - name: label
      dtype:
        class_label:
          names:
            '0': person
            '1': gun
    - name: type
      dtype: string
    - name: points
      sequence:
        sequence: float32
    - name: rotation
      dtype: float32
    - name: occluded
      dtype: uint8
    - name: z_order
      dtype: int16
    - name: attributes
      sequence:
      - name: name
        dtype: string
      - name: text
        dtype: string
  splits:
  - name: train
    num_bytes: 42149
    num_examples: 11
  download_size: 69561417
  dataset_size: 42149
---

# People with Guns Segmentation & Detection Dataset
The dataset consists of photos depicting **individuals holding guns**. It specifically focuses on the **segmentation** of guns within these images and the **detection** of people holding guns. 

Each image in the dataset presents a different scenario, capturing individuals from various *backgrounds, genders, and age groups in different poses* while holding guns. 

The dataset is an essential resource for the development and evaluation of computer vision models and algorithms in fields related to *firearms recognition, security systems, law enforcement, and safety analysis*.

![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F12421376%2F2497edebcdd1b7c4bc5471262bf5bd16%2FFrame%2029.png?generation=1696334547549518&alt=media)

# Get the dataset

### This is just an example of the data

Leave a request on [**https://trainingdata.pro/data-market**](https://trainingdata.pro/data-market?utm_source=huggingface&utm_medium=cpc&utm_campaign=people-with-guns-segmentation-and-detection) to discuss your requirements, learn about the price and buy the dataset.

# Dataset structure
- **images** - contains of original images with people holding guns
- **labels** - includes visualized labeling created for the original images
-  **annotations.xml** -  contains coordinates of the polygons and bounding boxes, created for the original photo

# Data Format

Each image from `images` folder is accompanied by an XML-annotation in the `annotations.xml` file indicating the coordinates of the bounding boxes and polygons. For each point, the x and y coordinates are provided.

### Сlasses:
- **person**: person, who holds the gun, detected with a bounding box,
- **gun**: gun, labeled with a polygon

# Example of XML file structure

![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F12421376%2F96bbe14c80f4b494f97136f8ffdbaa44%2Fcarbon.png?generation=1696335385101390&alt=media)

# People with Guns Segmentation & Detection might be made in accordance with your requirements.

## **[TrainingData](https://trainingdata.pro/data-market?utm_source=huggingface&utm_medium=cpc&utm_campaign=people-with-guns-segmentation-and-detection)** provides high-quality data annotation tailored to your needs

More datasets in TrainingData's Kaggle account: **https://www.kaggle.com/trainingdatapro/datasets**

TrainingData's GitHub: **https://github.com/trainingdata-pro**