|
|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
#include <regex>
|
|
|
|
|
#include "ConfigBase.h"
|
|
|
|
|
#include "../../AlgorithmModule/include/ImgCheckConfig.h"
|
|
|
|
|
#include <filesystem>
|
|
|
|
|
|
|
|
|
|
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<ConfigBase> temConfig = ConfigBase::GetInstance();
|
|
|
|
|
re = LoadParamConfig(temConfig, strConfigPath);
|
|
|
|
|
if (re != 0)
|
|
|
|
|
|