"tools/git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "aa93c8f8611ecb531e6d9d6fb8dff0aba3a3ce23"
Commit f84194f6 authored by Davis King's avatar Davis King
Browse files

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

landmarking models.
parent 1c7bbbd4
...@@ -58,8 +58,8 @@ public: ...@@ -58,8 +58,8 @@ public:
for (auto& f : faces) for (auto& f : faces)
{ {
if (f.num_parts() != 68) 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."); 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