Introduction #
Authors introduce OD-WeaponDetection: Knife Classification dataset, a collection of 10 039 images designed for classification task, contains 100 classes: aaaknife, airplanes, barrel and more. 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 Classification 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.
- OD-WeaponDetection: Knife Classification (10 039 images, 100 classes) (current)
- OD-WeaponDetection: Pistol Classification (9 857 images, 102 classes) (available on DatasetNinja)
- OD-WeaponDetection: Sohas Classification (9 544 images, 6 classes) (available on DatasetNinja)
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.
- OD-WeaponDetection: Knife Detection (2 078 images, 1 class) (available on DatasetNinja)
- OD-WeaponDetection: Pistol Detection (3 000 images, 1 class) (available on DatasetNinja)
- OD-WeaponDetection: Sohas Detection (5 859 images, 6 classes) (available on DatasetNinja)
Summary #
OD-WeaponDetection: Knife Classification is a dataset for a classification task. It is used in the security industry.
The dataset consists of 10039 images with 0 labeled objects. There are no pre-defined train/val/test splits in the dataset. The dataset designed for classification task, contains 100 classes: aaaknife, airplanes, barrel and more. The dataset was released in 2020 by the University of Granada, Spain.
Here are the visualized examples for the classes:
Explore #
OD-WeaponDetection: Knife Classification dataset has 10039 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.
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/i/r/ZI/YrL6JVnBudNdPR7qHe7vYTNOxLA2f7UwHgE8QCq8aSHzsGwmlvFjUdXTjQz01ANnLWSUjXO596AQK1etswwFK5svYVuKCA5y6MiiBWjTaafVqoYEO0CkQoM2RbGc.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/e/j/b5/fEjFSAjZoFkXv8iOpIJ16flmPopC5Q1VpZYruqpywOHPzzFqAax65nXeQGOsaXyIou3Q8yTdKTjtTyzI3khxvUDqRWtMxvMGt6VxF3HMKiEcK5pmH1detZaw3mAf.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/r/G/qV/55k8jMnzowVI4RVdi7RTK5KQVowsDItvwdZVR9leiH45g6CZ37wzr1m6ngRPlSZN3QRpgFKtXAT5d59sTlrZmHZc7D3gA0gUpNv13w9h9lJTKc0XyUvZ78HvcmsU.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/8/Q/9m/hSRNSpdDdvyMIB2cE37MHD9CHZZZcUq3pVjL3eX6zA8OCQan8vCpKgc64becwBeUTc7Q4fliNoT2cmpTwugwKIwFKm21FFwYhM2aOVhDO5dsDCe5OUgmbI6KKu8L.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/D/n/2E/YO40SnHdkyEHTRCDgr7IJ9MzA1RHJ9cORmsSyzUIKzA7Kx7N8kifgNLfW1Fr5Y9vVbX52p0cho5FC84LGYUVVaHQlFJ11pVS8eFhtyu20ipPSaGM90ag6p3dPH1l.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/L/i/Pk/4v2rVbnezVkNyjqGo7ktCvuwufJM2Lv1ljJufAr4ZOxV8SdhoBxLFkzQxJmBH9ltC6eUQvHMqXahjTkzpONFHrfHru7qcsjXy9dOqKXX7rRTQXNx2r7DJRSeyP4N.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/i/w/uO/dLX0vHhkAUDYY2jiu1xufwPMODJxiZSvTUjCg6ZPj56ZaIsrP6JMsY1pvKK20s6Ri0vdmW4UjHS6Tusk5kT3X953Mub7awj0C5Dvp6MZJugzPHsmuVtv6cziade4.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/M/0/tW/Xo0i3NiHHMcQ62ZLnl8amVOgps4FjUQarDrzw4WEtekwQFwhkXpsVJns3J857wbPQE6Zdww9bG1HkVrfaArR5Wdu2BBNXmOC4qcajECgZWk3N9nxPZAHZ6FlKlxz.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/v/H/8P/0Jb955iVYCQMtGI85JsKiATEjdU82mHex9kmN8sO90zMsOEauOI7tqNw7pNG6Dqp6oLFkFNJSs3b9pkfkuCEBqbjlvvrVn9CkjMAgdTQJhcZJvFJiOX5Drubs8vR.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/e/N/c2/aKeed0zSA7UmXKdC7GAj1Cf5gH7LmZ84qrYyf3DEvMElEOuDpnslcBue7R8TvHWhtE1nalKLXUU0mSOTuOjUftIZbLtRUP3s5KQKDX6qb5aNwBQYSN1gPfA8dhHP.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/p/r/eX/Yd79WWkRA6wewUJBYDWnf1K9p6oFkzBHnXFms9gRPYwfNVcYXQ7z8MV3EBQ5m4yGsfJSFllV8hQBCrRoJJOtu4I0odX99d7FNcZJASma8fRtqWuIGFB4il4hHJSu.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/I/N/xk/cKwn2k2J4GL4Pvr3r8XDKTXp6dUOQUdknmAxL27amwKulTHwXskFUwGQovxtOiQTQUs1oZm2mr5gOOQgw8prAwR5OzzTeMSLHlGZc95xLmDlyZ6nGoUXmkxfqc37.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/R/7/i5/NUrTe9kD8wfqp1naAdEPDyEmNCqwQ6p8K2FcgKR0LcQlCNsOzWHEXmA4iRGqZyzij4IcF17QuX4KTdb3zETNkt2OdGmEA8BgbmpuE2Hk1tquGUQD1zOzwSenBab0.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/A/W/BL/Mg5qdqrjiDMtXMRQeHu8A0c3xqKui6vsqguQSVucLAULDR6TdN6DtzAOCWOv1IZN5V1JPXYdsFw53fYz9k3JN0p490cgcriBUKBfzubrUUYTqrt2qYPfQj1GOfcM.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Q/V/qS/Nagn051VXqb4uSOitqmPiZ7mhg6H3rKGglFSZYk0hp2z5nnDHdmwzcbxDeepJqaG978m50q0jzvgF0CYY2FHbqT18LuadAQIukCl9aqh2MgPsTnDiuWztUhh4mUX.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/a/r/JB/axG2Cxs6gOLn2aaVsvdNhPn1PPA9aZwVwhXkClBgjU60Ky4QmgG1x5WPxwG6AwQtkHiU2ntYvTaYtmfxeGOPQX6N9Eo2pHDMFbuDitaGWtmOj6yosX9tG6vGE7cq.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/J/3/8Q/ZVM4EaL8QTap1yxILVlHPrjbvh9guPNYEQm4Vxw9tZHrndqsDwuHzVtMhPPKModZH0Z2ZhnjJbg89Wlw1P2GKQJn6LPSfAIX4uL4eHQednOYDKDCkNVfBcQS892U.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/e/M/uJ/93rN2a1FT35kjAHOAyQEbtXbDF4mNf98HBiFhFtcVRMhPmZh9EgKMO5yMPXuilBSEn6t2aMIoZNa1y5IWb1hg0eg0q2c3DXnQDxCqNMshx0gBNnoaE9mT9ajIwFu.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/i/S/Lj/z9JLEXwQM1d2jDPZ0ZFh9eo9jYmhb5Vlbm2f3JTw8n5RUw6Tn5LCUoo0XIWTBFRVGp2j0SYKVOBYZygVka615r1MfLXoMONjLI2CdfmiVrJfBaB5sXSTF5PoBn24.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/i/U/2l/i8N0BWiJjR19u0ZEQ3lX3216BtCUcvFEyOVCwCqm12cBAvZQvkbxcfqRHLzkg1PFgaRUe7Drxf78iPI63WPEa9h4XTTEH4ZfzitmsaAiiGzh8bvQw7NRSZW3Hfqb.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/l/2/JN/IgZxE4STmF7a3jgHE9XUp3CQxD2c6eB0QrKLO9GIwnuf8DQvdrW7yKOM0gr5ywxvezX7IX6W8bBYrR85T1x6ZLZL8UI15YUnmDc6fcFjlfLn65XRG2yKAN3Ha2i2.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Z/l/zu/i8WVK4jqk87iKQiyUqbbrMeYaAbcawxHgQPyavqEIHeLRkcyybEaFMFcv5QS3oEe9IY2q1ap9mSIk7Qei5MTuk5vEHR86pfxFyiVjMMpbSEbEToB6cgFlbKLLnkb.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/A/R/vV/vJVJhyoy4DjrvpiKqPcu2O0WScvPtfkV44yEqIkbiYA4chAJOOoAv3EP9DGE1Qu6Ahc43T2Dr0viFej2A4U0UOkSA5YRdZID7P6ZtBKuwHnh1GexjfL6FIUYPlMl.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/0/7/FX/nb1ZcstXb2ZDps75od1C5lwLlKpHsZeeLOUp7gK5jpTwmgBjANVtJLIl20953oeLJubkLk0FUiOyttJiNNHzHfCtdGnHJCnjTxYEXeuP2DBNvy3NtwP9hdN9g2ku.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/4/x/zj/AgDZ8PoWS6DUXo2GshGEPonSrCSnI73d4h2QM6VnkDQhdn4s61pCiOmN87KVFTKJeAeX61klUi8pMXxpowqsejMqNkftzujezK0GPwTz0VePctPwO1W5BV8c5Mc2.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/p/s/hc/NzNozXSXoabMQBvQMruOMWuz4oHJaasiaStS9RXGBoqIxJI4GALG8qLDs0QbDzuDBnO46xmryMTuKqPpOWIruOiyC65PY57vNeC6HKKup0pUXK1Pvs0b8RAos2ZW.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/I/C/U8/TfbPuPDZhEfVIzHtn8axYhPr3duAMeKaeJsg1aH0qgty6Hy5sk9Ig5uJtwmyZLgqXcOeHLzLohesBGMPVWioActZrXWfurO09mJFuc84s3LjSbu0rfhVc7RuaA7d.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/G/j/MQ/8ti0HlHvNVFWLPGIM5YxQIXi4sEB4rtTgGWTwww7K7n2gvIpwF6QcEnMwXJkyn0V0LYsP9f2J6QtTPINATmnTFU27hi3FrMHtLNxsByh5bEveVKWiz2GP6QIjzBP.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/R/S/8T/fkvogt2u3RrGRhZnCOS8pUgSViDa0YlWb6cQiVXlE1dmDfJqSHe8qxMgt2aU8zePX2UldAL10G0PxQ2J9UHR2OiW0IcXLczU2e68VhaqJtNDRibWWOhv9ch8nj6F.jpg)
![Sample image from OD-WeaponDetection: Knife Classification](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/m/j/7q/b9dVXZOEhfdNBxgSKrCW79vjNAgg16KnJuH0xmeML73eCS5BoLHiuxhhaZBsnxPjiqRVfkNbJVJZfUnw5l12X7McfaFZONNyomC9CdmOB4TKw0sVBu457IRALQ4v.jpg)
License #
OD-WeaponDetection: Knife Classification is under CC BY-SA 4.0 license.
Citation #
If you make use of the OD-WeaponDetection: Knife Classification 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},
}
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-classification-dataset,
title = { Visualization Tools for OD-WeaponDetection: Knife Classification Dataset },
type = { Computer Vision Tools },
author = { Dataset Ninja },
howpublished = { \url{ https://datasetninja.com/od-weapon-detection-knife-classification } },
url = { https://datasetninja.com/od-weapon-detection-knife-classification },
journal = { Dataset Ninja },
publisher = { Dataset Ninja },
year = { 2024 },
month = { sep },
note = { visited on 2024-09-08 },
}
Download #
Dataset OD-WeaponDetection: Knife Classification 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 Classification', 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.