Skip to main content

Live ASL fingerspelling alphabet recognition with a polished webcam UI.

Project description

signspell

Live ASL fingerspelling alphabet recognition — straight from your webcam.

signspell recognises the American Sign Language manual alphabet (A–Z) in real time using MediaPipe hand tracking and an LSTM model trained on 30-frame keypoint sequences. It ships with a pretrained model and a polished webcam UI, and it works both as a command-line tool and an importable library.


Install

pip install signspell

Requires Python 3.9–3.11. A webcam is required for live recognition.

Run it (CLI)

signspell                  # default webcam, bundled model, pro UI
signspell --camera 1       # pick a different camera
signspell --threshold 0.6  # require higher confidence
signspell --no-mirror      # disable mirrored view

In-window keys: q quit · c clear sentence · SPACE add a space.

Use it (library)

Run the full UI from code:

import signspell
signspell.run()

Or drive recognition yourself, frame by frame:

import cv2
import signspell

rec = signspell.Recognizer()
cap = cv2.VideoCapture(0)

while True:
    ok, frame = cap.read()
    if not ok:
        break
    letter, confidence, probs = rec.predict(frame)
    if letter:
        print(letter, f"{confidence:.2f}")

The Recognizer keeps a rolling 30-frame buffer internally, so you just feed frames and read predictions. letter is None until the buffer fills or when confidence is below the threshold.

How it works

  1. MediaPipe Holistic extracts 21 right-hand landmarks per frame.
  2. The last 30 frames of (x, y, z) keypoints form a sequence.
  3. An LSTM classifies the sequence into one of 26 letters.
  4. A short stability window prevents flicker before a letter is committed.

Bring your own model

signspell --model path/to/your_model.h5
signspell.Recognizer(model_path="path/to/your_model.h5")

Your model must accept input shape (1, 30, 63) and output 26 class scores.

License

MIT © Sundar

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

signspell-1.0.1.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

signspell-1.0.1-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file signspell-1.0.1.tar.gz.

File metadata

  • Download URL: signspell-1.0.1.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for signspell-1.0.1.tar.gz
Algorithm Hash digest
SHA256 604067c1e10b7981096f3c3a711c81e22817991a04deb32e594ea7e901dda669
MD5 541a80eae65ef3f33a4539ef62f1fa7d
BLAKE2b-256 3f0d7eaabe0a72e4ad2976fa357430039639a7ea1f8f34afbf633bfc1ae5373a

See more details on using hashes here.

File details

Details for the file signspell-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: signspell-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for signspell-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbac23c0a42d339a018b4c586061d79081f84390477689dae3e18431b884f862
MD5 58075ccccb293939b3b8f06ba4049a09
BLAKE2b-256 6244fa1ebf7768c7752e98018c18635a56efd591adc27b64585f13a940538efa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page