Dataset Ninja LogoDataset Ninja:

OD-WeaponDetection: Knife Detection Dataset

207811553
Tagsecurity, surveillance
Taskobject detection
Release YearMade in 2020
LicenseCC BY-SA 4.0
Download633 MB

Introduction #

Released 2020-11-23 ·Fransco Pérez Hernandez, Alberto Castillo Lamas, Siham Tabiket al.

Authors introduce OD-WeaponDetection: Knife Detection dataset, a collection of 2078 images designed for object detection, specifically focused on the presence of at least one knife. These images were sourced from the internet, including frames extracted from YouTube videos and surveillance footage. The dataset encompasses a wide variety of cold steel weapons, differing in types, shapes, colors, sizes, and materials. It accounts for knives positioned at various distances from the camera, some partially occluded by hands, and objects that mimic the handling of knives. The dataset offers a diverse range of indoor and outdoor scenarios, and additional details about this image dataset and experiment results can be found in the related publication. The OD-WeaponDetection: Knife Detection dataset is a part of Weapon Detection Open Data.

More about Weapon Detection Open Data

The weapon datasets available here are specifically tailored for the development of intelligent video surveillance automatic systems.

An automatic weapon detection system can provide the early detection of potentially violent situations that is of paramount importance for citizens security. One way to prevent these situations is by detecting the presence of dangerous objects such as handguns and knives in surveillance videos. Deep Learning techniques based on Convolutional Neural Networks can be trained to detect this type of object.

The weapon detection task can be performed by different approaches of combining a region proposal technique with a classifier, or integrating both into one model. However, any deep learning model requires to learn a quality image dataset and an annotation according to the classification or detection tasks.

Weapon detection Open Data provides quality image datasets built for training Deep Learning models under the development of an automatic weapon detection system. Weapons datasets for image classification and object detection tasks are described and can be downloaded below. The public datasets are organized depending on the included objects in the dataset images and the target task.

Weapon Detection Open Data structure

Classification

The datasets included in this section have been designed for the classification task based on CNN deep learning models. After the training stage on these datasets, the classification models must distinguish between weapons and different common objects present in the background or handled similarly.

Detection

The datasets included in this section have been designed for the object detection task based on Deep Learning architectures with a CNN backbone. The selected images contain weapons and objects but also consider an enriched context of different background objects as well as the way objects are handled. After the training stage on these datasets, the detection models must locate and distinguish between weapons and different common objects present in the background or handled similarly.

ExpandExpand
Dataset LinkHomepageDataset LinkResearch PaperDataset LinkBlog Post

Summary #

OD-WeaponDetection: Knife Detection is a dataset for an object detection task. It is used in the security industry.

The dataset consists of 2078 images with 2155 labeled objects belonging to 1 single class (knife).

Images in the OD-WeaponDetection: Knife Detection dataset have bounding box annotations. All images are labeled (i.e. with annotations). There are no pre-defined train/val/test splits in the dataset. The dataset was released in 2020 by the University of Granada, Spain.

Dataset Poster

Explore #

OD-WeaponDetection: Knife Detection dataset has 2078 images. Click on one of the examples below or open "Explore" tool anytime you need to view dataset images with annotations. This tool has extended visualization capabilities like zoom, translation, objects table, custom filters and more. Hover the mouse over the images to hide or show annotations.

OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
OpenSample annotation mask from OD-WeaponDetection: Knife DetectionSample image from OD-WeaponDetection: Knife Detection
👀
Have a look at 2078 images
View images along with annotations and tags, search and filter by various parameters

Class balance #

There are 1 annotation classes in the dataset. Find the general statistics and balances for every class in the table below. Click any row to preview images that have labels of the selected class. Sort by column to find the most rare or prevalent classes.

Search
Rows 1-1 of 1
Class
Images
Objects
Count on image
average
Area on image
average
knife
rectangle
2078
2155
1.04
10.88%

Images #

Explore every single image in the dataset with respect to the number of annotations of each class it has. Click a row to preview selected image. Sort by any column to find anomalies and edge cases. Use horizontal scroll if the table has many columns for a large number of classes in the dataset.

Object distribution #

Interactive heatmap chart for every class with object distribution shows how many images are in the dataset with a certain number of objects of a specific class. Users can click cell and see the list of all corresponding images.

Class sizes #

The table below gives various size properties of objects for every class. Click a row to see the image with annotations of the selected class. Sort columns to find classes with the smallest or largest objects or understand the size differences between classes.

