Commit 80ea9c66 authored by Davis King's avatar Davis King

The shape_predictor and shape_predictor_trainer had a non-optimal behavior when

used with objects that have non-square bounding boxes.  This has been fixed but
will cause models that were trained with the previous version of dlib to not
work as accurately if they used non-square boxes.  So you might have to retrain
your models when updating dlib.
parent 805aec8d
......@@ -205,7 +205,7 @@ namespace dlib
from_points.push_back(rect.tl_corner()); to_points.push_back(point(0,0));
from_points.push_back(rect.tr_corner()); to_points.push_back(point(1,0));
from_points.push_back(rect.br_corner()); to_points.push_back(point(1,1));
return find_similarity_transform(from_points, to_points);
return find_affine_transform(from_points, to_points);
}
// ------------------------------------------------------------------------------------
......@@ -223,7 +223,7 @@ namespace dlib
to_points.push_back(rect.tl_corner()); from_points.push_back(point(0,0));
to_points.push_back(rect.tr_corner()); from_points.push_back(point(1,0));
to_points.push_back(rect.br_corner()); from_points.push_back(point(1,1));
return find_similarity_transform(from_points, to_points);
return find_affine_transform(from_points, to_points);
}
// ------------------------------------------------------------------------------------
......
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