Get point indices for features, usually for use with subset_tem
.
Usage
features(..., tem_id = c("frl", "dlib70"))
Arguments
- ...
a vector of feature names (see Details)
- tem_id
template ID (currently only works for frl and dlib70)
Details
Available features for the frl template are: "gmm", "oval", "face", "mouth", "nose", "eyes", "brows", "left_eye", "right_eye", "left_brow", "right_brow", "ears", "undereyes", "teeth", "smile_lines", "cheekbones", "philtrum", "chin", "neck", "halo".
Available features for the dlib70 template are: "teeth", "left_eye", "right_eye", "left_brow", "right_brow", "nose", "mouth", "face".
See also
Template functions
auto_delin()
,
average_tem()
,
centroid()
,
change_lines()
,
delin()
,
draw_tem()
,
get_point()
,
remove_tem()
,
require_tems()
,
same_tems()
,
squash_tem()
,
subset_tem()
,
tem_def()
,
viz_tem_def()
Examples
features("mouth")
#> [1] 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
#> [20] 106 107 108
features("gmm")
#> [1] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#> [19] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#> [37] 36 37 38 39 40 41 42 43 50 51 52 53 54 55 56 57 58 59
#> [55] 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
#> [73] 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
#> [91] 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
#> [109] 114 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
#> [127] 142 143 144 170 172 179 180 181 182 185 186 187 188
features("nose", tem_id = "dlib70")
#> [1] 29 30 31 32 33 34 35 36 37