Commit 24d09126 authored by Davis King's avatar Davis King

Changed get_face_chip_details() so it ignores the eyebrows and

lower lip since those are really mobile parts of the face.
parent bd405634
......@@ -1658,6 +1658,13 @@ namespace dlib
std::vector<dlib::vector<double,2> > from_points, to_points;
for (unsigned long i = 17; i < det.num_parts(); ++i)
{
// Ignore the lower lip
if ((55 <= i && i <= 59) || (65 <= i && i <= 67))
continue;
// Ignore the eyebrows
if (17 <= i && i <= 26)
continue;
dlib::vector<double,2> p;
p.x() = (padding+mean_face_shape_x[i-17])/(2*padding+1);
p.y() = (padding+mean_face_shape_y[i-17])/(2*padding+1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment