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

landmarking models.
This commit is contained in:
Davis King 2017-09-15 19:56:38 -04:00
parent 1c7bbbd4b6
commit f84194f643

View File

@ -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.");
}