LASA Handwriting dataset for Python3
Project description
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.
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 pylasahandwritingdataset-0.2.1.tar.gz.
File metadata
- Download URL: pylasahandwritingdataset-0.2.1.tar.gz
- Upload date:
- Size: 83.5 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1d7965c43619e06b75ebd010313a37d45575b1d09cda520c9a6f1cb3fe39de7
|
|
| MD5 |
d11a59270066a167c31a7da8575e3b01
|
|
| BLAKE2b-256 |
70891c8f4133f540df21e4b5c5284acb8ccf0cee27bb5d9f682b15bf4e64078d
|
File details
Details for the file pylasahandwritingdataset-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pylasahandwritingdataset-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b83a62fcbeb3fb23166437cf0a1aa2bf4f54e825a17e54cac0911f08961d491
|
|
| MD5 |
430ef8dc0ee4a060c680b26ccaa9b0e1
|
|
| BLAKE2b-256 |
e457a4addffa26e5f8bc589b55d9868d7058edbd9444c69483b5bfc534b68baf
|