# π€ Kenyan Sign Language Detection Application
A real-time Kenyan Sign Language (KSL) detection and translation system powered by Machine Learning, OpenCV, and MediaPipe Hand Landmarker.
The application detects Kenyan Sign Language gestures from a webcam feed, translates them into text in real time, converts text into speech, and supports text-to-sign translation using pre-recorded sign videos.
## π Features
* β
Real-time KSL gesture detection
* β
Live webcam prediction
* β
Sign-to-text translation
* β
Text-to-speech conversion
* β
Text-to-sign video translation
* β
MediaPipe Hand Landmarker integration
* β
Machine Learning gesture classification
* β
streamlit web application
* β
CPU optimized for low-powered laptops
---
## π§ Technologies Used
* Python 3.10+
* streamlit
* OpenCV
* MediaPipe Tasks API
* Scikit-learn
* XGBoost
* NumPy
* pyttsx3
Research and implementation were inspired by real-time sign language detection systems and pose-based gesture recognition pipelines. ([arXiv][1])
---
# π Project Structure
```bash
kenya-sign-language-detection-app-application/
β
βββ app.py
βββ videos/
β βββ agreement/
β β βββ sign1.mp4
β βββ good/
β βββ bad/
β
βββ model_config.pkl
βββ label_encoder.pkl
βββ mean.pkl
βββ std.pkl
βββ hand_landmarker.task
βββ requirements.txt
βββ README.md
```
---
# βοΈ Installation Guide
## 1οΈβ£ Clone Repository
```bash
git clone
github.com
```
Or visit:
Kenya Sign Language Detection Application Repository
---
## 2οΈβ£ Create Virtual Environment
### Windows
```bash
python -m venv venv
venv\Scripts\activate
```
### Linux / Mac
```bash
python3 -m venv venv
source venv/bin/activate
```
---
## 3οΈβ£ Install Dependencies
```bash
pip install -r requirements.txt
```
If `requirements.txt` is missing:
```bash
pip install streamlit
pip install opencv-python
pip install mediapipe
pip install numpy
pip install scikit-learn
pip install xgboo β¦