diff --git a/openbr/janus b/openbr/janus deleted file mode 160000 index 929bf94..0000000 --- a/openbr/janus +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 929bf94d6002d68b0d9c7a0b98a9c210d86bb7e6 diff --git a/openbr/janus.cpp b/openbr/janus.cpp deleted file mode 100644 index 4265b81..0000000 --- a/openbr/janus.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#ifdef BR_LIBRARY - #define JANUS_LIBRARY -#endif - -#include "janus.h" -#include "openbr_plugin.h" - -janus_error janus_initialize(const char *sdk_path, const char *model_file) -{ - int argc = 1; - const char *argv[1] = { "br" }; - br::Context::initialize(argc, (char **)argv, sdk_path); - QString algorithm = model_file; - if (algorithm.isEmpty()) algorithm = "FaceRecognition"; - br::Globals->setProperty("Algorithm", algorithm); - return JANUS_SUCCESS; -} - -void janus_finalize() -{ - br::Context::finalize(); -}