Python application for Unity Asset of 2D motion capture
Project description
2D Motion Capture for Unity
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
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e503b8db84f9fef3f6977319e30b31c283eea74fb9ff921ee01f600ba60097 |
|
MD5 | d7fdc0e0cf998f2c3be95a6cd4281fd6 |
|
BLAKE2b-256 | e99b17900796c8a17ec20cf178f03603c1abc3bad0412f9a3d0cbfbc9b15b2ec |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d68283d999b5a648aea82eaa11a6905d3fd060d66fbe2f8e9d8419850d60d9 |
|
MD5 | 2ac0adb140ef3f5176af988cb44d5fdd |
|
BLAKE2b-256 | 5daea7fe7b3ad95234b67c40d9ec841c774187c33b2eab57cd198cc56c8b1183 |