readme_content = """# Enhanced Shoplifting Detection System
- 🔐 Secure login system
- 🎥 Real-time video processing
- 🚨 Automatic anomaly detection and capture
- 📊 Live monitoring dashboard
- 📁 Anomaly image management
- 🔄 Alert system with different severity levels
- Run the installation script:
python install_system.py - Place your YOLOv8 model in
config/shoplifting_weights.pt - Run the system:
python run_detection_system.py
- Email: madhu25@gmail.com
- Password: madhu123
- Access the system at http://localhost:5000
- Login with the provided credentials
- Upload a video file
- Start detection
- Monitor live feed and captured anomalies
config/- Configuration files and modeluploads/- Uploaded video filesanomalies/- Captured anomaly imageslogs/- System logsstatic/- Static web assetstemplates/- HTML templates
/- Login page/dashboard- Main dashboard (requires login)/upload_video- Upload video file/start_detection- Start detection/stop_detection- Stop detection/video_feed- Live video stream/anomalies- Get anomaly data/anomaly_images/<filename>- Serve anomaly images
Edit config/enhanced_parameters.py to customize:
-
Detection thresholds
-
High-value zones
-
Behavior patterns
-
Alert settings """
with open("README.md", "w") as f: f.write(readme_content) print("✓ Created README.md")
def main(): """Main installation function""" print("🔧 Enhanced Shoplifting Detection System Installer") print("=" * 50)
# Install requirements
if not install_requirements():
print("❌ Installation failed!")
sys.exit(1)
# Create project structure
create_project_structure()
# Create sample files
create_sample_files()
print("\n✅ Installation completed successfully!")
print("\nNext steps:")
print("1. Place your YOLOv8 shoplifting detection model in 'config/shoplifting_weights.pt'")
print("2. Run: python run_detection_system.py")
print("3. Open browser to: http://localhost:5000")
print("4. Login with: madhu25@gmail.com / madhu123")
if name == "main": main()