Skip to content
Open access

Real-Time Weapon Detection and Suspect Face Capturing System Using YOLOv8

Aug 2026 · JOURNAL OF APPLIED INFORMATICS AND COMPUTING · Vol 10, pp. 3523-3534 · 0 citations · 18 references

TL;DR

A web-based weapon detection system using YOLOv8, specifically designed to detect seven object classes: sickle, machete, axe, sword, knife, pistol, and rifle, effectively detects and classifies sharp weapons and firearms in real-time while simultaneously providing visual documentation of the perpetrator.

Abstract

The rise of violent crimes involving sharp weapons and firearms in public spaces, including educational campuses, demands an automated real-time surveillance system to assist security personnel. This study proposes a web-based weapon detection system using YOLOv8, specifically designed to detect seven object classes: sickle, machete, axe, sword, knife, pistol, and rifle. When a weapon is detected, the system automatically captures the suspect's facial image using Haar Cascade and triggers alarm notifications, detection logs, and statistical reports. This integrated data package serves as critical digital evidence to support post-incident identification and investigation. To train the model, we constructed a dataset of 11,445 images sourced from public datasets, video frame extraction, and smartphone camera captures, which was subsequently augmented to 27,687 images to enhance model generalization. The evaluation results demonstrate strong performance with a Precision of 94.3%, Recall of 87.8%, mAP@0.5 of 93.2%, and mAP@0.5:0.95 of 60.1%. Real-time testing at distances ranging from 50 cm to 500 cm confirmed that the system reliably detects most weapon classes, particularly achieving consistent detection for sickles, machetes, and rifles across all tested ranges, while performance for smaller objects like knives and pistols showed decreased accuracy at extreme distances, indicating directions for future work. The findings confirm that the proposed system effectively detects and classifies sharp weapons and firearms in real-time while simultaneously providing visual documentation of the perpetrator, offering a practical and comprehensive security solution for campus environments.

Read PDF

Similar papers

Open access 2026

YOLOv8-Based Firearm Detection for Real-Time Video Surveillance Application

A computer vision approach using the YOLOv8 object detection model to identify whether an individual is carrying a firearm, achieving high precision and recall in detecting both exposed and partially concealed firearms.

R. Mustafovski, T. Shuminoski, Membe et al. · 0 citations
Open access 2026

Real-Time Weapon Detection Using Enhanced YOLO12 Models and a Custom Dataset

The paper presents a customized version of the YOLOv12 model that enables better detection of small, occluded, and low-contrast weapons in video sequences while maintaining high precision and real-time inference speed. The new model integrates: 1) loss reweighting strategy that emphasizes small objects’ contributions d...

Constantin Catargiu, I. Ciocoiu · 0 citations
Open access Sep 2026

Computer vision-based CSAM screenin

The detection of Child Sexual Abuse Material (CSAM) is a major challenge in digital forensics and child protection, while research in this area is constrained by legal, ethical, and privacy restrictions. This paper presents a modular computer vision pipeline for CSAM risk screening based on three proxy visual signals:...

Pablo Morais, Eduardo Fidalgo, V. González-Castro et al. · 0 citations
Review Open access 2026

Development of an Optimized Extreme Learning Machine Model for Face-Based Crime Control Recognition System Using Mantis Search Algorithm

Face recognition can be used for crime control and public security, due to its ability to identify individuals without physical contact. However, variations in illumination, pose, image quality and occlusion affect its accuracy, worsened in real-world settings where surveillance cameras rarely capture a clear shot of a...

Chidozie Ukamaka Promise, F. W. Ipeayeda, Ojo Olufemi Samuel et al. · 0 citations
Conference Aug 2026

Intelligent multimodal face anti-spoofing detection system based on biometrics

A multi-dimensional feature fusion-based face anti-spoofing detection method based on the YOLOv8 architecture that integrates dynamic optical flow features with static texture analysis and achieves robust detection through the fusion of spatial and temporal cues.

Yanhua Liang, Pengcheng Zhou, Hongmei Qin et al. · 0 citations
Open access Sep 2026

Intelligent Surveillance System for Knife Detection Based on YOLOv8 Neural Networks

Cold weapon violence in urban environments represents a growing problem that demands innovative technological solutions for its prevention and control. This article presents the design and implementation of an intelligent surveillance system based on the YOLOv8nano architecture for real-time detection of sharp objects,...

Luis Fernando Juarez Peña, Manuel J. Ibarra-Cabrera · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.