# NOT RUN {
# get image with dlib70 template and view lines
s <- demo_tems("dlib70")
s[[1]]$lines
# remove all lines
s2 <- change_lines(s, line_id = 1:13, pts = NULL)
s2[[1]]$lines
# visualise point indices
draw_tem(s2, pt.shape = "index", pt.size = 15)
# add a new line
s3 <- change_lines(s2, line_id = "face_outline",
pts = c(2:18, 28:19, 2))
s3[[1]]$lines
draw_tem(s3)
# }
Run the code above in your browser using DataLab