View source: R/draw_face_eyes.R
draw_coordinates | R Documentation |
Function with two options to draw a face or eyes at a sepcific frame or time.
draw_coordinates(df, f = NULL, t = NULL, region = "face")
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. |
a list including a matrix with the x, y and z coordinate of each point and a ggplot object with a graphical representation
# Draw Paula face at frame 100
draw_coordinates(paula, f = 100)
# Draw Lara eyes at second 12
draw_coordinates(lara, t = 12, region = "eyes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.