Skip to main content

Pre-processing, visualisation and analysis of motion capture data and speech

Project description

Krajjat 1.99.18

Kinect Realignment Algorithm for Joint Jumps And Twitches

Kinetic Recordings Algorithms for Joint Jazzing in an All-in-one Toolbox

Kinetic Recordings And Juxtaposition of Jabbering Along That

Author: Romain Pastureau

What is Krajjat?

Krajjat is a Python module allowing to handle motion capture recordings and to explore the relationship between body movements and speech. More precisely, it contains a variety of functions allowing to pre-process sequences of tracked movements, to display them and to analyze them. You can find more details in the documentation.

Pre-processing

The pre-processing functions allow to:

  • Automatically correct fast artifacts in the recordings (jumps and twitches of joints placement).
  • Re-reference all the positions according to a specific joint.
  • Trimming a motion sequence to the duration of an audio file, or to a defined duration.
  • Resampling a motion sequence to a target frequency.
  • Correcting missing values via interpolation.

All of these functions can be applied on single motion sequences, or on a batch of sequences.

The toolbox also handles the pre-processing of audio files, allowing to:

  • Filter some frequencies of the audio files.
  • Resample audio files.
  • Trim audio files.
  • Get the envelope of the audio, or the pitch, intensity or formants (via the module Parselmouth).

Visualisation

The display functions allow to:

  • Visualise a sequence pose by pose or in real time, with highly customizable visualization options.
  • Visualise a sequence concurrently to an audio and/or a video file; the video file can be played below it or next to it.
  • Visualise two sequences side by side, to compare before and after pre-processing, for example.
  • Save any of the previous displays as a MP4 video.

A range of functions also allows to plot different analysis results

Analysis

The toolbox comes with a series of functions for analyses of the sequences to:

  • Plot the values of the x, y and z coordinates, the distance travelled by the joints, or any derivative such as the velocity or acceleration.
  • Plot one of these values for all the joints, with the sub-plots organized according to their position in space.
  • Performing the correlation, cross-correlation, coherence, ICA/PCA, or getting the mutual information between any of the kinetic properties of the joints and the acoustic properties of the speech - along with the statistics to compute the significance of the relationship between the two arrays of values.

How to

The best way to install the toolbox is to follow the recommendations in the documentation.

Dependencies

  • Scipy and Numpy for handling audio files and large numeric arrays
  • Matplotlib and Seaborn for plotting
  • Pandas to create dataframes for the analysis functions
  • chardet to detect the encoding of files
  • Openpyxl to process .xls and .xlsx documents
  • Pygame for sequence visualization
  • OpenCV and PyAudio for displaying video and audio
  • Parselmouth to use Praat functions to process the audio files
  • FFmpeg to save videos

What's new?

See the release notes.

If you detect any bug, please contact me following this link.

Thanks :)

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

krajjat-1.99.18.tar.gz (920.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

krajjat-1.99.18-py3-none-any.whl (824.9 kB view details)

Uploaded Python 3

File details

Details for the file krajjat-1.99.18.tar.gz.

File metadata

  • Download URL: krajjat-1.99.18.tar.gz
  • Upload date:
  • Size: 920.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for krajjat-1.99.18.tar.gz
Algorithm Hash digest
SHA256 f575d6e5cd2dbf6ad43de17c3c53c1f5f0fe40d22ccc4a088c2aa8da5bc7363e
MD5 32b11eb90c1fe44090ab09789e0b0ba9
BLAKE2b-256 077eac7064b7e9b88966dfae4a0e18abc65f24bd2237458ec0c8c84ca30ea772

See more details on using hashes here.

File details

Details for the file krajjat-1.99.18-py3-none-any.whl.

File metadata

  • Download URL: krajjat-1.99.18-py3-none-any.whl
  • Upload date:
  • Size: 824.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for krajjat-1.99.18-py3-none-any.whl
Algorithm Hash digest
SHA256 ac2d57a9e029987039e51e013160e1d0e02b23a71f44978a755235c585c0a674
MD5 4c6990c0522b1eff6f30facf7e6b85b8
BLAKE2b-256 28c34ebe144841e5342567cc7cfb9c66f6592f4fb36e07d64bf5bd40bef1017c

See more details on using hashes here.

Supported by

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