Logo Lanfrica

Djmacco/security_store_alert_AI

Domain:

peace and security

Record type:

software
Creator:
Djm
Host:
Real-time AI security system that detects robbery and forced surrender in stores using 3-layer detection: LSTM pose analysis, YOLOv8 appearance classification, and weapon detection. Instantly alerts store owners and police via SMS when a criminal forces someone to surrender money. Built for Cameroon and African markets. # SafeStore AI πŸ”’ **Real-Time Robbery & Forced Surrender Detection System** Detects criminals forcing store owners to surrender money using 3-layer AI detection. Sends instant SMS alert to owner and police when robbery is detected. --- ## The Goal Detect this specific scenario: ``` Criminal enters store β†’ Points weapon β†’ Forces owner to raise hands ↓ AI detects surrender pose + weapon + masked face ↓ INSTANT SMS to owner + police while robbery is happening ``` --- ## Project Structure ``` SafeStoreAI/ β”‚ β”œβ”€β”€ main.py ← RUN THIS to start detection β”œβ”€β”€ train.py ← Train LSTM action model β”œβ”€β”€ train_weapons.py ← Train weapon detector β”œβ”€β”€ train_appearance.py ← Train appearance classifier β”œβ”€β”€ requirements.txt β”œβ”€β”€ .env.example ← Copy to .env, add your details β”‚ β”œβ”€β”€ ai_engine/ β”‚ β”œβ”€β”€ pose_extractor.py ← MediaPipe body keypoints β”‚ β”œβ”€β”€ threat_engine.py ← Combines 3 layers into threat score β”‚ └── hud.py ← Live display overlay β”‚ β”œβ”€β”€ models/ β”‚ β”œβ”€β”€ violence_lstm.py ← LSTM neural network β”‚ β”œβ”€β”€ weapon_detector.py ← YOLOv8 weapon detection β”‚ β”œβ”€β”€ appearance_detector.py ← YOLOv8 appearance classification β”‚ └── saved/ ← Trained model weights go here β”‚ β”œβ”€β”€ alerts/ β”‚ └── alert_system.py ← SMS via Africa's Talking β”‚ β”œβ”€β”€ database/ β”‚ └── models.py ← Alert history database β”‚ β”œβ”€β”€ utils/ β”‚ β”œβ”€β”€ collect_data.py ← Record training data from webcam β”‚ └── process_videos.py ← Convert videos to .npy sequences β”‚ β”œβ”€β”€ tests/ β”‚ β”œβ”€β”€ test_webcam.py ← Test 1: camera works β”‚ β”œβ”€β”€ test_pose.py ← Test 2: skeleton detection β”‚ β”œβ”€β”€ test_pipeline.py ← Test 3: full system simulation β”‚ └── test_model.py ← Test 4: trained model accuracy β”‚ └── data/ β”‚ β”œβ”€β”€ sequences/ ← AUTO-GENERATED .npy training files β”‚ β”œβ”€β”€ normal_activity/ β”‚ β”œβ”€β”€ surrender_pose/ β”‚ β”œβ”€β”€ threatening_aggressor/ β”‚ β”œβ”€β”€ robbery …