Converting the American sign language into speech or text, and vice versa.
Project description
Sign to speech (StoS):
Converting the American sign language into speech, and vice versa.
Project Description:
StoS is a python library, created by a team from the Egyptian information technology institute (ITI) as their graduation project.
The main purpose of the library is converting the American sign language to speech, and vice versa, this is achieved by using deep learning, NLP, and computer vision. The first release of the project is limited only to the following 50 common English word:
[age, book, call, car, day, Egypt, English, enjoy, every, excuse, football, forget, fun, good, hate, have, hello, help,
holiday, I, am, love, meet, month, morning, my, NA, name, nice, no, not, number, okay, picture, play, read, ride, run,
sorry, speak, sport, take, thanks, time, today, understand, what, when, where, year, yes, you, your]
StoS is divided into two main pipelines:
1. sign to speech:
In sign to speech pipeline, the primary role is converting the streamed American sign language videos into a set of sentences, or voice, using NLP pipeline, after being predicated by our DL model.
The output of that DL model is a list of words, so in order to construct a basic English sentences, these words will pass through NLP model for modification, and sentence construction and correction. As a result of the previous processes, we will have an English text, which is grammatically correct, and can be converted into audio clip up to the user preferences.
2. speech to sign:
This pipeline controls the translation process of the streamed speech into American sign language video.
Work Flow
Prerequisites
- python 3.8
- OpenCV
Installation
pip install stos
How to use
To Convert Sign to Speech
import os
from cv2 import cv2
from stos.sign_to_speech.sign_to_speech import SignToSpeech
sts = SignToSpeech(1, 20, os.path.join('model', 'cv_model.hdf5'), os.path.join('model', 'names'),
display_keypoint=True, display_window=False)
for word, frame in sts.start_pipeline():
cv2.imshow('frame', frame)
key = cv2.waitKey(1)
if key == ord('q'):
exit(0)
To Convert Speech to Sign
from cv2 import cv2
from stos.speech_to_sign.speech_to_sign import SpeechToSign
sts = SpeechToSign(10)
for frame in sts.start_pipeline():
cv2.imshow('frame', frame)
key = cv2.waitKey(1)
if key == ord('q'):
exit(0)
Contributors:
- Abdelaziz Gamal Mousa
- Amira Mohammed Abd Elmajeed
- Habiba Khaled Ibrahim
- Sara Hesham Hassan
- Amal Abdalah Saad
- Abdallah Gaber Ahmed Elsharawy
- Ahmed Mohamed Ibrahem Sayed
- Mohamed Hany Ahmed Abdelaty
- Mostafa Gaber Aboelghit Abdou Elraghy
- Muhammad Ayman Muhammad El-sawy
- Ahmed Tarek Mansour Al Ashry
Licence
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file stos-1.0.0.tar.gz
.
File metadata
- Download URL: stos-1.0.0.tar.gz
- Upload date:
- Size: 99.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 310249ae13c354272a511e85e5eade49f4e777aaf491c9420ed797886b6406c2 |
|
MD5 | 2b6f3545a35c1089c6aa4bba4691e89d |
|
BLAKE2b-256 | 2b43dd735b4e4b8aa593aa02ef7293495fc71c522cdac8df04cf1303d03a59fb |
File details
Details for the file stos-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: stos-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7286b5ccc10a13409f217bdc85e64a8cf0d8a745632cf3198c437c6afa23e9e |
|
MD5 | b7acab37313d84ce33e8c1a28ea6240c |
|
BLAKE2b-256 | 58d1d4bd31b81e5576fd34f115db209c70b46bab3865ca30cdcd88863088e874 |