Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telangana RTC Mahalakshmi Scheme Verification System

A secure web application to verify Aadhaar eligibility for the Mahalakshmi Free Travel Scheme in Telangana RTC buses.

🚀 Features

  • Aadhaar QR Scanning: Instantly decodes Aadhaar QR codes (supports standard and secure formats).
  • Eligibility Verification: Automatically checks if Gender is Female and State is Telangana.
  • Fraud Detection: Detects missing fields, tampered data, and invalid QR codes.
  • Live Location Mapping: Displays the passenger's district on an interactive map of Telangana.
  • Digital Audit Logs: Maintains a secure CSV log of all verifications for government auditing.
  • Premium UI: Glassmorphism design with responsive mobile-first layout.

🛠️ Tech Stack

  • Backend: Python (Flask)
  • Frontend: HTML5, CSS3 (Glassmorphism), Leaflet.js
  • Processing: Pyzbar (QR Decoding), Pillow (Image Processing)
  • Data: CSV (Logging), JSON (QR Payload)

📂 Project Structure

aadhaar_rtc_verification/
├── app.py                 # Main Flask Application
├── generate_test_cases.py # Script to generate dummy QR codes for testing
├── requirements.txt       # Python dependencies
├── verification_logs.csv  # Audit logs (auto-generated)
├── static/
│   ├── style.css         # Premium styling
│   └── ...               # Images and assets
├── templates/
│   ├── index.html        # Scanner Interface
│   └── logs.html         # Admin Log Viewer
└── samples/              # Generated test QR codes

⚡ How to Run

  1. Install Dependencies:

    pip install -r requirements.txt
  2. Generate Test QRs (Optional):

    python generate_test_cases.py
  3. Start the Application:

    python app.py
  4. Open in Browser: Go to http://127.0.0.1:5000

🧪 Testing

Use the QR codes in the samples/ folder to test different scenarios:

  • valid_female_hyd.png -> ✅ Eligible
  • valid_male_warangal.png -> ❌ Not Eligible (Male)
  • invalid_state_ap.png -> ❌ Not Eligible (Andhra Pradesh)
  • tampered_... -> ⚠️ Fraud Detected

📜 License

Designed for Telangana RTC Project Proposal.

Releases

Packages

Contributors

Languages