Skip to main content

LASA Handwriting dataset loader and other tools for Python.

Project description

PyLasaDataset PyPI

LASA Handwriting dataset loader and other tools for Python 2 and Python 3.

Installation

Via pip

python3 -m pip install pylasadataset

Or

python3 -m pip install git+https://github.com/justagist/pylasadataset

Manual Install

  • Dependencies: apt install python-tk; pip install numpy scipy matplotlib.
  • Run python setup.py install.

Usage

import pyLasaDataset as lasa

# DataSet object has all the LASA handwriting data files 
# as attributes, eg:
angle_data = lasa.DataSet.Angle
sine_data = lasa.DataSet.Sine


# Each Data object has attributes dt and demos (For documentation, 
# refer original dataset repo: 
# https://bitbucket.org/khansari/lasahandwritingdataset/src/master/Readme.txt)
dt = angle_data.dt
demos = angle_data.demos # list of 7 Demo objects, each corresponding to a 
                         # repetition of the pattern


# Each Demo object in demos list will have attributes pos, t, vel, acc 
# corresponding to the original .mat format described in 
# https://bitbucket.org/khansari/lasahandwritingdataset/src/master/Readme.txt
demo_0 = demos[0]
pos = demo_0.pos # np.ndarray, shape: (2,2000)
vel = demo_0.vel # np.ndarray, shape: (2,2000) 
acc = demo_0.acc # np.ndarray, shape: (2,2000)
t = demo_0.t # np.ndarray, shape: (1,2000)


# To visualise the data (2D position and velocity) use the plot_model utility
lasa.utilities.plot_model(lasa.DataSet.BendedLine) # give any of the available 
                                                   # pattern data as argument

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

pyLasaDataset-0.1.1.tar.gz (10.7 MB view details)

Uploaded Source

Built Distribution

pyLasaDataset-0.1.1-py3-none-any.whl (10.7 MB view details)

Uploaded Python 3

File details

Details for the file pyLasaDataset-0.1.1.tar.gz.

File metadata

  • Download URL: pyLasaDataset-0.1.1.tar.gz
  • Upload date:
  • Size: 10.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/20.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for pyLasaDataset-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b9a1d2d454123b6394357319e4daef7d8895b1559b6da68e93f2281fac43f296
MD5 ae4fb801f8a23e13b09f6c2261b5df24
BLAKE2b-256 048ae4d53e4a043a25970f4dbb6ac280f50859c4359e1ae480c6739ab09ec00f

See more details on using hashes here.

File details

Details for the file pyLasaDataset-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyLasaDataset-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/20.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for pyLasaDataset-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d47245bb788c7a31bbf307830893451271b6c1f2dbe92ff800214dc0865db25
MD5 fe548aa6a32a67b32817e5d2fedf69c8
BLAKE2b-256 6dca66fa27a360b04e42836781dd20cadb612e1e4b81a417e3b7a3ebdb390373

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page