Skip to content

Mayuur15/Code.INIT-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gesture-to-Speech Web Translator (Code.INIT-)

A real-time web application designed to recognize hand gestures and translate them into actionable text or speech. This project bridges communication gaps by running a full machine learning pipeline—from custom landmark data collection to live browser-based inference.

Overview

This repository contains the complete workflow for a gesture recognition tool. It uses a Python-based pipeline to capture and train hand landmarks (using computer vision tools like MediaPipe) and a JavaScript/HTML frontend utilizing WebRTC to stream and process video directly in the browser.

Repository Structure

  • collect_data.py: Python script used to capture webcam feeds, extract hand landmarks, and save the coordinates for model training.
  • dataset.csv: The compiled dataset containing the extracted coordinates and their corresponding gesture labels.
  • gesture_model.pkl: The serialized, pre-trained machine learning model used for classifying the gestures.
  • index.html: The main user interface for the web application.
  • script.js: Client-side logic that handles webcam access, WebRTC data channels, and rendering the translated speech/text.
  • assets/: Directory containing static assets (images, stylesheets, etc.).

Tech Stack

  • Frontend: HTML5, CSS3, JavaScript (WebRTC)
  • Computer Vision: MediaPipe (Landmark Extraction)
  • Machine Learning: Python, scikit-learn, Pandas

Setup & Installation

1. Model Training (Optional)

If you wish to retrain the model with your own gestures:

  1. Install Python dependencies: pip install opencv-python mediapipe scikit-learn pandas
  2. Run collect_data.py to launch the webcam and record new gestures into dataset.csv.
  3. Train the model (ensure your training script exports the updated gesture_model.pkl).

2. Running the Web App

  1. Clone the repository:

    git clone [https://github.com/Mayuur15/Code.INIT-.git](https://github.com/Mayuur15/Code.INIT-.git)
  2. Navigate to the project directory.

  3. Serve the directory using any local web server. For example, using Python:

    python -m http.server 8000
    
  4. Open your browser and navigate to http://localhost:8000. (Note: Webcam access requires the site to be served over localhost or https)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors