From 9dd6e560a8e8d527556234cb8e2c1d90c22b081a Mon Sep 17 00:00:00 2001 From: bhklein Date: Mon, 24 Nov 2014 13:15:47 -0500 Subject: [PATCH] Load Component Algorithm --- openbr/janus.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbr/janus.cpp b/openbr/janus.cpp index dd6d332..af5f65b 100644 --- a/openbr/janus.cpp +++ b/openbr/janus.cpp @@ -24,7 +24,10 @@ janus_error janus_initialize(const char *sdk_path, const char *temp_path, const if (algorithm.isEmpty()) { transform.reset(Transform::make("Cvt(Gray)+Affine(88,88,0.25,0.35)+++", NULL)); distance = Distance::fromAlgorithm("FaceRecognition"); - } else { + } else if (algorithm.compare("Component") == 0) { + transform = Transform::fromAlgorithm(algorithm); + distance = Distance::fromAlgorithm(algorithm); + } else { transform.reset(Transform::make(algorithm + "Enroll", NULL)); distance.reset(Distance::make(algorithm + "Compare", NULL)); } -- libgit2 0.21.4