mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Upgraded face recognition input validation checks to allow use of 5 point face
landmarking models.
This commit is contained in:
parent
1c7bbbd4b6
commit
f84194f643
@ -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.");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user