diff --git a/openbr/janus b/openbr/janus index 174446c..965dd49 160000 --- a/openbr/janus +++ b/openbr/janus @@ -1 +1 @@ -Subproject commit 174446c7b108093166c07021c7db052a896c0dbd +Subproject commit 965dd49cc4b9861086fa00b83bff73a35654ad32 diff --git a/openbr/janus.cpp b/openbr/janus.cpp index 22ed6c7..be9158f 100644 --- a/openbr/janus.cpp +++ b/openbr/janus.cpp @@ -67,7 +67,7 @@ janus_error janus_augment(const janus_image image, const janus_attribute_list at Template u; transform->project(t, u); template_->append(u); - return u.isEmpty() ? JANUS_FAILURE_TO_ENROLL : JANUS_SUCCESS; + return (u.isEmpty() || !u.first().data) ? JANUS_FAILURE_TO_ENROLL : JANUS_SUCCESS; } janus_error janus_finalize_template(janus_template template_, janus_flat_template flat_template, size_t *bytes)