MEI: Motion Energy Intensity

MEIR Documentation

Motion Energy Intensity

Description

Motion Energy Intensity

Usage

mei_single(df)

mei_faces(df, ...)

mei(df, ...)

Arguments

df:

Either a dataframe coming from openFace output (for single faces) or an object of class "faces" (for multiple faces).

Details

The function calculate the average energy of motion of 67 the facial points.The frame to frame difference in movement of each facial point is calculated after correcting for the average position of the most rigid points (nose bridge and face sides). The change of each point is summed for each frame and the resulting vector is averaged.

Value

A vector with one motion energy per face.

Note

This is still a draft and the final version will use a different algorithm

Examples


# Calculate Lara frame to frame mei
mei(lara)

# Calculate average mei for the four example videos
test_videos %>%
  transform_videos("mei", mei) %>%
  select_videos(mei) %>%
  tidy_face()


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