velocity_x: Compute velocity for points on x-axis for given data frame in...

View source: R/velocity_x.R

velocity_xR Documentation

Compute velocity for points on x-axis for given data frame in OpenPoseR format

Description

Compute velocity for points on x-axis for given data frame in OpenPoseR format according to the following formula: ((pixel at t1)-(pixel at t1-1))/((t1)-(t1-1))

Usage

velocity_x(data, model, fps = 25)

Arguments

data

A data frame with separate clumns for every points x, y, and c values (OpenPoseR format).

model

Specify which tracking model generated the data. Supply either body25, hands, or face.

fps

Frames per second of the original video file. Defaults to 25.

Examples

velocity_x(x, "body25")

trettenbrein/OpenPoseR documentation built on April 22, 2022, 4:03 a.m.