From f75d97320e7db1b76ef32daf5b25d132b696ec8f Mon Sep 17 00:00:00 2001 From: bhklein Date: Tue, 25 Nov 2014 16:24:55 -0500 Subject: [PATCH] Use manually located eye locations. --- openbr/janus.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbr/janus.cpp b/openbr/janus.cpp index 60af65f..6dd011b 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.reset(Transform::make("LandmarksAffine+Cvt(Gray)+", NULL)); + transform.reset(Transform::make("StasmManual+Cvt(Gray)+", NULL)); distance = Distance::fromAlgorithm(algorithm); } else { transform.reset(Transform::make(algorithm + "Enroll", NULL)); @@ -86,6 +86,8 @@ janus_error janus_augment(const janus_image image, const janus_attribute_list at t.file.contains("LEFT_EYE_Y")) { t.file.set("Affine_0", QPointF(t.file.get("RIGHT_EYE_X") - rect.x(), t.file.get("RIGHT_EYE_Y") - rect.y())); t.file.set("Affine_1", QPointF(t.file.get("LEFT_EYE_X") - rect.x(), t.file.get("LEFT_EYE_Y") - rect.y())); + t.file.set("First_Eye", t.file.get("Affine_0")); + t.file.set("Second_Eye", t.file.get("Affine_1")); t.file.appendPoint(t.file.get("Affine_0")); t.file.appendPoint(t.file.get("Affine_1")); } -- libgit2 0.21.4