velocity_3d: Head Movements.

View source: R/head moves.R

velocity_3dR Documentation

Head Movements.

Description

Calculates the overall amount of head movements in the three axis.

Usage

velocity_3d(df)

Arguments

df

A dataframe with facial information from OpenFace.

Value

A frame by frame array with the total difference of spatial position.

Examples


# 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()


davidecannatanuig/openFaceR documentation built on Feb. 28, 2024, 7:21 p.m.