Introduction #
The author of the dataset was engaged in a project related to weapon detection in CCTV footage and encountered difficulties in finding a suitable pre-existing dataset for their research. Consequently, they decided to create the new dataset. It primarily consists of segmented videos (sourced mainly from YouTube) and images (other sources).
Summary #
Weapons in Images: Images of Weapons with YOLO Annotations for Detecting Weapons is a dataset for an object detection task. Possible applications of the dataset could be in the security industry.
The dataset consists of 5695 images with 9304 labeled objects belonging to 1 single class (weapon).
Images in the Weapons in Images dataset have bounding box annotations. There are 1349 (24% of the total) unlabeled images (i.e. without annotations). There are 2 splits in the dataset: train-weapons_in_images (4375 images) and test-cctv (1320 images). The dataset was released in 2020.
![Dataset Poster](https://cdn.datasetninja.com/github/dataset-ninja/weapons-in-images/main/visualizations/poster.png?width=1200)
Explore #
Weapons in Images dataset has 5695 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 Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/g/U/aI/CbETJSwMHgp4QpeXHteSc9QJgB6iatNXHo7nlIAsDixvqSWS8yCt01lJeUgyHmKZUtQq5FrV1cNNSTV2jt6M2KDX7RqYo8YDBOYMstyygh5QlhrwV6iVg75sHOyx.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/T/P/o0/Se84m0EKzRqs2AIrqJ43nGDWreGUikBO2J6yQ9IY9sfXdijrBVGQxmopzKHBLfPqpVpr9tJLPivHWOpC9svX7LGZOFZJaF8gElYMKT0qlcD79KJfYZZoXx5YoyVJ.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/f/4/nr/Gge7c4edjR6aznazPdmPss33C77s1sWFJfkMtxD1sDhHnpmhqvzkr4oTLoBof1V88f395qsu6J93zwPbI9Y9o9NtqjiZ53l6QU4MJJbf00JxDejhUpwYOf6NjYLh.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/G/o/7U/CeFSuXX7cVUTB7HRV1paC5BZHAx2aa1rRU57YjJBe2g03Db9wA1wMPLOHSBBKjbeVwnipInIo0xW7lS3UeHocm95OqoILRMrUMaUOKcOkvCPlFihIt59n7GzokYj.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/S/b/5J/k36SAnkHPGWf8ancjdxFtF3atduSlCtbpzL3CqTL6eWwDY8uy1lFJSnW3oi3FkZvUqdRmnBEEspmnD4zCHRSD47timbyfPhYX6HcrW4QmYGuY2UFnVLSGEDmVmdf.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/7/v/ZQ/dLib5VyoBJyLG0a3McMUTkvaV2rV538e7ZWj6pP2P6nV6oW4z3ulE3a6C7lY9Jzcuy4dk9z7BAbOCNK9R22vj0i3tJZ1EImRSPmuFKosiJcLWcdeCGIcu9rXLuuB.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/q/f/4f/JjMgdlta8jZ1lVz0LkPgPH9wPnTDNpA40uC60q4XQtb5NXSBZ05Izx9002LodHdr9ShifpO3tb2XxiiQAyPgdmySbkjtfGLhAP7p4xRrRYo0vVoB6ncZjlyhztpC.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/q/Z/nY/npM6QKVDC8YRkkckoYbBqWLQPQz1k8SsgwciXJCbCTuFD5CC7CflL8FpwDZeBcS0R2WTSUURi0FZrHkjyoSJcYBOoxI7PihwqMl4HNRkjCcMtx0Ljndjp6czC1dJ.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/F/w/i4/Y6VjqOtPKN9G0QlK8YHpgkfxweaerYm6TSq66ltDjhDq2S78MP00yB9VzgokpaFWyRbET3UtV7S8LgOIKetdOEobk933uNVyUjMxW7gCNHMGKhlhOdGFcva94e7f.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/w/9/ww/Sfp7kmukD2wCraHKN4agkvE8Z94Tg9mfD57iTwaCi3jDX3tv08sUGIRi5CEXEdenFrU4ExPLObru2EROiIlvwfZ1zXKCCRAyfvdUzYC51Wox4jEbb30MtZAAkgP5.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/4/2/Un/vVvXHSjY6dUzmhyxTvYOLhexW1wlZnp7KunpCaMjdQoN0mzs0gLN8VniKQgpme6pmvdZnr4QBoxANp64vPSRXZ2s49XjOpPO8QNtkpB3KyxuoB9lfusvCH9jhPfR.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/C/k/Vi/clzVhJ5rvPFs8fzFc9W8Vco8o7O8SCgDHJBpNHGQdjH9CJ0DDPleofuBlKSXoFHSgOsM6jLvIypeHqWk5ZBS9E4eMsKPu8XXFhWD8aNhWPsCTngjMwMmJe8DQ5Wj.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/F/P/yb/wHzDsQYgKeXDd821bMxO8nu6UKi0N5kkhPUFSF1oZCBzChABmYewDKZqP5qMuGrcnGmfIItUEbdTtxWOj5L45K3O27OdExMyIHNwBdEx5gKzWPD4HJgdHdZiDGrH.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/l/1/Yz/RPmmGkE9F3Pw3MPHohq9q7PHnycnlk4u41pft48ymTm5i2dFcI7uLUdc57vF9THyPBtqi51UEOy6RTcqQoW0T0Xja0YAD2F4TBV4D6ktguOl9I2o9g2FUViUuQs9.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/3/K/OH/Tfd9h0BAGF8ghXygzamnYuNYlEnqHX5AUFCn9Qiih0wGf7v1gbyOaqakXh2bfBtF0GvA3Uop3PDHsd4eEVqq9O7lnqGhZL1EFmzPyGoqYqyDLa3qebU8MpPHo2Uj.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/G/u/yM/5wkLmfZo5FzLElaqJpKYT8n5F0FpABj5dNDkIEi5UnslHYDqezDJwE7WQjtxfk6X1wo5lwWROkAuXECDSOQdEyoymFeoIayW4AJp0MnJ9NLRVOwZm1IBPz780LjO.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/2/8/Hk/gqsFXebr7lsmB9nInizMKmwNf6a1kP5dV1QNQLMMXaYCSHQ8pFPrOytWoJRe6zPcPDD6N7J11EhAQxVbHzDlVDEDw11F22DtzBt8yDWzD0d5p1JbohVg8BhFwxAn.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/0/Y/PN/pfFFszxqka7cNkdSlBZu1mlyVg3NP2peYTTm6Xv4iII5QTJQsR7Ank2GYiE3qEmQPlxl9qZiyHdORHnWl5NIKDf6nKJVk4GJtXe1eBwWn2nzRM2I7ZWqi8pWZ7ba.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/H/S/jA/N2zWERa8iKgCMfBA01JLe0ZqFbdnW9fTnAisTRJ6Je5gcql5j3UmYFjZZxphAVPk1JkcIYmm17PP0wITj5CjTRQ8UUyTLxnwEXLop9e7IJbkH6btaeL2zhOdfs8n.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/t/Y/Mk/RhihpSuxNU2gjGCzGRLSoZhfn8PJ3lUxaA2wS3B4B9wAqm1LCqpOsrwmoGtofEwfFlzbBSGqxsJ7pvyFObQBXulQ0wGST43iDxLPYJv0yvTh6PqX2hUDdCyY19tj.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Z/n/il/eUPMM1Ft5s1Oi9toxvA6C3WPwGNJ8B9JJg1ttkBLaW5hrb39PtIlUXyahhOd6pMGTQhHRpWTFe6Zz7QdZFob0qBcxp2lvIYhWWJFdH99C0BJybI1CyVjf8ySjyJG.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/K/F/rx/GLMac4eQwvsRNwMBR8NohBBDtKvR2HZ0ZX71ANjWevDM1zRO41b4106x8beiRIQIjNXF0tBcann68jGRdGHjpB5lpnxHTXFCqLAYOQhitTNg5RC2kA0FgLbnkyUF.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/v/e/TW/gON6ajud6ZiCwIcQk5Gg0SzxvoiJoYPWuYteLzO2e2S9m6uqJ14OQi4It6DRquubi8D40vfI1IjYcVVOW2tpyHZMdLGNgPNWMnVfvhsAsQdVFMDeQ4Fj6lvljpJe.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/j/n/xW/nEbBFUcpmLeXOxdY2IC2R13hLhWfuEqN3fwvK3JsLwz7gKrRZzQk5did9mAed38kzDGqf381kvTyJraYm3KJuNr6K3qctK3Tedz6t4oOGCZqOFfhXZX13ftjFzTD.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/W/9/1s/x0wLjTnzBEWVyuubINBMCr7NLMUmHbN2GUAsdjn1mJzHeUVdJ1yO3qUJyuco8KNOUryBtutnnSmcuCiLyqg4RJc3Cxi3Nbhghd1K84NnvE2R1Cia9souuXPCI1YV.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/m/M/Vk/FttULGWjZw1uXKFvJq6tXIs1z0qmXApjCCWeziz9v1Cw8vqv82a1fOsNEnz9knFCjZZeNP25nCaLf0rkslHMETuv37w2gG9RlYOzoxND3Kbc0mdqlsFoOZvS3yfs.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/z/0/0k/kf2Vsa2ZdjKMvWu2Kc3gVW0Ti10QtoeQMXmPxSyrFC1NWzwGAc0KuIu8FS8GMIE1W7aHrJed86H5qrAWxqEAn9vXp0SdAb7EUEDFhnyIC9KhDAjX5FbNnRjuJlh1.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/3/8/Zn/paQBj31VmzxCRXwQw2fCXEic7RrQChC9481j7WKWOdWwseXlsEmMW3dUj398X7hlIxONAtya2AeUu8ULQHHujIHqdcJHyq4iEbUZmf9zz40fj9qXiVTD3t8Dv6CQ.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/R/x/IE/ZK15AFmBQT1SIjDxsc6C2GpPIQiWPibP7w1L829gqxHj6sO9O500dhFeGS621EUM9ywMM3vyNFk49zpkgP9qP1aSckI8Bc0s7tTRGRAiu9Lp7v7Yg1mQNLhBoZXv.jpg)
![Sample image from Weapons in Images](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/5/J/aD/RTTmjVkZuZJVPOo8RDm4NoiCBujHlLiN4erYKCmgO5xHQTPtlTHGwHa1epznz8pOxdlDd2rDCijyFRjO290GLTsHxOUfClELGoohN4qjHm8apftpUPxDNBfsAoPu.jpg)
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.
Class ã…¤ | Images ã…¤ | Objects ã…¤ | Count on image average | Area on image average |
---|---|---|---|---|
weaponâž” rectangle | 4346 | 9304 | 2.14 | 18.2% |
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.
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
weapon rectangle | 9304 | 8.99% | 99.92% | 0% | 2px | 0.33% | 1024px | 100% | 200px | 27.58% | 1px | 0.1% | 1279px | 100% |
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](https://cdn.datasetninja.com/github/dataset-ninja/weapons-in-images/main/stats/classes_heatmaps.png)
Objects #
Table contains all 9304 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.
Object ID ã…¤ | Class ã…¤ | Image name click row to open | Image size height x width | Height ã…¤ | Height ã…¤ | Width ã…¤ | Width ã…¤ | Area ã…¤ |
---|---|---|---|---|---|---|---|---|
1âž” | weapon rectangle | 5038299639e177eb.jpg | 1024 x 681 | 1009px | 98.54% | 335px | 49.19% | 48.47% |
2âž” | weapon rectangle | a8bb38e1f134279a.jpg | 1024 x 803 | 209px | 20.41% | 220px | 27.4% | 5.59% |
3âž” | weapon rectangle | PUBGGunsInRealLife!14891.jpg | 720 x 1280 | 391px | 54.31% | 622px | 48.59% | 26.39% |
4âž” | weapon rectangle | PUBGGunsInRealLife!14891.jpg | 720 x 1280 | 84px | 11.67% | 59px | 4.61% | 0.54% |
5âž” | weapon rectangle | PUBGGunsInRealLife!14891.jpg | 720 x 1280 | 91px | 12.64% | 66px | 5.16% | 0.65% |
6âž” | weapon rectangle | PUBGGunsInRealLife!14891.jpg | 720 x 1280 | 100px | 13.89% | 117px | 9.14% | 1.27% |
7âž” | weapon rectangle | PUBGGunsInRealLife!14891.jpg | 720 x 1280 | 129px | 17.92% | 126px | 9.84% | 1.76% |
8âž” | weapon rectangle | PUBGGunsInRealLife!14891.jpg | 720 x 1280 | 144px | 20% | 188px | 14.69% | 2.94% |
9âž” | weapon rectangle | WhiteHouseShootingSecretServiceShootGun-wieldingMan[CAUGHTONTAPE](302).jpg | 720 x 1280 | 38px | 5.28% | 64px | 5% | 0.26% |
10âž” | weapon rectangle | WhiteHouseShootingSecretServiceShootGun-wieldingMan[CAUGHTONTAPE](302).jpg | 720 x 1280 | 36px | 5% | 52px | 4.06% | 0.2% |
License #
Citation #
If you make use of the Weapons in Images data, please cite the following reference:
@dataset{Weapons in Images,
author={A.N.M. Jubaer},
title={Weapons in Images: Images of Weapons with YOLO Annotations for Detecting Weapons},
year={2020},
url={https://www.kaggle.com/datasets/jubaerad/weapons-in-images-segmented-videos}
}
If you are happy with Dataset Ninja and use provided visualizations and tools in your work, please cite us:
@misc{ visualization-tools-for-weapons-in-images-dataset,
title = { Visualization Tools for Weapons in Images Dataset },
type = { Computer Vision Tools },
author = { Dataset Ninja },
howpublished = { \url{ https://datasetninja.com/weapons-in-images } },
url = { https://datasetninja.com/weapons-in-images },
journal = { Dataset Ninja },
publisher = { Dataset Ninja },
year = { 2024 },
month = { sep },
note = { visited on 2024-09-08 },
}
Download #
Dataset Weapons in Images 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='Weapons in Images', 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.