diff --git a/Application/src/grabber/main.cpp b/Application/src/grabber/main.cpp index 67fd0a5eaacb033706459ef4edfc7bb2427ecaf5..ed681feca98eba867eaa57b428eb5e569817deb6 100644 --- a/Application/src/grabber/main.cpp +++ b/Application/src/grabber/main.cpp @@ -51,6 +51,7 @@ #include <gui/IMGUIBase.h> #include <python/GPURecognition.h> +#include <opencv2/core/utils/logger.hpp> //-Functions------------------------------------------------------------------- @@ -175,6 +176,9 @@ using namespace file; int main(int argc, char** argv) { +#ifdef NDEBUG + cv::utils::logging::setLogLevel(cv::utils::logging::LogLevel::LOG_LEVEL_ERROR); +#endif #if __linux__ XInitThreads(); #endif diff --git a/Application/src/grabber/pvinfo.cpp b/Application/src/grabber/pvinfo.cpp index 12869505946c5f722ec69baee7b1c16075d5029d..d3badfaf1b2896003168a5dd9c941d9655be97cf 100644 --- a/Application/src/grabber/pvinfo.cpp +++ b/Application/src/grabber/pvinfo.cpp @@ -12,6 +12,7 @@ #include "pvinfo_merge.h" #include <misc/Output.h> #include <gui/IdentityHeatmap.h> +#include <opencv2/core/utils/logger.hpp> using namespace cmn; @@ -21,6 +22,9 @@ ENUM_CLASS(Arguments, ENUM_CLASS(parameter_format_t, settings, minimal) int main(int argc, char**argv) { +#ifdef NDEBUG + cv::utils::logging::setLogLevel(cv::utils::logging::LogLevel::LOG_LEVEL_ERROR); +#endif DEBUG::set_runtime_quiet(); auto OS_ACTIVITY_DT_MODE = getenv("OS_ACTIVITY_DT_MODE"); diff --git a/Application/src/tracker/main.cpp b/Application/src/tracker/main.cpp index 78de93cd041c3df45b5a95f0241949296b1ce992..f1ff7798abe604e5070c960bb0e9292f52ca8ebf 100644 --- a/Application/src/tracker/main.cpp +++ b/Application/src/tracker/main.cpp @@ -76,6 +76,8 @@ #include <shellapi.h> #endif +#include <opencv2/core/utils/logger.hpp> + //-Functions------------------------------------------------------------------- using namespace track; @@ -186,6 +188,10 @@ void init_signals() { int main(int argc, char** argv) { +#ifdef NDEBUG + cv::utils::logging::setLogLevel(cv::utils::logging::LogLevel::LOG_LEVEL_ERROR); +#endif + #if __APPLE__ std::string PATH = (std::string)getenv("PATH"); if(!utils::contains(PATH, "/usr/local/bin")) {