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 (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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ssl_dataset-1.0.0.tar.gz.
File metadata
- Download URL: ssl_dataset-1.0.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5da41513b88f49c92c762efd123d194bbba0d049adebcbf84242bd9f8f50d3dc
|
|
| MD5 |
c975e6b4e2cea9ed94cfdc4dcbf53da7
|
|
| BLAKE2b-256 |
7a2362468014497810aafce630ff37d99946a69398ee6de1f5b079b96275e455
|
File details
Details for the file ssl_dataset-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ssl_dataset-1.0.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54edd1c8a261789333cf3e712b3ea487d451a69e4ff33c4897839b8cd7d49522
|
|
| MD5 |
d5fbad05043d5eb447f1b9a4a6e37c72
|
|
| BLAKE2b-256 |
6b8ba3797e5cef33fbe556f8d6594dd0b77fefec23410d0c437061c3165142f9
|