draw_coordinates: Draw coordinates.

View source: R/draw_face_eyes.R

draw_coordinatesR Documentation

Draw coordinates.

Description

Function with two options to draw a face or eyes at a sepcific frame or time.

Usage

draw_coordinates(df, f = NULL, t = NULL, region = "face")

Arguments

df

A face object or a dataframe with face values

f

The chosen video frame for visualising the coordinates. This value will be ignored if you specify the time.

t

The time in second at which you want to see the coordinates.

region

either the whole face or the eyes.

Value

a list including a matrix with the x, y and z coordinate of each point and a ggplot object with a graphical representation

Examples


# Draw Paula face at frame 100
draw_coordinates(paula, f = 100)

# Draw Lara eyes at second 12
 draw_coordinates(lara, t = 12, region = "eyes")

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