Once you collect data from Mediapipe, you can easily analyze them with that function after transforming them.

mediapipe2R(data, width, height, fps = 30, fig.height = 170, name)

Arguments

data

A mediapipe type of data set

width

The width of the video

height

The height of the video

fps

The number of frames per second

fig.height

The height of the figure in the video

name

The name of the figure in the video

Value

A data set to be used with the MocapMineR package

Examples


data(gaetan_apchagi_mediapipe)
gaetan_apchagi <- mediapipe2R(gaetan_apchagi_mediapipe, width=1080, height=1920, name="Gaetan")