velocity_3d | R Documentation |
Calculates the overall amount of head movements in the three axis.
velocity_3d(df)
df |
A dataframe with facial information from OpenFace. |
A frame by frame array with the total difference of spatial position.
# Calculate Lara frame to frame change in head position
velocity_3d(lara)
# Calculate average velocity of head for the four example videos
test_videos %>%
transform_videos("velocity", velocity_3d) %>%
select_videos(velocity_3d) %>%
tidy_face()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.