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_logo

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.2.tar.gz (12.7 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.2-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ssl_dataset-1.0.2.tar.gz
  • Upload date:
  • Size: 12.7 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.2.tar.gz
Algorithm Hash digest
SHA256 06b1fd1a02c6e43f66d49ab08be0a5ccbef07d9750ca809753463d69f9dd19f0
MD5 371381a0a922687a25f1b555c030be9d
BLAKE2b-256 5b0d2d92c0f23b7f6dcc9ec36f829fb4250e7177eb288cff72df473675b1d0a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ssl_dataset-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8be76b0d33a313ae2c2490917cf714937425b987510ccc2e44d7665e49451260
MD5 36e80711d3aa696907c2140aa5254f8b
BLAKE2b-256 f27d359f0dbc9f782b14ad350b808ba73133624d9552f3a935bb1c831ad341e1

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