Skip to main content

Python library for the Sinhala Sign Language (SSL) dataset — landmarks, skeleton images, and preprocessed arrays for 55 sign classes.

Project description

ssl-dataset

Python library for the Sinhala Sign Language (SSL) dataset — 55 sign classes, 4,060 samples, three ready-to-use sub-libraries.

Installation

pip install ssl-dataset

Dataset overview

Type Classes Samples per class Total samples
Static signs (images) 0 – 36 100 3,700
Dynamic signs (videos) 37 – 54 20 360
Total 55 4,060

Sub-libraries

ssl_dataset.landmarks

Raw 3D hand landmark coordinates extracted by MediaPipe.

from ssl_dataset.landmarks import SSLLandmarkDataset

# LSTM / Transformer input — shape (N, 30, 63)
ds = SSLLandmarkDataset(split="train", format="lstm")
X, y = ds.load()
print(X.shape)   # (2842, 30, 63)
print(y.shape)   # (2842,)

# Raw structured format — shape (N, 30, 21, 3)
ds = SSLLandmarkDataset(split="train", format="raw")
X, y = ds.load()
print(X.shape)   # (2842, 30, 21, 3)

ssl_dataset.skeleton

28×28 RGB hand skeleton images generated from MediaPipe landmarks.

from ssl_dataset.skeleton import SSLSkeletonDataset

# CNN-LSTM input — shape (N, 30, 28, 28, 3)
ds = SSLSkeletonDataset(split="train", format="cnn_lstm")
X, y = ds.load()
print(X.shape)   # (2842, 30, 28, 28, 3)

# MLP input — shape (N, 70560)
ds = SSLSkeletonDataset(split="test", format="mlp")
X, y = ds.load()
print(X.shape)   # (609, 70560)

ssl_dataset.preprocessed

Pre-split, pre-labelled numpy arrays — load and train immediately.

from ssl_dataset.preprocessed import SSLPreprocessedDataset

X_train, y_train = SSLPreprocessedDataset("train").load()
X_val,   y_val   = SSLPreprocessedDataset("val").load()
X_test,  y_test  = SSLPreprocessedDataset("test").load()

print(X_train.shape)   # (2842, 30, 63)
print(y_train.shape)   # (2842, 55)  — one-hot encoded

# input_shape helper for model building
ds = SSLPreprocessedDataset("train")
print(ds.input_shape)  # (30, 63)

Split details

All sub-libraries use the same stratified split (seed = 42) matching the original thesis methodology:

Split Samples Percentage
Train 2,842 70%
Val 609 15%
Test 609 15%

Class labels

from ssl_dataset import CLASS_LABELS

print(CLASS_LABELS[0])   # 'අ'
print(CLASS_LABELS[37])  # 'ඈ'
print(CLASS_LABELS[54])  # 'මගේ'

Citation

If you use this dataset in your research, please cite:

Jayasha P.G. Lakshani (2025). Sinhala Sign Language Dataset.
GitHub: https://github.com/jayashalakshani/ssl-dataset

License

This dataset and library are licensed under CC BY-NC 4.0 (Creative Commons Attribution Non-Commercial 4.0).

You are free to use, share, and adapt this dataset for research and educational purposes, as long as you give appropriate credit. Commercial use is not permitted.

License: CC BY-NC 4.0

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

ssl_dataset-1.0.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

ssl_dataset-1.0.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ssl_dataset-1.0.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for ssl_dataset-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cd3bc098c84959e28fff8dfad9aceaa3cdd317743f3a42fd4e6630f53b86457f
MD5 bd0c85fc9c78495ad2e7c4a971d84207
BLAKE2b-256 423891561553c9e6441a81f11a9a55242d6f6811fa4f304f0f477b6e69ed5cb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ssl_dataset-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for ssl_dataset-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efca2cd3d371121e0fbae653068b4e81fb8ab7e2a0553bab64d635e8c2b9abb6
MD5 720f9bac40f315f5c0568a090f4bf5a0
BLAKE2b-256 7591f3f38d23c87646566c31e89bdf350e237a91574010c31db0be548d934cd0

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