Commit f84194f6 authored by Davis King's avatar Davis King

Upgraded face recognition input validation checks to allow use of 5 point face

landmarking models.
parent 1c7bbbd4
......@@ -58,8 +58,8 @@ public:
for (auto& f : faces)
{
if (f.num_parts() != 68)
throw dlib::error("The full_object_detection must use the iBUG 300W 68 point face landmark style.");
if (f.num_parts() != 68 && f.num_parts() != 5)
throw dlib::error("The full_object_detection must use the iBUG 300W 68 point face landmark style or dlib's 5 point style.");
}
......
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