Skip to main content

No project description provided

Project description

sida-cs228

Installation

pip install sida-cs228

Usage

Moving the data of the hands to make them standardized

import sida.cs228.standardize as std
data = ... # shape (5,4,6,n)
std_data = std.do(data)

Show one hand, or save it as a file

from sida.cs228.show import show_hand
data = ... # shape (5,4,6,n)
show_hand(data[:,:,:,0], view_point="front", scale="unit") # show the first hand
show_hand(data[:,:,:,1], view_point="side", scale="fit", fname="hand1.png") # save the side view of the second hand to a png file

Standardizing steps

The shape of the argument data should be: (5,4,6,n), where n can be any integer.

The meaning of the shape is: 5 fingers, 4 bones, 6 coordinates, n hands.

The result of do function will satisfy those conditions:

(1) the base of index finger on the origin,

(2) the tip of the metacarpal bone of the index finger will on the point (0,1,0),

(3) the tip of the metacarpal bone of the baby finger will also on the x-y plane,

(4) the tip of the metacarpal bone of the thumb will be on the +z side.

After standardization, the front view will be like this:

Front view

And the side view will be like this:

Side View

The main source code is in this file:

https://github.com/liusida/sida-cs228/blob/master/sida/cs228/standardize.py

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

sida_cs228-0.0.3.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

sida_cs228-0.0.3-py2-none-any.whl (5.5 kB view details)

Uploaded Python 2

File details

Details for the file sida_cs228-0.0.3.tar.gz.

File metadata

  • Download URL: sida_cs228-0.0.3.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.16

File hashes

Hashes for sida_cs228-0.0.3.tar.gz
Algorithm Hash digest
SHA256 aed22a88f43bf22eaeff75be544ad820b1ca3ce599773fa539125479039534c9
MD5 7e81bc0cdb887b50f57af30b75bff272
BLAKE2b-256 bce38921d2bea44737d77fe83ac1aa049842b09a18be1c6f59e6480f33feb3c4

See more details on using hashes here.

File details

Details for the file sida_cs228-0.0.3-py2-none-any.whl.

File metadata

  • Download URL: sida_cs228-0.0.3-py2-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.16

File hashes

Hashes for sida_cs228-0.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 e6217a43205bd806fd47f1c1b1ca7ca476a92e50af9f825edc16b79bae167f62
MD5 d32a8e849f353255bcbf53f602e12a00
BLAKE2b-256 4549254328f1e1cf8dab756e582836eae5eaf40418d3c9176ab6af86d7af26d6

See more details on using hashes here.

Supported by

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