CoolFace
Apppublic

Alya5070/bridgesign

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
App README

Bridge Sign - Final Year Project (FYP)

![Python](https://www.python.org/) ![Flask](https://flask.palletsprojects.com/) ![MediaPipe](https://mediapipe.dev/) ![TensorFlow](https://www.tensorflow.org/)

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

FeatureDescriptionIcon
Real-time RecognitionDual-hand tracking for static and dynamic gestures.โšก
Interactive LearningGamified tutorials and quizzes with live feedback.๐ŸŽ“
Text-to-SignVisual dictionary mapping text to sign videos.๐Ÿ“–
Advanced AnalyticsData-driven insights into learning progress.๐Ÿ“Š
Admin SuiteOn-the-fly model training and system management.๐Ÿ› ๏ธ

๐Ÿ“ฆ 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

bash
git clone https://github.com/Moriluna/Hand-Sign-Detection2.git
cd Hand-Sign-Detection2
pip install -r requirements.txt

3. Environment Configuration

Create a .env file in the root directory:

env
SECRET_KEY=your_secure_random_key
DEBUG=True

4. Database Initialization

The system uses SQLite (via SQLAlchemy). The database schema is automatically created upon the first run.

bash
python app.py

Default Admin Credentials: Admin / admin123


๐Ÿ—๏ธ Project Architecture

The system operates on a sophisticated pipeline to ensure low-latency recognition:

  1. 1.Frame Capture: OpenCV captures raw video input.
  2. 2.Preprocessing: MediaPipe extracts 21 3D-coordinates (landmarks) per hand.
  3. 3.Feature Extraction: Coordinates are normalized relative to the wrist and scaled.
  4. 4.Inference:
  5. 5.Static: Landmark data is fed into an MLP model.
  6. 6.Dynamic: A temporal buffer (16 frames) is analyzed for motion patterns.
  7. 7.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.