Orientation Aware Weapons Detection in Visual Data

Automatic detection of weapons is significant for improving security and well-being of individuals, nonetheless, it is a difficult task due to large variety of size, shape and appearance of weapons. View point variations and occlusion also are reasons which makes this task more difficult. Further, the current object detection algorithms process rectangular areas, however a slender and long rifle may really cover just a little portion of area and the rest may contain unessential details. To overcome these problems we propose Orientation Aware Weapons Detection algorithm which provides oriented bounding box and improved detection performance of weapons. The proposed model provides orientation not only using angle as classification problem by dividing angle into eight classes but also angle as regression problem.

OAWD Architecture

Instructions:

This code is modified by using Faster RCNN implementation available in Keras. We provide orientation in two ways; one is using angle classification and other is using angle regression. Kindly see the system setup details of Faster RCNN Here. This will help in running our model. We provide necessary files to run the test only using our weights. Weights of model can be downloaded from Here and put weights into project directory. After downloading weights go to project directory and run this command given below.

python test_frcnn.py -p Test

Results:

Results

Dataset:

Dataset is available upon request and by filling this google form Google Form Link

Citation:

Please cite our papers if you use our dataset in your work.

  1. Haq, N.U., Fraz, M.M., Hashmi, T.S. et al. Orientation aware weapons detection in visual data: a benchmark dataset. Computing (2022). https://doi.org/10.1007/s00607-022-01095-0

  2. N.U Haq, M.M. Fraz , T.S Hashmi, M. Shahzad, “Orientation Aware Weapons Detection In Visual Data : A Benchmark Dataset“, 2021, eprint arXiv https://arxiv.org/abs/2112.02221

  3. Haq, N. U., Hashmi, T. S. S., Fraz, M. M., & Shahzad, M. (2021, May). Rotation Aware Object Detection Model with Applications to Weapons Spotting in Surveillance Videos. In 2021 International Conference on Digital Futures and Transformative Technologies (ICoDT2) (pp. 1-6). IEEE.

  4. Hashmi, T. S. S., Haq, N. U., Fraz, M. M., & Shahzad, M. (2021, May). Application of Deep Learning for Weapons Detection in Surveillance Videos. In 2021 International Conference on Digital Futures and Transformative Technologies (ICoDT2) (pp. 1-6). IEEE.