Skip to content

HumlabLu/MoCap-Gesture-Detection

Repository files navigation

MoCap

Files to post-process mocap data for event detection and EAF file generation. Work in progress, needs some clean up.

mocap_gen_dists.py

Calculates distances travelled by the sensors from the 3D coordinates.

Example:

python mocap_gen_dists.py -f mocap_valentijn/beach_repr_2b.tsv

The above example creates a mocap_valentijn/beach_repr_2b_dists.tsv file containing the 3D distances travelled between each X,Y,Z point of each sensor.

mocap_gen_dirs.py

Determine the direction of movement from the 3D data. Work-in-progress.

Example:

python mocap_gen_dirs.py -f mocap_valentijn/beach_repr_2b.tsv

The above creates a file called mocap_valentijn/beach_repr_2b_dirs.tsv containing values :-).

mocap_eaf.py

Takes a distance file (generated by mocap_gen_dists.py) and tries to determine motion events. Adds a tier for each sensor with motion annotations to an existing EAF file. Tiers/sensors are hard-coded at the moment.

Example:

python mocap_eaf.py -f mocap_valentijn/beach_repr_2b_velocity_M.tsv -d mocap_valentijn/beach_repr_2b_dists.tsv -e mocap_valentijn/beach_repr_2_pb.eaf 
python mocap_eaf.py -d mocap_valentijn/beach_repr_2b_dists.tsv -D mocap_valentijn/beach_repr_2b_dirs.tsv -E mocap_valentijn/mynew.eaf
python mocap_eaf.py -d mocap_valentijn/beach_repr_2b_dists.tsv -D mocap_valentijn/beach_repr_2b_dirs.tsv 

mocap_plot.py

Plots sensor data.

Example:

python mocap_plot.py -f mocap_valentijn/beach_repr_2b_velocity_M.tsv -d mocap_valentijn/beach_repr_2b_dists.tsv -r mocap_valentijn/beach_repr_2b_dirs.tsv

mocap_plot_raw.py

Plots raw sensor data from a tab separated file from the MoCap system. Add filter(s) with the -F parameter. Specifying the -s option creates a separate file for each sensor. The -w option creates a "pseudo wave file" which can be loaded into Elan to visualise the amount of motion as a waveform.

Example:

python mocap_plot_raw.py -f mocap_valentijn/beach_repr_2b.tsv -F X_RHand -F b_RHand

mocap_plot_dists.py

Plots distance data from a tab separated file generated by mocap_gen_dists.py.

Example:

python mocap_plot_dists.py -f -d dyad_description_2_light_dists.tsv -F x_RHan

mocap_vel_00.py

Plots velocity file.

mocap_acc.py

Plots one of the angular acceleration files (LH).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages