A cutting-edge deep learning system designed to enhance retail security by detecting and preventing shoplifting in real time. This project leverages YOLO for object detection, DeepSORT for multi-object tracking, and LSTM for activity recognition, ensuring efficient and accurate surveillance.
- Real-Time Detection: Identifies objects such as people and products instantly.
- Behavioral Analysis: Recognizes suspicious actions like concealing items.
- Anomaly Detection: Flags unusual patterns using autoencoders.
- Multi-Object Tracking: Tracks individuals consistently across frames.
Before starting, ensure the following software is installed:
- Python 3.8+
- pip (Python package manager)
- CUDA Toolkit (if using GPU acceleration)
- Supported deep learning frameworks like TensorFlow or PyTorch.
- Download from the official YOLO website or GitHub: YOLOv8 Pre-trained Weights
- Save the file in the
src/models/directory.
- Download annotated datasets for training and testing:
- COCO Dataset
- Custom dataset (if available): Place in the
data/folder.
- Download the appearance feature extractor:
DeepSORT Weights
- Save the
.pbor.pthfile in thesrc/models/directory.
- Save the
- If using pre-trained LSTM for activity recognition:
- Place the file in the
src/models/directory.
- Place the file in the
Shoplifting-Detection/
│
├── README.md # Project documentation
├── LICENSE # License information
├── .gitignore # Ignored files
├── requirements.txt # Python dependencies
├── data/ # Dataset folder
│ ├── train/ # Training dataset
│ └── test/ # Testing dataset
├── src/ # Source code
│ ├── models/ # Pre-trained models and weights
│ ├── utils/ # Utility functions
│ └── main.py # Main script
├── notebooks/ # Jupyter notebooks for experiments
├── results/ # Output logs, results, and images
└── docs/ # Documentation files
git clone https://github.com/username/Shoplifting-Detection.git
cd Shoplifting-Detectionpip install -r requirements.txtPlace the required files (YOLO weights, DeepSORT model, etc.) in their respective folders as described above.
Execute the main script:
python src/main.py- Real-Time Monitoring:
Connect to a live surveillance camera and start detection.
python src/main.py --mode live
- Analyze Recorded Video:
python src/main.py --mode video --path data/test/video.mp4
This project is licensed under the MIT License. See the LICENSE file for details.
We welcome contributions! Follow these steps to contribute:
- Fork the repository.
- Create a new branch (
feature-name). - Submit a pull request.
- YOLO for object detection.
- DeepSORT for multi-object tracking.
- COCO Dataset for training data.