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())