From 8fc394cd5013550b4b4a7f01a6faae1f66ce2a21 Mon Sep 17 00:00:00 2001 From: bhklein Date: Tue, 25 Nov 2014 12:46:48 -0500 Subject: [PATCH] Update algorithm string, check for template.file.fte in janus_augment. --- openbr/janus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbr/janus.cpp b/openbr/janus.cpp index af5f65b..60af65f 100644 --- a/openbr/janus.cpp +++ b/openbr/janus.cpp @@ -25,7 +25,7 @@ janus_error janus_initialize(const char *sdk_path, const char *temp_path, const transform.reset(Transform::make("Cvt(Gray)+Affine(88,88,0.25,0.35)+++", NULL)); distance = Distance::fromAlgorithm("FaceRecognition"); } else if (algorithm.compare("Component") == 0) { - transform = Transform::fromAlgorithm(algorithm); + transform.reset(Transform::make("LandmarksAffine+Cvt(Gray)+", NULL)); distance = Distance::fromAlgorithm(algorithm); } else { transform.reset(Transform::make(algorithm + "Enroll", NULL)); @@ -91,6 +91,7 @@ janus_error janus_augment(const janus_image image, const janus_attribute_list at } Template u; transform->project(t, u); + if (u.file.fte) u.m() = cv::Mat(); template_->append(u); return (u.isEmpty() || !u.first().data) ? JANUS_FAILURE_TO_ENROLL : JANUS_SUCCESS; } -- libgit2 0.21.4