|
|
|
|
@ -841,7 +841,7 @@ void deal::ResultThread(int id)
|
|
|
|
|
if (true)
|
|
|
|
|
{
|
|
|
|
|
// 存图
|
|
|
|
|
std::string savepath = "/home/aidlux/BOE/FOG/Detsave/";
|
|
|
|
|
std::string savepath = m_system_param.save_Img_Root_Path;
|
|
|
|
|
saveImg(savepath, dealResult);
|
|
|
|
|
// saveImg("/home/aidlux/BOE/ResultImg/", dealResult);
|
|
|
|
|
}
|
|
|
|
|
@ -850,7 +850,7 @@ void deal::ResultThread(int id)
|
|
|
|
|
// 存 检测统计 日志
|
|
|
|
|
mutex_DetResult_.lock();
|
|
|
|
|
m_DetResult.print(false);
|
|
|
|
|
std::string strlog = "/home/aidlux/BOE/FOG/Detsave/";
|
|
|
|
|
std::string strlog = m_system_param.save_Img_Root_Path;
|
|
|
|
|
if (m_strCurDate != "")
|
|
|
|
|
{
|
|
|
|
|
strlog += m_strCurDate;
|
|
|
|
|
@ -942,6 +942,10 @@ bool deal::ReadSystemConfig(const std::string &strPath)
|
|
|
|
|
m_system_param.Use_CPU_StartIdx = root["Use_CPU_StartIdx"].asInt();
|
|
|
|
|
m_system_param.nWorkIdx = root["Detect_Work_Idx"].asInt();
|
|
|
|
|
m_system_param.config_Root_Path = root["Config_Root_Path"].asString();
|
|
|
|
|
if (root.isMember("Save_Img_Root_Path"))
|
|
|
|
|
{
|
|
|
|
|
m_system_param.save_Img_Root_Path = root["Save_Img_Root_Path"].asString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 4; i++)
|
|
|
|
|
m_system_param.GPU_Device_ID_List[i] = -1;
|
|
|
|
|
|