项目作者: brunobpr

项目描述 :
Object Detection Model for ASL Alphabet
高级语言: Jupyter Notebook
项目地址: git://github.com/brunobpr/Signans.git
创建时间: 2021-05-04T15:17:32Z
项目社区:https://github.com/brunobpr/Signans

开源协议:Apache License 2.0

下载


Signans - The Conversation Tool

In an attempt to maximize inclusion and expand the level of communication between signers and non-signers, this project employs the use of machine learning to translate American Sign Language fingerspelling alphabet into text and speech in real-time.

  • To load Signans on your project, follow this tutorial.
  • To load the Lite version, follow this tutorial.
  • To load the JS version, follow this tutorial.

  • To test Signans on your machine with OpenCV, follow the next steps.

1. Create Virtual Python Environment

Use the package manager pip to install virtualenv and create a virtual environment on your machine.

  1. pip install virtualenv
  2. python3.8 -m venv signans-python

On Windows, run:

  1. signans-python\Scripts\activate.bat
  2. pip install --upgrade pip
  3. cd signans-python

On Unix or MacOS, run:

  1. source signans-python/bin/activate
  2. pip install --upgrade pip
  3. cd signans-python

2. Clone Signans and Download Packages

  • Clone Signans GitHub repository:
  1. git clone https://github.com/brunobpr/Signans
  • Download TensorFlow Models:
    1. git clone https://github.com/tensorflow/models.git
  • Install the required packages:

    1. pip install -r Signans/requirements.txt
  • Move the models to the python environment:

On Windows, run:

  1. move "models\research\object_detection" "Lib\site-packages"
  2. move "models\official" "Lib\site-packages"
  3. cd Signans

On Unix or MacOS, run:

  1. mv models/research/object_detection lib/python3.8/site-packages
  2. mv models/official lib/python3.8/site-packages
  3. cd Signans

3. Run the Script

  1. python Signans.py

Once the video capturing window opens, use the ASL alphabet to finger-spell words or sentences. There are two extra signs, space and dot.

  • Space (left) means end of the word;
  • Dot (right) triggers the text-to-speech function.

space-dot-signs

To change the detection speed, run the scrip with the argument —speed or -s:

  1. python Signans.py --speed {time in seconds}
Signans with Google Translator
  • To enable Google Translator, you need to set up an authentication key.
  • Once the authentication key is generated and downloaded, move it to signans-python/Signans and rename it as authentication.json

At the moment the supported languages are:
| Language | Code |
|:————: |———:|
|French | fr|
|Spanish | es|
|Portuguese | pt |
|Mandarin | zh|

To change the language, run the scrip with the argument —language or -l

  1. python Signans.py --language {code}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Apache 2.0