Trinetra

Trinetra: The Divine Eye of Mahakumbh

Trinetra Logo

Team ID: TH1296

๐ŸŒŸ Overview

Trinetra is an AI-powered surveillance and assistance system designed for large-scale religious gatherings like Mahakumbh. The platform ensures real-time crowd monitoring, rapid emergency response, and seamless navigation for millions of pilgrims through integrated mobile and web interfaces. It features advanced AI analytics including facial recognition for lost & found, GPS-based family tracking with automated alerts, disaster prediction, and dynamic emergency routing.

๐ŸŽฏ Problem & Solution

Problem Statement

Mass gatherings at events like Mahakumbh face critical challenges including:

Solution

Trinetra provides a comprehensive AI-powered solution integrating:

๐Ÿ—๏ธ System Architecture

System Architecture Overview showing integrated components and data flow

๐Ÿ”„ Logic & Workflow

Data Collection

Processing

Output

๐Ÿ‘ฅ User Roles

Pilgrim Interface

Pilgrim mobile app interface showing family tracking and emergency features

Admin Dashboard

Administrative control panel with real-time monitoring and crowd analytics

Medical Admin Interface

Medical emergency management system with ambulance coordination and patient tracking

๐Ÿ› ๏ธ Tech Stack

Frontend

Backend

Database

AI/ML

Real-time Communication

Security & Deployment

๐Ÿ“ Project Structure

Trinetra/
โ”œโ”€โ”€ ai-guided-map/          # AI-powered navigation system
โ”œโ”€โ”€ crowd-detection/        # Real-time crowd monitoring
โ”œโ”€โ”€ gun-detection/          # Weapon detection system
โ”œโ”€โ”€ image-recognition/      # Image processing and analysis
โ”œโ”€โ”€ lost-and-found/         # Facial recognition for missing persons
โ”œโ”€โ”€ mahakumbh-disaster-prediction/  # Disaster prediction system
โ”œโ”€โ”€ peoples/               # People counting and analysis
โ”œโ”€โ”€ Trinetra/              # Main React application
โ””โ”€โ”€ images/                # Project documentation images

๐Ÿ“ฑ Mobile App (APK)

Download and Install

The Trinetra mobile application is available as an APK file for Android devices.

APK File: base.apk

Installation Instructions

Method 1: Direct Installation (Android)

  1. Enable Unknown Sources:
    • Go to Settings โ†’ Security โ†’ Unknown Sources
    • Enable โ€œInstall from Unknown Sourcesโ€ or โ€œAllow from this sourceโ€
  2. Download APK:
    • Download the base.apk file from the repository
    • Transfer to your Android device via USB, email, or cloud storage
  3. Install:
    • Open the APK file on your Android device
    • Tap โ€œInstallโ€ when prompted
    • Grant necessary permissions (Location, Camera, Storage)

Method 2: Using ADB (Advanced)

# Install via ADB (Android Debug Bridge)
adb install base.apk

# Or install and grant permissions
adb install -g base.apk

Mobile App Features

System Requirements

๐Ÿš€ Quick Start

Prerequisites

  1. Clone the repository
    git clone <repository-url>
    cd Trinetra
    
  2. Start all services
    docker-compose up -d
    
  3. Access the applications
    • Main Application: http://localhost:3000
    • AI Guided Map: http://localhost:3001
    • Crowd Detection: http://localhost:5000
    • Gun Detection: http://localhost:5001
    • Image Recognition: http://localhost:5002
    • Lost & Found: http://localhost:5003
    • Disaster Prediction Backend: http://localhost:5004
    • Disaster Prediction Frontend: http://localhost:3002
    • User Frontend: http://localhost:3003
    • People Counting: http://localhost:5005

Manual Setup

1. Main React Application (Trinetra)

cd Trinetra
npm install
npm run dev

2. AI Guided Map

cd ai-guided-map
npm install
npm run dev

3. Crowd Detection

cd crowd-detection
pip install -r requirements.txt
python app.py

4. Gun Detection

cd gun-detection
pip install -r requirements.txt
python main.py

5. Image Recognition

cd image-recognition
pip install -r requirements.txt
python app.py

6. Lost & Found

cd lost-and-found
pip install -r requirements.txt
python app.py

7. Disaster Prediction Backend

cd mahakumbh-disaster-prediction/backend
pip install -r requirements.txt
python app.py

8. Disaster Prediction Frontend

cd mahakumbh-disaster-prediction/frontend
npm install
npm run dev

๐Ÿ”ง Configuration

Environment Variables

Each service requires specific environment variables. Copy the example files and configure:

# For Python services
cp gun-detection/env.example gun-detection/.env
cp image-recognition/env.example image-recognition/.env

# Configure your API keys and database connections

API Keys Required

๐Ÿ“Š Features Showcase

Real-time Crowd Monitoring

Live crowd density visualization with heat maps and movement patterns

Facial Recognition System

AI-powered facial recognition system for lost person identification and matching

Emergency Response Dashboard

Emergency response coordination center with real-time alerts and resource management

Disaster Prediction Analytics

Predictive analytics dashboard showing weather patterns, satellite imagery, and risk assessment

GPS Tracking Interface

Real-time GPS tracking system for family member location monitoring and alerts

Medical Emergency System

Medical emergency response system with ambulance booking and hospital location services

AI-powered navigation system with offline mapping and route optimization

Admin Control Panel

Centralized administrative control panel for system monitoring and management

Real-time Analytics

Real-time data analytics dashboard with crowd statistics and trend analysis

Security Monitoring

Advanced security monitoring system with threat detection and surveillance capabilities

๐Ÿ”ฎ Future Scope

Advanced Features

Scalability

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘ฅ Team

Team ID: TH1296

๐Ÿ“ฑ Mobile App Troubleshooting

Common APK Installation Issues

  1. Installation Blocked by Security
    # Solution: Enable Unknown Sources
    Settings โ†’ Security โ†’ Unknown Sources โ†’ Enable
    
  2. Permission Denied Error ```bash

    Grant all required permissions during installation

    • Location Access
    • Camera Access
    • Storage Access
    • Network Access ```
  3. App Crashes on Startup ```bash

    Check system requirements

    • Android 6.0+ required
    • 2GB RAM minimum
    • 100MB free storage ```
  4. GPS/Location Not Working
    # Enable location services
    Settings โ†’ Location โ†’ Enable
    Settings โ†’ Apps โ†’ Trinetra โ†’ Permissions โ†’ Location โ†’ Allow
    
  5. Network Connection Issues ```bash

    Check network settings

    • WiFi or 4G/5G connection required
    • Firewall settings
    • VPN conflicts ```

๐Ÿ“ž Support

For support and questions, please contact the development team or create an issue in the repository.


Trinetra - Ensuring safety and peace of mind for millions of pilgrims through the power of AI and technology.