The goal of this project is to use deep learning techniques to develop a system capable of classifying and segmenting prohibited items within luggage images. This approach aims to enhance security screening processes by identifying unsafe images and highlighting objects that pose potential threats.
You can access the original dataset, cleaned dataset and trained models on Google Drive.
- Classification: Classify images as safe or unsafe.
- Segmentation: Highlight and segment the detected prohibited items.
This project involves several key steps:
- Data Cleaning and Preparation: The dataset required cleaning to remove anomalies and reorganize it for effective model training.
- Model Training: Developed and trained a custom deep learning model for object classification and segmentation.
- Model Evaluation: Assessed the performance of the trained model using relevant metrics to ensure high accuracy and reliability.
- Implementation: Integrated the trained model into a system that can process luggage images, highlighting prohibited items for security personnel.
The dataset is divided into 4 folders
- annotations
- gun
- knife
- safe
annotations includes the annotated masks for each corresponding image.
Following versions were installed in a virtual env created by miniconda to enable GPU usage with tensorflow.
- Python: 3.10.14
- Tensorflow: 2.10.1
- cudatoolkit: 11.2
- cudnn: 8.1.0
- Other Libraries: Listed in
requirements.txt
To use this environment with Jupyter Notebook, follow these steps to add it as a kernel:
- Activate Your Environment:
conda activate your-environment-name
- Install ipykernel:
conda install ipykernel
OR
pip install ipykernel
- Add Environment as a Kernel:
python -m ipykernel install --user --name=your-environment-name
- Launch Jupyter Notebook/Lab: When you create or open a notebook, select your-environment-name from the kernel dropdown menu under Kernel > Change kernel.
- Download Datasets and Models: Download the datasets and trained models from Google Drive and place them in the appropriate directories as specified in the project documentation.
These resources provided valuable insights and tutorials that aided in understanding and implementing components of this project.
- YouTube Videos:
- Articles:
For more detailed information about the project, including methodology details, and additional insights, please refer to the docs.pdf document located in the docs folder of the project repository.