" Talk to a man in a language he understands, that goes to his head. Talk to him in his own language, that goes to his heart. "
This project introduces Sign Language recognition system which can recognize American Sign Language.
The project makes use of Convolutional Neural Network (CNN) Algorithm for training and to classify the images. The proposed system was able to recognize 10 American Sign gesture alphabets with high accuracy.
Model has achieved a remarkable accuracy of 97.89%
It requires python version 3.6 or later as to synchronize with tensorflow.
-
collect_data.py file will help in creating your own dataset using webcam.
-
cnn_model.py file will use Convolutional Neural Network (CNN) to train the model and store it in the form of hadoop distributed (h5) format.
-
gesture_predict.py file will recognise the gesture as per the trained dataset.
-
SignDetector.py file contains the code used to built the UI of the application.
- python 3.6 or later
- tkinter module
- tensorflow
- keras
- opencv
- pillow
- numpy
- imutils
- matplotlib
Python is usually installed by default on most modern systems. To check what python version you currently have, open a terminal and run the following command:
python --version
This should output some information on the installed Python version. You can also install python by following these instructions: https://installpython3.com/
Install tensorflow framework with the following command
python -m pip install tensorflow --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org
For upgradation use the following command
pip install tensorflow==2.0.0-alpha0
Install keras with the following command
pip install keras
Note: if keras doesnt work just replace keras.model to tensorflow.keras.model and keras.preprocessing to tensorflow.keras.preprocessing
Install opencv for python with the following commands
pip install opencv-python==3.4.2.16
pip install opencv-contrib-python==3.4.2.16
Install PIL with the following command
pip install pillow
Install numpy with the following command
pip install numpy
Install imutils with the following command
pip install imutils
Install matplotlib with the following command
pip install matplotlib
There are 2 ways to run the project which are as follows:
-
You will be able to run the project by simply running the SignDetector.py file.
-
You will be able to execute the app by running the following command from terminal in the project directory.
On Windows:
.\SignDetector.bat
On Unix:
./SignDetector.sh