• Stars
    star
    129
  • Rank 278,258 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

✌️ πŸ‘Œ ✊ πŸ“· Sign Language Recognition using Python

Sign Language Recognition

MIT License image

Recognize American Sign Language (ASL) using Machine Learning.
Currently, the following algorithms are supported:

The training images were retrieved from a video, filmed at 640x480 resolution using a smartphone camera.

Setup:

  • Install Python3 (last tested on Python3.7).
  • Install pipenv.
  • In the project root directory, execute pipenv sync.

Usage:

You can directly start classifying new images using the pre-trained models (the .pkl files in data/generated/output/<model_name>/) trained using the above dataset:

  python predict_from_file.py <model-name>

Note that the pre-generated model files do not contain the file for knn due to its large size.
If you want to use knn, then download it separately from here and place it in data/generated/output/knn/.
The models available by default are svm and logistic.

The above workflow can be executed using run_quick.sh.


However, if you wish to use your own dataset, do the following steps:

  1. Put all the training and testing images in a directory and update their paths in the config file code/common/config.py.
    (Or skip to use the default paths which should also work).
    Optionally, you can generate the images in real-time from webcam - python capture_from_camera.py.
  2. Generate image-vs-label mappings for all the training images - python generate_images_labels.py train.
  3. Apply the image-transformation algorithms to the training images - python transform_images.py.
  4. Train the model - python train_model.py <model-name>. Model names can be svm/knn/logistic.
  5. Generate image-vs-label mapping for all the test images - python generate_images_labels.py test.
  6. Test the model - python predict_from_file.py <model-name>.
    Optionally, you can test the model on a live video stream from a webcam - python predict_from_camera.py.
    (If recording, then make sure to have the same background and hand alignment as in the training images.)

All the python commands above have to be executed from the code/ directory.
The above workflow can be executed using run.sh.

To-Do:

  • Improve the command-line-arguments input mechanism.
  • Add progress bar while transforming images.
  • Add logger.

More Repositories

1

Directory-Snapshot

πŸ“ πŸ’Ύ A tool to create a snapshot ( poor man's backup ) of a directory.
Python
19
star
2

gDrive-auto-sync

☁️ πŸ’Ύ Automatically backup files to your Google Drive account periodically
Python
16
star
3

File-Locker

πŸ” An application which can encrypt any file with a password and make a self-extracting binary for unlocking it.
C++
14
star
4

File-Shredder

βœ‚οΈ A program to shred files and folders securely
C++
11
star
5

interview-notes

πŸ“š πŸ’» Tips and tricks for interview preparation
Python
8
star
6

Pretty-print

πŸ‘Œ A set of template functions written for pretty-printing C++ STL container types.
C++
8
star
7

directsync

πŸ“ πŸ”„ ⌚ An efficient and easy-to-use utility to compare/synchronize/mirror folder contents.
Python
7
star
8

SHA3_512

πŸ” An implementation of SHA-3 hash function with a digest size of 512 bits
C++
7
star
9

Jukebot

🎼 🎹 Generating artificial music using Recurrent Neural Networks
Python
6
star
10

Algo-DS

Implementations of various algorithms and data structures
C++
4
star
11

SHA2_512

πŸ” An implementation of SHA-2 hash function with a digest size of 512 bits
C++
3
star
12

Matrix-Library

πŸ”’ A Generic Matrix Class using C++ Templates capable of doing matrix arithmetic.
C++
2
star
13

grocery-bill-split

βœ‚οΈ πŸ“ƒ πŸ’° A small app to help split the grocery bills
Python
2
star
14

Dictionary

πŸ”€ An application simulating a dictionary
C++
2
star
15

Fraction-Library

πŸ”’ A Generic Fraction Class using C++ Templates for storing and manipulating fractions.
C++
2
star
16

Blackout

πŸ“Ά An application which can toggle devices/services programmatically
C++
2
star
17

STL-Containers

An attempt at writing my own versions of C++ STL containers
C++
2
star
18

Recommend

πŸ’ Implementation of multiple types of recommender systems
Java
2
star
19

snippets

πŸ“‹ Small programs used frequently by me
HTML
2
star
20

Bignum-Library

4️⃣ βœ–οΈ 5️⃣ A "Bignum" Library created using C++ that can handle arithmetic calculations of arbitrarily large numbers.
C++
2
star
21

blog

πŸ“° My blog's articles' source, ideas for new articles etc.
1
star
22

cp-problem-collection

A collection of competitive programming problems.
C++
1
star
23

flashcard

A rudimentary flashcard app
Python
1
star
24

Anmol-Singh-Jaggi.github.io

CSS
1
star
25

cpp

C++ template directory
C++
1
star
26

pomodoro-hard-mode

⏰ πŸ… A pomodoro timer that is hard to ignore.
Python
1
star
27

vscode-markdownfmt

πŸ†š Ⓜ️ β˜‘οΈ Markdown formatter for Visual Studio code.
TypeScript
1
star
28

cpp-py-calculator

A simple C++/Python expression evaluator. Calls Python interpreter from within C++
C++
1
star