Skip to main content

Python application for Unity Asset of 2D motion capture

Project description

2D Motion Capture for Unity

License: MIT PyPI version

2D Motion Capture for Unity is a python application designed to be a complement of the Unity asset, 2D Motion Capture. This asset enables an easy construction of 2D sprite animations in Unity by a completely device-less motion capture technique, and this application plays a role in analyzing a video file to capture the posture of a human in the video. The extraction of the posture from the human image is implemented using OpenCV and torchvision. With this application, you can easily build a sophisticated animation clip for your Unity project without any need of special equipments, and once the animation is generated, you can freely modify the clips the same way you deal with generic Unity animation.

Features

  • Commandline tool for video analysis and a direct connection to Unity Project
  • Simple video editor used for preparation of source video
  • Extracts human posture using a deep learning model of keypoint RCNN in torchvision
  • Exports posture information to a json file
  • Generates Unity animation clip on the editor environment
  • Easy save & load system for the sprite rigging on Unity

Installation

$ pip install unity-2dmocap

To update the application to the latest version, you can run:

$ pip install --upgrade unity-2dmocap

To check if the application is installed properly, you can try the following:

$ python
>>> import mocap2d
>>> mocap2d.__version__

If it prints out something without an error, the application is installed properly.

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

unity-2dmocap-0.1.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

unity_2dmocap-0.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file unity-2dmocap-0.1.1.tar.gz.

File metadata

  • Download URL: unity-2dmocap-0.1.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

File hashes

Hashes for unity-2dmocap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 50e503b8db84f9fef3f6977319e30b31c283eea74fb9ff921ee01f600ba60097
MD5 d7fdc0e0cf998f2c3be95a6cd4281fd6
BLAKE2b-256 e99b17900796c8a17ec20cf178f03603c1abc3bad0412f9a3d0cbfbc9b15b2ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unity_2dmocap-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

File hashes

Hashes for unity_2dmocap-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55d68283d999b5a648aea82eaa11a6905d3fd060d66fbe2f8e9d8419850d60d9
MD5 2ac0adb140ef3f5176af988cb44d5fdd
BLAKE2b-256 5daea7fe7b3ad95234b67c40d9ec841c774187c33b2eab57cd198cc56c8b1183

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