Complete campus management solution with AI-powered study assistant, face recognition attendance, student/teacher portals, and admin dashboard.
Student & Teacher Portal
- π Secure login for students and teachers
- οΏ½ Student Dashboard: View attendance, profile, statistics
- οΏ½βπ« Teacher Dashboard: Manage students, view department stats
- π€ AI Study Assistant "Topper Bhaiya": Desi-style AI tutor
- Multi-language support (English/Hindi/Hinglish)
- Voice input/output
- Real-time chat with Gemini 2.5 Flash
- Relatable examples from Indian student life
- οΏ½ Real-time attendance tracking
- οΏ½ Profile management
Backend: Vercel (https://iq-backend.vercel.app)
Security & Attendance System
- πΈ Live camera preview with CameraX
- π€ ML Kit face detection
- ποΈ Liveness detection (blink/movement)
- β Real-time face verification
- π Automatic attendance marking
- π Anti-spoofing measures
Backend: Local (http://localhost:3000) - Accesses AI service
Complete System Management
- π₯ Student registration with face enrollment
- π Real-time attendance tracking and analytics
β οΈ AI-powered compliance monitoring- π Interactive charts and statistics
- π₯ Export attendance reports to CSV
- π Secure admin authentication
- π¨βπΌ Staff management
Backend: Vercel (https://iq-backend.vercel.app)
Centralized API Server
- π REST API endpoints
- ποΈ Supabase integration
- πΌοΈ Image processing pipeline
- π Verification logging
- οΏ½ AI Chat integration (Gemini 2.5 Flash)
- π JWT authentication
- π Student/Teacher management
Deployed: https://iq-backend.vercel.app
Face Verification Engine
- π DeepFace embeddings
- π pgvector similarity search
- π Student face enrollment
- β Real-time face verification
- π¨ Anomaly detection
Local: http://localhost:8000
Data Storage & Management
- π€ Student & teacher records
- π’ Face embeddings (128D vectors)
- π Attendance verification logs
β οΈ Compliance logs- π Row Level Security (RLS)
- π Real-time subscriptions
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β IQ Campus App β β Gate Verify β β Admin Web β
β (Students/ β β App (Security) β β Dashboard β
β Teachers) β β β β β
ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ
β HTTPS β HTTP (Local) β HTTPS
β β β
βββββββββββββββββββββββββΌββββββββββββββββββββββββ
βΌ
βββββββββββββββββββββββ
β Backend API β
β (Vercel) β
β - Auth β
β - Student/Teacher β
β - AI Chat (Gemini) β
β - Gate Verify β
ββββββββββββ¬βββββββββββ
β
βββββββββββββββββ΄ββββββββββββββββ
βΌ βΌ
βββββββββββββββββββββββ βββββββββββββββββββββββ
β AI Face Service β β Supabase Database β
β (Local Python) β β (PostgreSQL) β
β - DeepFace βββββββββββ€ - Students β
β - Face Verify β β - Attendance β
β - Enrollment β β - Face Embeddings β
βββββββββββββββββββββββ βββββββββββββββββββββββ
- Personality: Friendly college senior with desi vibes
- Languages: English, Hindi, Hinglish (auto-detects)
- Features:
- Voice input/output
- Real-time chat
- Detailed explanations with relatable examples
- Study tips and guidance
- Powered by: Google Gemini 2.5 Flash
- Live Detection: Real-time face detection with ML Kit
- Anti-Spoofing: Liveness checks (blink/movement)
- Accuracy: DeepFace embeddings with pgvector search
- Speed: < 2 seconds verification time
- Security: Encrypted embeddings, audit logs
- Students: View attendance, profile, chat with AI
- Teachers: Manage students, view department stats
- Admins: Complete system control, analytics, reports
# Starts Supabase + AI Service + Backend + Admin Web
start_all_with_admin.bat# Starts Supabase + AI Service + Local Backend
start_gate_system.bat- Create project at https://supabase.com
- Run migrations in
supabase/migrations/ - Copy credentials to
.envfiles
cd ai-model
pip install -r requirements.txt
cp .env.example .env
# Edit .env with Supabase credentials
python api.py
# Service runs on http://localhost:8000Production (Already Deployed):
- URL: https://iq-backend.vercel.app
- No setup needed!
Local Development:
cd backend
npm install
cp .env.example .env
# Edit .env with credentials
npm start
# Runs on http://localhost:3000cd admin-web
npm install
cp .env.example .env
# Edit .env with backend URL
npm run dev
# Access at http://localhost:5173IQ Campus Connect App:
cd campus-connect-app
build_and_install.bat
# Or manually:
# gradlew.bat assembleDebug
# gradlew.bat installDebugGate Verification App:
cd gate-verification-app/app-frontend
rebuild_and_install.bat
# Or manually:
# gradlew.bat assembleDebug
# gradlew.bat installDebugiq-campus-connect/
βββ campus-connect-app/ # IQ Campus Connect Android App
β βββ app/src/main/java/ # Kotlin source code
β β βββ ui/ # UI screens (Login, Dashboard, AI Assistant)
β β βββ viewmodel/ # ViewModels
β β βββ data/ # Repositories, API, Models
β β βββ di/ # Dependency Injection
β βββ build_and_install.bat # Build & install script
β
βββ gate-verification-app/ # Gate Verification Android App
β βββ app-frontend/
β βββ app/src/main/java/ # Kotlin source code
β βββ rebuild_and_install.bat
β
βββ admin-web/ # Admin Web Dashboard
β βββ src/
β β βββ pages/ # React pages
β β βββ components/ # React components
β β βββ lib/ # Supabase client
β βββ start_admin_web.bat
β
βββ backend/ # Backend API (Node.js)
β βββ src/
β β βββ controllers/ # API controllers
β β βββ routes/ # API routes
β β βββ config/ # Supabase config
β βββ start_backend.bat
β
βββ ai-model/ # AI Face Recognition Service
β βββ services/ # Face recognition logic
β βββ utils/ # Image preprocessing
β βββ api.py # FastAPI server
β βββ start_ai_service.bat
β
βββ supabase/ # Database
β βββ migrations/ # SQL migrations
β βββ config.toml # Supabase config
β
βββ start_all_with_admin.bat # Start all services
βββ start_gate_system.bat # Start gate system
βββ README.md # This file
Backend API (https://iq-backend.vercel.app)
POST /api/auth/login- Student/Teacher loginPOST /api/auth/change-password- Change password
GET /api/student/profile/:id- Get student profileGET /api/student/attendance/:id- Get attendance history
GET /api/teacher/profile/:id- Get teacher profileGET /api/teacher/students- Get students listGET /api/teacher/stats/department- Department statistics
POST /api/ai/chat- Chat with Topper BhaiyaRequest: { "message": "explain photosynthesis" } Response: { "success": true, "message": "Arre bhai, photosynthesis..." }
POST /gate/verify- Verify face and mark attendancePOST /gate/enroll- Enroll new student faceGET /health- Health check
AI Service (http://localhost:8000)
POST /verify- Face verificationPOST /enroll- Enroll new studentGET /health- Health check
Backend (.env):
PORT=3000
SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_anon_key
GEMINI_API_KEY=your_gemini_api_key
AI_MODEL_SERVICE_URL=http://localhost:8000AI Service (.env):
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_service_role_keyAdmin Web (.env):
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_anon_key
VITE_BACKEND_URL=https://iq-backend.vercel.appIQ Campus Connect:
- Backend URL:
https://iq-backend.vercel.app/api - File:
campus-connect-app/app/src/main/java/com/campus/connect/data/network/ApiService.kt
Gate Verification:
- Backend URL:
http://YOUR_LOCAL_IP:3000 - File:
gate-verification-app/app-frontend/app/src/main/java/com/campus/gateverification/network/ApiService.kt - Network Security:
app/src/main/res/xml/network_security_config.xml
- Force stop the app
- Clear app cache in phone settings
- Reopen the app
- Ensure PC and phone are on same network
- Update IP address in
ApiService.kt - Add IP to
network_security_config.xml - Rebuild and install app
# Check Vercel logs
vercel logs
# Test endpoint
curl https://iq-backend.vercel.app/health# Check if service is running
curl http://localhost:8000/health
# Restart service
cd ai-model
python api.pyWhy Hybrid?
- Vercel can't access localhost services
- Gate app needs local AI service for face recognition
- IQ Campus app works from anywhere (uses Vercel)
Setup:
- IQ Campus Connect App β Vercel Backend (https://iq-backend.vercel.app)
- Gate Verification App β Local Backend (http://localhost:3000)
- Admin Web β Vercel Backend (https://iq-backend.vercel.app)
- β JWT-based authentication
- β Row Level Security (RLS) in Supabase
- β Live face detection with ML Kit
- β Anti-spoofing (liveness checks)
- β Encrypted face embeddings
- β Audit logging for all verifications
- β HTTPS for all external communications
cd backend
vercel --prodcd admin-web
npm run build
# Deploy dist/ foldercd ai-model
python api.py
# Keep running on serverMobile Apps:
- Kotlin
- Jetpack Compose
- CameraX
- ML Kit
- Ktor Client
- Hilt (DI)
Backend:
- Node.js
- Express.js
- Supabase JS Client
- Google Generative AI (Gemini)
AI Service:
- Python
- FastAPI
- DeepFace
- NumPy
Admin Web:
- React
- Vite
- Tailwind CSS
- Recharts
- Supabase JS Client
Database:
- PostgreSQL (Supabase)
- pgvector extension
Built with β€οΈ for smart campus management
Apache License 2.0 - See LICENSE file for details.
Copyright 2026 IQ Campus Connect
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.