StreeRaksha is an AI and IoT-powered platform designed to enhance public safety for women through real-time threat detection and rapid response mechanisms. By leveraging advanced computer vision, machine learning, and edge IoT devices (like Raspberry Pi), the system analyzes live CCTV feeds and sensor data to identify potential threats and alerts authorities via an integrated dashboard.
Women face unique safety challenges in public spaces, especially in high-risk areas or during late hours. Traditional surveillance systems are reactive and often fail to prevent incidents. StreeRaksha addresses this gap by using AI and IoT to detect threats in real-time and notify authorities instantly, enabling quicker interventions and empowering women with actionable safety information.
The project is organized into modular components for better debugging and understanding:
StreeRaksha/
├── main.py # Main application entry point
├── detector.py # Core detector module (contains StreeRakshaDetector class)
├── pose_analyzer.py # Pose analysis functionality
├── gender_detector.py # Gender detection module
├── tracker.py # Person tracking module with periodic gender reclassification
├── thread_manager.py # Advanced multi-threading functionality with priority queues and adaptive processing
├── thread_health_monitor.py # Thread health monitoring and performance analytics
├── priority_queue.py # Priority-based queues for efficient inter-thread communication
├── config_manager.py # Dynamic configuration management for threads
├── firebase_manager.py # Firebase integration for backend services
├── alert_system.py # Alert generation and risk assessment
├── visualizer.py # Visualization and UI rendering
├── logger.py # Logging functionality
├── debugger.py # Debug utilities
├── reset_camera.py # Camera reset utility
├── firebase_config.json # Firebase configuration (with .example template)
├── requirements.txt # Project dependencies
├── yolov8n.pt # YOLOv8 model file
├── evidence/ # Saved evidence images and sensor data
├── logs/ # Application logs
├── docs/ # Documentation
└── __pycache__/ # Python bytecode cache
The system implements an advanced gender reclassification mechanism to improve accuracy over time:
# Clone the repository
git clone https://github.com/HemanthKumar-CS/StreeRaksha.git
cd StreeRaksha
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Configure environment variables (if needed)
# Run the main application
python main.py
# To debug or reset the camera if issues occur
python reset_camera.py
For development with enhanced logging and debug visualizations:
# In main.py
debugger.debug_overlay = True # Enable debug overlay
StreeRaksha/
├── app.py # Main application entry point
├── api/ # Backend API endpoints
├── models/ # AI models and detection logic
├── edge/ # Edge device code for Raspberry Pi
├── dashboard/ # Web dashboard
├── mobile/ # Mobile app code
└── docs/ # Documentation
This project is licensed under the MIT License - see the LICENSE file for details.
StreeRaksha is proprietary software. All rights reserved. © 2024 StreeRaksha Team.
Unauthorized copying, modification, distribution, or use of this software is strictly prohibited. This repository is shared for demonstration purposes only.
StreeRaksha is an AI and IoT-powered platform designed to enhance public safety for women through real-time threat detection and rapid response mechanisms. By leveraging advanced computer vision, machine learning, and edge IoT devices (like Raspberry Pi), the system analyzes live CCTV feeds and sensor data to identify potential threats and alerts authorities via an integrated dashboard.
Women face unique safety challenges in public spaces, especially in high-risk areas or during late hours. Traditional surveillance systems are reactive and often fail to prevent incidents. StreeRaksha addresses this gap by using AI and IoT to detect threats in real-time and notify authorities instantly, enabling quicker interventions and empowering women with actionable safety information.
The project is organized into modular components for better debugging and understanding:
StreeRaksha/
├── main.py # Main application entry point
├── detector.py # Core detector module (contains StreeRakshaDetector class)
├── pose_analyzer.py # Pose analysis functionality
├── gender_detector.py # Gender detection module
├── tracker.py # Person tracking module with periodic gender reclassification
├── thread_manager.py # Advanced multi-threading functionality with priority queues and adaptive processing
├── thread_health_monitor.py # Thread health monitoring and performance analytics
├── priority_queue.py # Priority-based queues for efficient inter-thread communication
├── config_manager.py # Dynamic configuration management for threads
├── firebase_manager.py # Firebase integration for backend services
├── alert_system.py # Alert generation and risk assessment
├── visualizer.py # Visualization and UI rendering
├── logger.py # Logging functionality
├── debugger.py # Debug utilities
├── reset_camera.py # Camera reset utility
├── firebase_config.json # Firebase configuration (with .example template)
├── requirements.txt # Project dependencies
├── yolov8n.pt # YOLOv8 model file
├── evidence/ # Saved evidence images and sensor data
├── logs/ # Application logs
├── docs/ # Documentation
└── __pycache__/ # Python bytecode cache
The system implements an advanced gender reclassification mechanism to improve accuracy over time:
# Clone the repository
git clone https://github.com/HemanthKumar-CS/StreeRaksha.git
cd StreeRaksha
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Configure environment variables (if needed)
# Run the main application
python main.py
# To debug or reset the camera if issues occur
python reset_camera.py
For development with enhanced logging and debug visualizations:
# In main.py
debugger.debug_overlay = True # Enable debug overlay
StreeRaksha/
├── app.py # Main application entry point
├── api/ # Backend API endpoints
├── models/ # AI models and detection logic
├── edge/ # Edge device code for Raspberry Pi
├── dashboard/ # Web dashboard
├── mobile/ # Mobile app code
└── docs/ # Documentation
This project is licensed under the MIT License - see the LICENSE file for details.
StreeRaksha is proprietary software. All rights reserved. © 2024 StreeRaksha Team.
Unauthorized copying, modification, distribution, or use of this software is strictly prohibited. This repository is shared for demonstration purposes only.