pyLASAHandwritingDataset
LASA Handwriting dataset for Python3
This package provides a typed, lightweight Python interface for loading and accessing the dataset.
Installation
Install the package from PyPI:
# Using uv
uv add pylasahandwritingdataset
# Or with pip
pip3 install pylasahandwritingdataset
To install from the latest commit:
uv add git+https://github.com/AshrithSagar/pyLASAHandwritingDataset.git@main
Usage
import pyLASAHandwritingDataset as lasa
# List available motions
motions = lasa.DataSet.handwriting_motions()
print(motions) # ('Angle', 'BendedLine', 'CShape', 'DoubleBendedLine', 'GShape', 'JShape', 'JShape_2', 'Khamesh', 'LShape', 'Leaf_1', 'Leaf_2', 'Line', 'Multi_Models_1', 'Multi_Models_2', 'Multi_Models_3', 'Multi_Models_4', 'NShape', 'PShape', 'RShape', 'Saeghe', 'Sharpc', 'Sine', 'Snake', 'Spoon', 'Sshape', 'Trapezoid', 'WShape', 'Worm', 'Zshape', 'heee')
# Load a motion pattern
pattern = lasa.DataSet["GShape"]
print(pattern.name) # "GShape"
print(pattern.dt)
print(len(pattern.demos)) # 7
# Access demonstrations
demo = pattern.demos[0]
t = demo.t # shape (1, 1000)
pos = demo.pos # shape (2, 1000)
vel = demo.vel # shape (2, 1000)
acc = demo.acc # shape (2, 1000)
# For typing specification, the motion names are also available in
from pyLASAHandwritingDataset import (
HandwritingMotion, # Any handwriting motion: single pattern or multi-model
SinglePatternMotion, # Any single pattern handwriting motion
MultiModelMotion, # Any multi-model handwriting motion
#
ALL_HANDWRITING_MOTIONS, # A tuple of all handwriting motions
ALL_SINGLE_PATTERN_MOTIONS, # A tuple of all single pattern handwriting motions
ALL_MULTI_MODEL_MOTIONS, # A tuple of all multi-model handwriting motions
#
is_handwriting_motion, # A TypeGuard to check whether a `str` is a handwriting motion
is_multi_model_motion, # A TypeGuard to check whether a `str` is a multi-model handwriting motion
is_single_pattern_motion, # A TypeGuard to check whether a `str` is a single pattern handwriting motion
)
For documentation, refer to the original dataset repo's README.
References
- https://bitbucket.org/khansari/lasahandwritingdataset
- https://www.epfl.ch/labs/lasa/code-datasets/
- https://github.com/epfl-lasa/LASAHandwritingDataset
- https://github.com/justagist/pyLasaDataset
Acknowledgement
If you use this dataset in research, please cite the original author:
S. M. Khansari-Zadeh and A. Billard, "Learning Stable Non-Linear Dynamical
Systems with Gaussian Mixture Models", IEEE Transaction on Robotics, 2011.
License
The LASA Handwriting Dataset is free for non-commercial academic use.
Please refer to the original dataset repository for licensing details.
Metadata
Release files for pyLASAHandwritingDataset 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pylasahandwritingdataset-0.2.1.tar.gz | 83.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylasahandwritingdataset-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 91.3 kB
Release files / pylasahandwritingdataset-0.2.1.tar.gz
| Download URL | pylasahandwritingdataset-0.2.1.tar.gz |
|---|---|
| Size | 83.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1d7965c43619e06b75ebd010313a37d45575b1d09cda520c9a6f1cb3fe39de7
|
|
BLAKE2b-256 checksum How to use checksums |
70891c8f4133f540df21e4b5c5284acb8ccf0cee27bb5d9f682b15bf4e64078d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pylasahandwritingdataset-0.2.1-py3-none-any.whl
| Download URL | pylasahandwritingdataset-0.2.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b83a62fcbeb3fb23166437cf0a1aa2bf4f54e825a17e54cac0911f08961d491
|
|
BLAKE2b-256 checksum How to use checksums |
e457a4addffa26e5f8bc589b55d9868d7058edbd9444c69483b5bfc534b68baf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|