From 03be3a993e91633989d91602b659978e13147a77 Mon Sep 17 00:00:00 2001 From: liusiyang Date: Tue, 2 Jun 2026 17:54:58 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=80=82=E9=85=8Dparam.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConfigModule/src/ConfigManager.cpp | 4 ++++ example/deal.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ConfigModule/src/ConfigManager.cpp b/ConfigModule/src/ConfigManager.cpp index 2607bfd..1d78b57 100644 --- a/ConfigModule/src/ConfigManager.cpp +++ b/ConfigModule/src/ConfigManager.cpp @@ -11,6 +11,7 @@ #include #include "ConfigBase.h" #include "../../AlgorithmModule/include/ImgCheckConfig.h" +#include ConfigManager::ConfigManager() { @@ -199,6 +200,9 @@ int ConfigManager::UpdateConfig() for (auto &camera : camera_list) { std::string strConfigPath = m_strConfigRootPath + "/param_" + camera.code + ".json"; + if (!std::filesystem::exists(strConfigPath)) { + strConfigPath = m_strConfigRootPath + "/param.json"; + } std::shared_ptr temConfig = ConfigBase::GetInstance(); re = LoadParamConfig(temConfig, strConfigPath); if (re != 0) diff --git a/example/deal.cpp b/example/deal.cpp index e5f2f4f..f8265bd 100644 --- a/example/deal.cpp +++ b/example/deal.cpp @@ -688,7 +688,7 @@ int deal::saveImg(std::string strpath, std::shared_ptr result) std::string str = strroot + "_RE_" + std::to_string(i) + "_YS_Src.png"; if (result->YS_ImageResult.at(i).srcImg.empty()) { - printf("resqwwwwwwwwwwwwwwwult->YS_ImageResult.size() %ld \n", result->YS_ImageResult.size()); + // printf("resqwwwwwwwwwwwwwwwult->YS_ImageResult.size() %ld \n", result->YS_ImageResult.size()); } if (!result->YS_ImageResult.at(i).srcImg.empty())