diff --git a/openbr/plugins/gui.cpp b/openbr/plugins/gui.cpp index 0653eeb..ef50de3 100644 --- a/openbr/plugins/gui.cpp +++ b/openbr/plugins/gui.cpp @@ -719,6 +719,8 @@ public: dst = src; + if (!Globals->useGui) + return; if (src.empty()) return; @@ -771,6 +773,8 @@ public: RectMarkingWindow * trueWindow; void init() { + if (!Globals->useGui) + return; initActual(); trueWindow = dynamic_cast (this->window); trueWindow->setKeys(this->keys);