Alya5070/bridgesign
Bridge Sign - Final Year Project (FYP)
   
An advanced, real-time sign language recognition and educational platform. This system bridges the communication gap between the hearing-impaired community and the general public using cutting-edge computer vision and deep learning.
๐ Features Overview
๐ฆ Core Modules
1. ๐ Authentication System
- Secure Access: Robust login and registration system with password hashing.
- Identity Recovery: Multi-step password reset using customizable security questions.
- Security Layers: Integrated CSRF protection, rate limiting, and secure HTTP headers via Talisman.
2. ๐ค Manage Account
- Profile Customization: Users can update their credentials and security settings.
- Progress Tracking: Integrated with the tutorial system to track completion status.
3. โ๏ธ Manage Settings
- Hardware Control: Intelligent camera discovery using DirectShow.
- User Preference: Persistent storage of camera indices and feed preferences.
4. ๐ Manage Learning Module
- Tutorial Levels:
- Basics: Focused on the manual alphabet (A-Z).
- Intermediate: Common words (e.g., "Makan", "Sayang").
- Advanced: Full conversational phrases.
- Quiz System: Real-time assessment where users must perform the correct sign to advance.
5. ๐ Sign-to-Text Translation (Live Recognition)
- Hybrid Model: Combines MediaPipe hand landmarks with a custom MLP (Multi-Layer Perceptron) architecture.
- Gesture Support: High-accuracy detection for both static hand shapes and dynamic movement patterns.
6. ๐ Text-to-Sign Translation
- Visual Dictionary: Maps input text to high-quality sign language video demonstrations.
- Smart Fallback: Automatically reverts to character-by-character spelling for unrecognized words.
- Greedy Matching: Prioritizes multi-word phrases over individual words for natural translation.
7. ๐ Generate Analytical Data
- User Statistics: Visualizes practice frequency and top performing users.
- Sign Popularity: Tracks which signs are most frequently practiced or requested.
- System Health: Real-time monitoring of CPU usage, memory consumption, and model latency.
๐ ๏ธ Admin Guide
The system includes a powerful Administrative Dashboard for system maintainers:
๐ค User Management
- Full CRUD (Create, Read, Update, Delete) operations for user accounts.
- Grant or revoke Administrative privileges with a single click.
๐ง Model Trainer & Updater
- Data Collection: Record new hand signs directly through the browser (standardized 100 frames/sample).
- Dynamic Training: Trigger background training threads for both Static and Dynamic gesture models.
- Instant Update: Deploy newly trained models (
.h5) to the production environment without restarting the server.
๐ Dictionary Manager
- Add new vocabulary by mapping phrases to YouTube video IDs.
- Bulk import/export dictionary data via CSV.
- Manage user-submitted word requests.
โ๏ธ Installation & Setup
1. Prerequisites
- Python 3.8 or higher
- A webcam (for recognition features)
2. Clone and Install
git clone https://github.com/Moriluna/Hand-Sign-Detection2.git
cd Hand-Sign-Detection2
pip install -r requirements.txt3. Environment Configuration
Create a .env file in the root directory:
SECRET_KEY=your_secure_random_key
DEBUG=True4. Database Initialization
The system uses SQLite (via SQLAlchemy). The database schema is automatically created upon the first run.
python app.pyDefault Admin Credentials: Admin / admin123
๐๏ธ Project Architecture
The system operates on a sophisticated pipeline to ensure low-latency recognition:
- Frame Capture: OpenCV captures raw video input.
- Preprocessing: MediaPipe extracts 21 3D-coordinates (landmarks) per hand.
- Feature Extraction: Coordinates are normalized relative to the wrist and scaled.
- Inference:
- Static: Landmark data is fed into an MLP model.
- Dynamic: A temporal buffer (16 frames) is analyzed for motion patterns.
- UI Feedback: Results are piped to the frontend via Flask-SocketIO or AJAX polling for immediate user response.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Developed with โค๏ธ for the Hearing-Impaired Community.
