Skip to main content

A library for converting text into ASL gestures.

Project description

SignAvatar Library Installation Guide

  1. Prerequisites Before installing the SignAvatar library, ensure your system meets the following prerequisites:

Python 3.7+: Make sure Python 3.7 or above is installed. Verify installation: Open a terminal and run python --version. pip: Python's package installer, used for installing dependencies. Verify installation: Run pip --version. Network Connection: A stable internet connection is required to install dependencies and retrieve online gesture resources if using URL-based videos. 2. Installation Steps Step 1: Download the SignAvatar Library Obtain the SignAvatar library code package. Clone from a repository (if hosted on GitHub or similar platform) using: bash Copy code git clone https://github.com/username/signavatar.git Or, download the library files as a .zip and extract them to your desired directory. Step 2: Install Required Dependencies Navigate to the directory containing the library files and install dependencies listed in requirements.txt.

bash Copy code cd signavatar pip install -r requirements.txt Note: The requirements file should include necessary packages such as requests for HTTP requests, json for JSON handling, and any additional dependencies used by the library.

  1. Setting Up Gesture Data Files The library relies on gesture data files (ASLLVD or WLASL datasets) in JSON or CSV format. You will need to obtain these files separately and place them in the same directory as the library or specify the path during usage.

ASLLVD/ WLASL Dataset:

Download the ASLLVD dataset (ASLLVD_videos.csv) or WLASL dataset (WLASL_videos.json). Place the downloaded dataset in the signavatar directory. File Structure Example:

Copy code signavatar/ ├── ASLLVD_videos.csv ├── WLASL_videos.json ├── signavatar.py ├── requirements.txt 4. Testing the Library Installation Once installed, test the library to verify that it is functioning as expected.

Open a Python environment (terminal or IDE).

Run the following code to initialize SignAvatar and display gesture URLs.

python Copy code from signavatar import SignAvatar

Initialize SignAvatar

avatar = SignAvatar(language="ASL", style={"color": "blue", "brightness": 0.8}, expression="happy")

Test loading gestures

print("Loaded gestures:", len(avatar.gestures)) # Expected output: number of gestures loaded

Test retrieving a gesture URL

print("Video URL for 'hello':", avatar.get_video_url("hello")) If successful, you should see output showing the loaded gestures and a video URL for the specified sign.

Test Animation Rendering: Run the following code to test the sign() method for rendering animations:

python Copy code animation_sequence = avatar.sign("Hello how are you?") print("Generated Animation Sequence:") for animation in animation_sequence: print(animation) This should return an animation sequence based on the phrase.

  1. Library Integration in Projects To integrate SignAvatar into other projects, simply import it as a module. For example:

Copy the signavatar directory to your project’s directory.

Import and use SignAvatar methods in your project’s Python files:

python Copy code from signavatar import SignAvatar

avatar = SignAvatar() avatar.sign("Sample text to animate.") 6. Troubleshooting Module Not Found: Ensure the signavatar.py file is in the project’s root directory or PYTHONPATH. Missing Dependencies: Re-run pip install -r requirements.txt to install dependencies. Error Loading Gesture File: Confirm that the dataset file (e.g., ASLLVD_videos.csv) is present and named correctly.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

signavatar-0.1.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file signavatar-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: signavatar-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for signavatar-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 92a6b53dda36c5a8e8ff8114d8509ab51311144b0259f9e14d4ccde168df1d39
MD5 1ad360945aeaf0cb6a41c0ab551e1e99
BLAKE2b-256 e90a30a2e8c275f42a0bae8046f8524e08bfc84588d54277571a8b77914505a7

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