Mini Project Review 1
Mini Project Review 1
1
Contents
1. Abstract
2. Motivation
3. Literature review
4. Limitations of the existing models
5. Proposed problem statement
6. Proposed approach of the work
7. User/Stakeholder requirement analysis
8. Software requirement/Technology stack
9. Hardware requirements
10.Data sets requirement
11. Innovation in the project
12. Plan of action to complete the project
2
Abstract
In the contemporary security landscape, the need for advanced technologies to enhance
threat detection is paramount. This research addresses the crucial task of weapon detection
through the development of a robust system employing deep learning algorithms. The
proposed system utilizes a dataset comprising images and videos with both weapon and
non-weapon instances. The methodology involves pre-processing the dataset to ensure
optimal compatibility with machine learning models, incorporating techniques such as
image augmentation and normalization. Feature extraction is conducted to identify relevant
patterns and characteristics in weapon-related imagery. Various deep learning models,
including convolutional neural networks (CNNs) are implemented and rigorously evaluated
to determine the most effective approach. Performance metrics such as precision, recall,
and F1 score are employed to assess the system's accuracy and efficiency in detecting
weapons while minimizing false positives.
3
Motivation
The rising concern for public safety and the increasing
frequency of security threats in crowded areas motivate the
development of an advanced weapon detection system. By
leveraging deep learning, the project aims to provide a
proactive and efficient solution to enhance security
measures.
4
Literature review
Grega et al. presented an algorithm which automatically detects
knives and firearms in CCTV image and alerts the security guard
or operator . Majorly, focusing on limiting false alarms and
providing a real-time application where specificity of the
algorithm is 94.93%.
Ji et al. developed a system for security footage which
automatically identifies the human behavior using
convolutional neural nets (CNNs) by forming deep learning
model which operates directly on the raw inputs .
5
Limitations of the existing Applications/ Models
6
Proposed problem statement
7
Proposed approach of the work
8
User/Stakeholder requirement analysis
9
Software requirement/Technology stack
PyCharm
Python
NumPy
OpenCV
YOLO v3
Pygame
10
Hardware requirements
Storage-512GB or more
RAM-4GB or above
11
Architecture of the Model
Input video Detected guns
Detected frame
Frame conversion
Training data Get location
Image preprocessing
Classification
Alert
Object detection
Database
Object identification
12
Data sets requirement
Different datasets were made for classification and detection. For real-time
purposes, we made our dataset by taking weapon photos from the camera,
data was extracted manually from robbery CCTV videos etc.
13
Modules in the Code
NumPy
OpenCV
Pygame
14
Main functions and its implementation in the Code
for video capture Showing information on the screen
cap = cv2.VideoCapture(value()) class_ids = []
confidences = []
while True: boxes = []
x, vid = cap.read() for out in outs:
if not x: for detection in out:
print("Error: Failed to read a frame from the video scores = detection[5:]
source.") class_id = np.argmax(scores)
break confidence = scores[class_id]
height, width, channels = vid.shape if confidence > 0.5:
outs = net.forward(output_layer_names)
15
Innovation in the project
16
Plan of action to complete the project
17
References
Narejo S, Pandey B, Esenarro Vargas D, Rodriguez C, Anjum MR. Weapon detection using
YOLO V3 for smart surveillance system. Mathematical Problems in Engineering. 2021 May
11;2021:1-9.
M. Grega, A. Matiolanski, P. Guzik, and M. Leszczuk, “Au- ´ tomated detection of firearms and knives in a
CCTV image,” Sensors, vol. 16, no. 1, p. 47, 2016.
Yadav P, Gupta N, Sharma PK. A comprehensive study towards high-level approaches for
weapon detection using classical machine learning and deep learning methods. Expert Systems
with Applications. 2023 Feb 1;212:118698.
Jain H, Vikram A, Kashyap A, Jain A. Weapon detection using artificial intelligence and deep
learning for security applications. In2020 International Conference on Electronics and Sustainable
Communication Systems (ICESC) 2020 Jul 2 (pp. 193-198). IEEE.
18