This is a machine learning app for real-time Sign Language Detection and Translation, built using the YOLOv5 model and implemented using PyTorch and OpenCV libraries. It can translate common phrases in sign language such as 'hello', 'sorry', 'thank you', 'I love you', etc.
The static web application can be accessed at Streamlit App since Streamlit Cloud doesn't support webcam. For dynamic access, visit the Installation, Local-Usage and App-Usage sections.
- Real-time sign language detection and translation
- Buttons for starting and stopping video capture
- Common Sign Language phrases dictionary in the side bar
- Streamlit Framework for Frontend
- YOLOv5 as the base model for sign language detection
- Roboflow for data annotation
- Python modules:
- Pytorch for implementation of YOLOv5 model
- OpenCV for video capturing and data collection
- Weights and Biases (WandB) for model training
- OS for executing commands on the local machine
- And many more packages like sys, uuid, time, pathlib, argparse, yaml, IPython, etc.
- VSCode and Google Colab for development requirements
- Webcam and Windows OS for hardware requirements
Follow these steps to clone and set up the repository locally:
-
Clone the repository:
git clone https://github.com/SemalJohari/Samvaad-Saathi.git
-
Navigate to the project directory:
cd Samvaad-Saathi
-
Create and activate a virtual environment:
python -m venv venv venv\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
To run the project locally, start the development server or application using:
python run.py
To run the project using a web application with a local host, start the development server or application using:
streamlit run app.py
For running the project on Windows, add the following lines of code immediately after importing libraries in app.py and detect.py to switch from the Posix Path (for MacOS) to Windows Path (for Windows OS) using the pathlib library:
temp = pathlib.PosixPath
pathlib.PosixPath = pathlib.WindowsPath