Search
Rows 1-1 of 1
Class
Object count
Avg area
Max area
Min area
Min height
Min height
Max height
Max height
Avg height
Avg height
Min width
Min width
Max width
Max width
knife
rectangle
2155
10.51%
88.35%
0.15%
23px
2.26%
2820px
99.66%
205px
31.48%
26px
2.29%
2744px
99.95%

Spatial Heatmap #

The heatmaps below give the spatial distributions of all objects for every class. These visualizations provide insights into the most probable and rare object locations on the image. It helps analyze objects' placements in a dataset.

Spatial Heatmap

Objects #

Table contains all 2155 objects. Click a row to preview an image with annotations, and use search or pagination to navigate. Sort columns to find outliers in the dataset.

Search
Rows 1-10 of 2155
Object ID
Class
Image name
click row to open
Image size
height x width
Height
Height
Width
Width
Area
1
knife
rectangle
knife_1140.jpg
720 x 1280
238px
33.06%
103px
8.05%
2.66%
2
knife
rectangle
knife_904.jpg
720 x 1280
177px
24.58%
121px
9.45%
2.32%
3
knife
rectangle
knife_260.jpg
1176 x 1500
1028px
87.41%
235px
15.67%
13.7%
4
knife
rectangle
knife_498.jpg
1099 x 1500
566px
51.5%
125px
8.33%
4.29%
5
knife
rectangle
knife_1267.jpg
720 x 1280
192px
26.67%
112px
8.75%
2.33%
6
knife
rectangle
DSC_00241.JPG
1281 x 1920
131px
10.23%
205px
10.68%
1.09%
7
knife
rectangle
knife_515.jpg
299 x 450
117px
39.13%
171px
38%
14.87%
8
knife
rectangle
knife_863.jpg
720 x 1280
105px
14.58%
241px
18.83%
2.75%
9
knife
rectangle
KravMagaTraining619.jpg
720 x 1280
146px
20.28%
109px
8.52%
1.73%
10
knife
rectangle
knife_461.jpg
746 x 1000
391px
52.41%
427px
42.7%
22.38%

License #

OD-WeaponDetection: Knife Detection is under CC BY-SA 4.0 license.

Source

Citation #

If you make use of the OD-WeaponDetection: Knife Detection data, please cite the following reference:

@article{CASTILLO2019151,
  title = {Brightness guided preprocessing for automatic cold steel weapon detection in surveillance videos with deep learning},
  journal = {Neurocomputing},
  volume = {330},
  pages = {151-161},
  year = {2019},
  issn = {0925-2312},
  doi = {https://doi.org/10.1016/j.neucom.2018.10.076},
  url = {https://www.sciencedirect.com/science/article/pii/S0925231218313365},
  author = {Alberto Castillo and Siham Tabik and Francisco Pérez and Roberto Olmos and Francisco Herrera},
}

Source

If you are happy with Dataset Ninja and use provided visualizations and tools in your work, please cite us:

@misc{ visualization-tools-for-od-weapon-detection-knife-detection-dataset,
  title = { Visualization Tools for OD-WeaponDetection: Knife Detection Dataset },
  type = { Computer Vision Tools },
  author = { Dataset Ninja },
  howpublished = { \url{ https://datasetninja.com/od-weapon-detection-knife-detection } },
  url = { https://datasetninja.com/od-weapon-detection-knife-detection },
  journal = { Dataset Ninja },
  publisher = { Dataset Ninja },
  year = { 2024 },
  month = { feb },
  note = { visited on 2024-02-24 },
}

Download #

Dataset OD-WeaponDetection: Knife Detection can be downloaded in Supervisely format:

As an alternative, it can be downloaded with dataset-tools package:

pip install --upgrade dataset-tools

… using following python code:

import dataset_tools as dtools

dtools.download(dataset='OD-WeaponDetection: Knife Detection', dst_dir='~/dataset-ninja/')

Make sure not to overlook the python code example available on the Supervisely Developer Portal. It will give you a clear idea of how to effortlessly work with the downloaded dataset.

The data in original format can be downloaded here.

. . .

Disclaimer #

Our gal from the legal dep told us we need to post this:

Dataset Ninja provides visualizations and statistics for some datasets that can be found online and can be downloaded by general audience. Dataset Ninja is not a dataset hosting platform and can only be used for informational purposes. The platform does not claim any rights for the original content, including images, videos, annotations and descriptions. Joint publishing is prohibited.

You take full responsibility when you use datasets presented at Dataset Ninja, as well as other information, including visualizations and statistics we provide. You are in charge of compliance with any dataset license and all other permissions. You are required to navigate datasets homepage and make sure that you can use it. In case of any questions, get in touch with us at hello@datasetninja.com.