Git Product home page Git Product logo

asl_translation's Introduction

C-ASL (Convolutional American Sign Language)

demo alt_text First time seeing this directory? Follow these 3 steps:

  1. Go to a directory that you're okay with putting these projects files in
  2. Type into terminal or command line: git clone https://github.com/Abhishaike/ASL_Translation.git
  3. Type into terminal or command line: cd ASL_Translation

You'll have to repeat step 3 if you ever navigate to a different directory~


Run the model

Requirements: Needs cv2, numpy, keras and PIL installed.

  1. Run predict.py.
  2. This will open up your webcam and draw a small blue box on the screen.
  3. Place the palm of your hand so that the middle of your palm covers the box, then press space.
  4. The box should follow your hand around, and the translations of your hand symbols should appear in white at the top left of the screen. Translations are better if you keep your face out of the box and do it on a neutral background.

Train

First download the data from. Link to the Alex's data and built 24 class model - https://drive.google.com/drive/folders/1VlhTLQ6MeMyVh-sVBBcnKz46i6Tx9ODn

Want to create new training data? Follow step 1 for hand-data, or step 2 for non-hand-data

  1. Type into terminal or command line: python3 data_collection.py -n YOUR_NAME -c CHARACTER_WANTED.

You'll be given a few seconds to prepare. Make sure you have some webcam-viewing application open during this ('Photobooth' for mac), so you can make sure that your hand is taking up a lot of the screen and is correctly positioned. Remember to move your hand angle around just little bit during the video process, diverse data is a good thing! However, never do any large angle changes, our feature extraction technique is NOT rotation-invariant. We will be using this: http://lifeprint.com/asl101/fingerspelling/images/signlanguageabc02.jpg as our ASL reference. Finally, always use your right hand when collecting data!

  1. Type into terminal or command line: python3 data_collection.py -n YOUR_NAME -c None

As with before, you'll be given a few seconds to prepare. And also as before, make sure you have some way to view your web-cam activites, there should be NO hands ever on the screen. Diverse data is also important here, move around a little and hold up objects (of course, without ever showing your actual hands on camera).

Training a new model

Download https://drive.google.com/file/d/1PEAWb_f86C8IZEkCujE7fohXrDaNVf0c/view?usp=sharing and extract it to the repository. Run train.py. This will train the model from the data in the \data-one\ directory along with the kaggle dataset. It separates training and testing data automatically, but within the data file there must be a different file for each class. The new model will be saved as model.h5, and will overwrite any model files you already have in the same directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.