update 名称修改

main
xiewenji 2 weeks ago
parent 3e51c2ea47
commit 7d5f540a64

@ -43,7 +43,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_NF = AIModel_Base::GetInstance(); AI_defect_NF = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/defect.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/defect.engine";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
boe_config.strName = "Base_detect"; boe_config.strName = "Base_detect";
boe_config.Stream_num = 2; boe_config.Stream_num = 2;
@ -55,7 +55,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_Type2 = AIModel_Base::GetInstance(); AI_defect_Type2 = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/defect_WTB.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/defect_WTB.engine";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
boe_config.strName = "WTB_detect"; boe_config.strName = "WTB_detect";
boe_config.Stream_num = 2; boe_config.Stream_num = 2;
@ -67,7 +67,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_UP = AIModel_Base::GetInstance(); AI_defect_UP = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/defect_UP.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/defect_UP.engine";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
boe_config.strName = "UP_detect"; boe_config.strName = "UP_detect";
boe_config.Stream_num = 2; boe_config.Stream_num = 2;
@ -79,7 +79,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_Chess = AIModel_Base::GetInstance(); AI_defect_Chess = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/defect_CHESS.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/defect_CHESS.engine";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
boe_config.strName = "chess_detect"; boe_config.strName = "chess_detect";
boe_config.Stream_num = 2; boe_config.Stream_num = 2;
@ -91,7 +91,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_YX_1 = AIModel_Base::GetInstance(); AI_defect_YX_1 = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/defect_YX_L0.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/defect_YX_L0.engine";
boe_config.strName = "YX1"; boe_config.strName = "YX1";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
AI_defect_YX_1->Init(boe_config); AI_defect_YX_1->Init(boe_config);
@ -101,7 +101,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_YX_2 = AIModel_Base::GetInstance(); AI_defect_YX_2 = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/defect_YX_L127L255.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/defect_YX_L127L255.engine";
boe_config.strName = "YX2"; boe_config.strName = "YX2";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
AI_defect_YX_2->Init(boe_config); AI_defect_YX_2->Init(boe_config);
@ -113,7 +113,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_Cls_L0 = AIModel_Base::GetInstance(); AI_defect_Cls_L0 = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config jbl_config; AIModel_Base::AIModelRun_Config jbl_config;
jbl_config.gpuconfig.copy(gupconfig); jbl_config.gpuconfig.copy(gupconfig);
jbl_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/class_14.engine"; jbl_config.strPath = "/home/aidlux/BOE/UseModel_FOG/class_14.engine";
jbl_config.inputType = AIModel_Base::Input_HWC; jbl_config.inputType = AIModel_Base::Input_HWC;
jbl_config.strName = "14_Class"; jbl_config.strName = "14_Class";
jbl_config.IsClass = true; jbl_config.IsClass = true;
@ -125,7 +125,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_Cls = AIModel_Base::GetInstance(); AI_defect_Cls = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config jbl_config; AIModel_Base::AIModelRun_Config jbl_config;
jbl_config.gpuconfig.copy(gupconfig); jbl_config.gpuconfig.copy(gupconfig);
jbl_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/class_14.engine"; jbl_config.strPath = "/home/aidlux/BOE/UseModel_FOG/class_14.engine";
jbl_config.inputType = AIModel_Base::Input_HWC; jbl_config.inputType = AIModel_Base::Input_HWC;
jbl_config.strName = "old_Class"; jbl_config.strName = "old_Class";
jbl_config.IsClass = true; jbl_config.IsClass = true;
@ -138,7 +138,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_zf = AIModel_Base::GetInstance(); AI_defect_zf = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/defect_zf.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/defect_zf.engine";
boe_config.strName = "zf"; boe_config.strName = "zf";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
AI_defect_zf->Init(boe_config); AI_defect_zf->Init(boe_config);
@ -149,7 +149,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_127Cell = AIModel_Base::GetInstance(); AI_defect_127Cell = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/defect_L127.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/defect_L127.engine";
boe_config.strName = "127Cell"; boe_config.strName = "127Cell";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
AI_defect_127Cell->Init(boe_config); AI_defect_127Cell->Init(boe_config);
@ -160,7 +160,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_RE_POL = AIModel_Base::GetInstance(); AI_defect_RE_POL = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/BOE_POL_128x128.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/BOE_POL_128x128.engine";
boe_config.strName = "RE_POL"; boe_config.strName = "RE_POL";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
AI_defect_RE_POL->Init(boe_config); AI_defect_RE_POL->Init(boe_config);
@ -171,7 +171,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_RE_AD = AIModel_Base::GetInstance(); AI_defect_RE_AD = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/BOE_AD_128x128.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/BOE_AD_128x128.engine";
boe_config.strName = "RE_POL"; boe_config.strName = "RE_POL";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
AI_defect_RE_AD->Init(boe_config); AI_defect_RE_AD->Init(boe_config);
@ -183,7 +183,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_Edge_Big = AIModel_Base::GetInstance(); AI_defect_Edge_Big = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/Edge_Big.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/Edge_Big.engine";
boe_config.strName = "Edge_Big"; boe_config.strName = "Edge_Big";
boe_config.inputType = AIModel_Base::Input_HWC; boe_config.inputType = AIModel_Base::Input_HWC;
AI_defect_Edge_Big->Init(boe_config); AI_defect_Edge_Big->Init(boe_config);
@ -194,7 +194,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_Edge_Samll = AIModel_Base::GetInstance(); AI_defect_Edge_Samll = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/Edge_Small.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/Edge_Small.engine";
boe_config.inputType = AIModel_Base::Input_HWC; boe_config.inputType = AIModel_Base::Input_HWC;
boe_config.strName = "Edge_Small"; boe_config.strName = "Edge_Small";
AI_defect_Edge_Samll->Init(boe_config); AI_defect_Edge_Samll->Init(boe_config);
@ -205,7 +205,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_LackPol = AIModel_Base::GetInstance(); AI_defect_LackPol = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/BOE_LOSSPOL.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/BOE_LOSSPOL.engine";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
boe_config.strName = "BOE_LOSSPOL"; boe_config.strName = "BOE_LOSSPOL";
AI_defect_LackPol->Init(boe_config); AI_defect_LackPol->Init(boe_config);
@ -216,7 +216,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_MarkLine = AIModel_Base::GetInstance(); AI_defect_MarkLine = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/defect_MARK_LINE.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/defect_MARK_LINE.engine";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
boe_config.strName = "MarkLine"; boe_config.strName = "MarkLine";
AI_defect_MarkLine->Init(boe_config); AI_defect_MarkLine->Init(boe_config);
@ -227,7 +227,7 @@ int AIFactory::InitALLAIModle(GPU_Config gupconfig)
AI_defect_Edge_QX = AIModel_Base::GetInstance(); AI_defect_Edge_QX = AIModel_Base::GetInstance();
AIModel_Base::AIModelRun_Config boe_config; AIModel_Base::AIModelRun_Config boe_config;
boe_config.gpuconfig.copy(gupconfig); boe_config.gpuconfig.copy(gupconfig);
boe_config.strPath = "/home/aidlux/BOE/UseModel_Cell_ET/BOE_Edge_320x320.engine"; boe_config.strPath = "/home/aidlux/BOE/UseModel_FOG/BOE_Edge_320x320.engine";
boe_config.inputType = AIModel_Base::Input_CHW; boe_config.inputType = AIModel_Base::Input_CHW;
boe_config.strName = "Edge_QX"; boe_config.strName = "Edge_QX";
AI_defect_Edge_QX->Init(boe_config); AI_defect_Edge_QX->Init(boe_config);

@ -69,9 +69,9 @@ file(GLOB_RECURSE SRC_LISTS
${PROJECT_SOURCE_DIR}/AIEngineModule/src/*.cu ${PROJECT_SOURCE_DIR}/AIEngineModule/src/*.cu
) )
add_library(CELL_ET_Check SHARED ${SRC_LISTS}) add_library(FOG_Check SHARED ${SRC_LISTS})
target_link_libraries(CELL_ET_Check target_link_libraries(FOG_Check
nvinfer nvinfer
Config Config
${OpenCV_LIBS} ${OpenCV_LIBS}
@ -83,10 +83,10 @@ set(ModuleName "")
# make install /usr/local # make install /usr/local
# #
set(CMAKE_INSTALL_PREFIX /usr/local/cellet CACHE PATH "Install path prefix" FORCE) set(CMAKE_INSTALL_PREFIX /usr/local/fog CACHE PATH "Install path prefix" FORCE)
set(HEADER_FILES include/ImgCheckBase.h include/ImgCheckConfig.h) set(HEADER_FILES include/ImgCheckBase.h include/ImgCheckConfig.h)
# #
install(TARGETS CELL_ET_Check install(TARGETS FOG_Check
LIBRARY DESTINATION lib # CMAKE_INSTALL_PREFIX/lib LIBRARY DESTINATION lib # CMAKE_INSTALL_PREFIX/lib
ARCHIVE DESTINATION lib/static ARCHIVE DESTINATION lib/static
RUNTIME DESTINATION bin RUNTIME DESTINATION bin

@ -10,10 +10,10 @@ AI_Edge_Algin::AI_Edge_Algin()
m_bModelSucc = false; m_bModelSucc = false;
m_str_curCamName = ""; m_str_curCamName = "";
AI_Factory = AIFactory::GetInstance(); AI_Factory = AIFactory::GetInstance();
CheckUtil::CreateDir("/home/aidlux/BOE/CELL_ET/Edge/Error/"); CheckUtil::CreateDir("/home/aidlux/BOE/FOG/Edge/Error/");
CheckUtil::CreateDir("/home/aidlux/BOE/CELL_ET/Edge/Result/"); CheckUtil::CreateDir("/home/aidlux/BOE/FOG/Edge/Result/");
CheckUtil::CreateDir("/home/aidlux/BOE/CELL_ET/Edge/Smasll/"); CheckUtil::CreateDir("/home/aidlux/BOE/FOG/Edge/Smasll/");
CheckUtil::CreateDir("/home/aidlux/BOE/CELL_ET/Edge/Big/"); CheckUtil::CreateDir("/home/aidlux/BOE/FOG/Edge/Big/");
runner = std::make_shared<AIMulThreadRunBase>(); runner = std::make_shared<AIMulThreadRunBase>();
runner->Start(); runner->Start();
} }
@ -40,7 +40,7 @@ int AI_Edge_Algin::Detect(const cv::Mat &img, DetConfig *pDetConfig, std::shared
{ {
erridx = 0; erridx = 0;
} }
str_error = "/home/aidlux/BOE/CELL_ET/Edge/Error/" + std::to_string(erridx) + "_src.png"; str_error = "/home/aidlux/BOE/FOG/Edge/Error/" + std::to_string(erridx) + "_src.png";
} }
cv::Mat showimg; cv::Mat showimg;
// 保存结果图片 // 保存结果图片
@ -288,8 +288,8 @@ int AI_Edge_Algin::Detect(const cv::Mat &img, DetConfig *pDetConfig, std::shared
svidx = 0; svidx = 0;
/* code */ /* code */
} }
std::string str1 = "/home/aidlux/BOE/CELL_ET/Edge/Result/" + std::to_string(svidx) + "_mask.png"; std::string str1 = "/home/aidlux/BOE/FOG/Edge/Result/" + std::to_string(svidx) + "_mask.png";
std::string str2 = "/home/aidlux/BOE/CELL_ET/Edge/Result/" + std::to_string(svidx) + "_show.png"; std::string str2 = "/home/aidlux/BOE/FOG/Edge/Result/" + std::to_string(svidx) + "_show.png";
int newWidth = 1280; int newWidth = 1280;
float aspectRatio = static_cast<float>(resultMask_erode_small.rows) / resultMask_erode_small.cols; float aspectRatio = static_cast<float>(resultMask_erode_small.rows) / resultMask_erode_small.cols;
@ -370,8 +370,8 @@ int AI_Edge_Algin::SaveSmallImg(const cv::Mat &img, const cv::Mat &mask, cv::Rec
if (bssss) if (bssss)
{ {
std::string str1 = "/home/aidlux/BOE/CELL_ET/Edge/Smasll/" + std::to_string(svsmallidx) + "_in.png"; std::string str1 = "/home/aidlux/BOE/FOG/Edge/Smasll/" + std::to_string(svsmallidx) + "_in.png";
std::string str2 = "/home/aidlux/BOE/CELL_ET/Edge/Smasll/" + std::to_string(svsmallidx) + "_in_mask.png"; std::string str2 = "/home/aidlux/BOE/FOG/Edge/Smasll/" + std::to_string(svsmallidx) + "_in_mask.png";
// std::string st3 = "/home/aidlux/BOE/Edge/Smasll/" + std::to_string(svsmallidx) + "_in_show.png"; // std::string st3 = "/home/aidlux/BOE/Edge/Smasll/" + std::to_string(svsmallidx) + "_in_show.png";
cv::imwrite(str1, img); cv::imwrite(str1, img);
cv::imwrite(str2, mask); cv::imwrite(str2, mask);
@ -451,8 +451,8 @@ int AI_Edge_Algin::Det_big(const cv::Mat &img, vector<Rect> &smallRoiList, std::
bigidx = 0; bigidx = 0;
/* code */ /* code */
} }
std::string str1 = "/home/aidlux/BOE/CELL_ET/Edge/Big/" + std::to_string(bigidx) + "_in.png"; std::string str1 = "/home/aidlux/BOE/FOG/Edge/Big/" + std::to_string(bigidx) + "_in.png";
std::string str2 = "/home/aidlux/BOE/CELL_ET/Edge/Big/" + std::to_string(bigidx) + "_in_mask.png"; std::string str2 = "/home/aidlux/BOE/FOG/Edge/Big/" + std::to_string(bigidx) + "_in_mask.png";
cv::imwrite(str1, detImg); cv::imwrite(str1, detImg);
cv::imwrite(str2, mask); cv::imwrite(str2, mask);
} }

@ -6,7 +6,7 @@ AI_Edge_QX_Det::AI_Edge_QX_Det()
{ {
m_bInitSucc = false; m_bInitSucc = false;
m_strSaveImgRootPath = "/home/aidlux/BOE/CELL_ET/Edge_QX/"; m_strSaveImgRootPath = "/home/aidlux/BOE/FOG/Edge_QX/";
CheckUtil::CreateDir(m_strSaveImgRootPath); CheckUtil::CreateDir(m_strSaveImgRootPath);
m_strSaveImgRootPath_OK = m_strSaveImgRootPath + "ok/"; m_strSaveImgRootPath_OK = m_strSaveImgRootPath + "ok/";
CheckUtil::CreateDir(m_strSaveImgRootPath_OK); CheckUtil::CreateDir(m_strSaveImgRootPath_OK);

@ -6,7 +6,7 @@
AI_Mark_Det::AI_Mark_Det() AI_Mark_Det::AI_Mark_Det()
{ {
m_bModelSucc = false; m_bModelSucc = false;
CheckUtil::CreateDir("/home/aidlux/BOE/CELL_ET/MarkLine/"); CheckUtil::CreateDir("/home/aidlux/BOE/FOG/MarkLine/");
m_pImageStorage = ImageStorage::getInstance(); m_pImageStorage = ImageStorage::getInstance();
m_Show_Area = 0; m_Show_Area = 0;
m_Show_Len = 0; m_Show_Len = 0;
@ -241,8 +241,8 @@ int AI_Mark_Det::Detect(const cv::Mat &img, DetConfigResult *pDetConfig)
if (pDetConfig->bDebugsaveimg || pDetConfig->bDetSaveImg) if (pDetConfig->bDebugsaveimg || pDetConfig->bDetSaveImg)
{ {
std::string str12 = "/home/aidlux/BOE/CELL_ET/MarkLine/" + pDetConfig->strCamName + "_" + std::to_string(ki) + "_in.png"; std::string str12 = "/home/aidlux/BOE/FOG/MarkLine/" + pDetConfig->strCamName + "_" + std::to_string(ki) + "_in.png";
std::string strmask = "/home/aidlux/BOE/CELL_ET/MarkLine/" + pDetConfig->strCamName + "_" + std::to_string(ki) + "_in_mask.png"; std::string strmask = "/home/aidlux/BOE/FOG/MarkLine/" + pDetConfig->strCamName + "_" + std::to_string(ki) + "_in_mask.png";
if (pDetConfig->bDebugsaveimg) if (pDetConfig->bDebugsaveimg)
{ {
str12 = pDetConfig->strCamName + "_" + std::to_string(ki) + "_in.png"; str12 = pDetConfig->strCamName + "_" + std::to_string(ki) + "_in.png";
@ -280,8 +280,8 @@ int AI_Mark_Det::Detect(const cv::Mat &img, DetConfigResult *pDetConfig)
if (pDetConfig->bDebugsaveimg || pDetConfig->bDetSaveImg) if (pDetConfig->bDebugsaveimg || pDetConfig->bDetSaveImg)
{ {
std::string str12 = "/home/aidlux/BOE/CELL_ET/MarkLine/Check_big_" + pDetConfig->strCamName + "_in.png"; std::string str12 = "/home/aidlux/BOE/FOG/MarkLine/Check_big_" + pDetConfig->strCamName + "_in.png";
std::string strmask = "/home/aidlux/BOE/CELL_ET/MarkLine/Check_big_" + pDetConfig->strCamName + "_in_mask.png"; std::string strmask = "/home/aidlux/BOE/FOG/MarkLine/Check_big_" + pDetConfig->strCamName + "_in_mask.png";
if (pDetConfig->bDebugsaveimg) if (pDetConfig->bDebugsaveimg)
{ {
str12 = "Check_big_" + pDetConfig->strCamName + "_" + std::to_string(ki) + "_in.png"; str12 = "Check_big_" + pDetConfig->strCamName + "_" + std::to_string(ki) + "_in.png";

@ -7,8 +7,8 @@ AI_SecondDet::AI_SecondDet()
{ {
m_bModelSucc_AD = false; m_bModelSucc_AD = false;
m_bModelSucc_POL = false; m_bModelSucc_POL = false;
CheckUtil::CreateDir("/home/aidlux/BOE/CELL_ET/Second/POL/"); CheckUtil::CreateDir("/home/aidlux/BOE/FOG/Second/POL/");
CheckUtil::CreateDir("/home/aidlux/BOE/CELL_ET/Second/AD/"); CheckUtil::CreateDir("/home/aidlux/BOE/FOG/Second/AD/");
m_pImageStorage = ImageStorage::getInstance(); m_pImageStorage = ImageStorage::getInstance();
m_Show_Area = 0; m_Show_Area = 0;
m_Show_Len = 0; m_Show_Len = 0;
@ -517,7 +517,7 @@ int AI_SecondDet::SaveProcessImg(const cv::Mat &inImg, const cv::Mat &outImg, co
static int saveimgIdx_ad = 0; static int saveimgIdx_ad = 0;
// 循环存储 // 循环存储
std::string str_Root = "/home/aidlux/BOE/CELL_ET/Second/"; std::string str_Root = "/home/aidlux/BOE/FOG/Second/";
if (pDetConfig->qx_type == CONFIG_QX_NAME_POL_Cell) if (pDetConfig->qx_type == CONFIG_QX_NAME_POL_Cell)
{ {

@ -12,7 +12,7 @@ static bool compareContourAreas123(const vector<Point> &contour1, const vector<P
AI_ZF_Det::AI_ZF_Det() AI_ZF_Det::AI_ZF_Det()
{ {
m_bModelSucc = false; m_bModelSucc = false;
CheckUtil::CreateDir("/home/aidlux/BOE/CELL_ET/zf/"); CheckUtil::CreateDir("/home/aidlux/BOE/FOG/zf/");
m_pImageStorage = ImageStorage::getInstance(); m_pImageStorage = ImageStorage::getInstance();
m_Show_Area = 0; m_Show_Area = 0;
m_Show_Len = 0; m_Show_Len = 0;

@ -34,7 +34,7 @@ CameraCheckAnalysisy::CameraCheckAnalysisy()
m_pCommonAnalysisyConfig = NULL; m_pCommonAnalysisyConfig = NULL;
m_imageResultJudge.SetAnalysisyConfig(&m_AnalysisyConfig); m_imageResultJudge.SetAnalysisyConfig(&m_AnalysisyConfig);
m_strRootPath_MergeImg = "/home/aidlux/BOE/CELL_ET/MergeImg/"; m_strRootPath_MergeImg = "/home/aidlux/BOE/FOG/MergeImg/";
CheckUtil::CreateDir(m_strRootPath_MergeImg); CheckUtil::CreateDir(m_strRootPath_MergeImg);
// m_pQX_Merge_Analysis = QX_Merge_Analysis::GetInstance(); // m_pQX_Merge_Analysis = QX_Merge_Analysis::GetInstance();
} }

@ -30,8 +30,8 @@ ImgCheckAnalysisy::ImgCheckAnalysisy()
m_pbaseCheckFunction = &m_AnalysisyConfig.baseFunction; m_pbaseCheckFunction = &m_AnalysisyConfig.baseFunction;
m_strLastDate = ""; m_strLastDate = "";
m_strRootPath_TA_cls = "/home/aidlux/BOE/CELL_ET/Cls/TA/"; m_strRootPath_TA_cls = "/home/aidlux/BOE/FOG/Cls/TA/";
m_strRootPath_CA_cls = "/home/aidlux/BOE/CELL_ET/Cls/CA/"; m_strRootPath_CA_cls = "/home/aidlux/BOE/FOG/Cls/CA/";
creatsavedir(); creatsavedir();
m_pImageStorage = ImageStorage::getInstance(); m_pImageStorage = ImageStorage::getInstance();
m_nConfigIdx = -1; m_nConfigIdx = -1;

@ -2,7 +2,7 @@
cmake_minimum_required (VERSION 3.5) cmake_minimum_required (VERSION 3.5)
project(rootproject) project(rootproject)
set(CHECK_WORK_Value "CELL_ET") set(CHECK_WORK_Value "FOG")
if (DEFINED WORK) if (DEFINED WORK)
set(CHECK_WORK_Value ${WORK}) set(CHECK_WORK_Value ${WORK})

@ -30,7 +30,7 @@ set(ModuleName "")
# make install /usr/local # make install /usr/local
# #
set(CMAKE_INSTALL_PREFIX /usr/local/cellet CACHE PATH "Install path prefix" FORCE) set(CMAKE_INSTALL_PREFIX /usr/local/fog CACHE PATH "Install path prefix" FORCE)
set(HEADER_FILES include/ConfigBase.h) set(HEADER_FILES include/ConfigBase.h)
# #
install(TARGETS Config install(TARGETS Config

@ -22,18 +22,18 @@ link_directories(
) )
file(GLOB SRC_LISTS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) file(GLOB SRC_LISTS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
add_executable("test_CELL_ET" ${SRC_LISTS}) add_executable("test_FOG" ${SRC_LISTS})
target_link_libraries("test_CELL_ET" target_link_libraries("test_FOG"
pthread pthread
z z
nvinfer nvinfer
CELL_ET_Check FOG_Check
Config Config
${OpenCV_LIBS} ${OpenCV_LIBS}
) )
# RPATH # RPATH
set_target_properties("test_CELL_ET" PROPERTIES set_target_properties("test_FOG" PROPERTIES
BUILD_RPATH "\$ORIGIN" BUILD_RPATH "\$ORIGIN"
) )
set(ModuleName "") set(ModuleName "")

@ -3,7 +3,7 @@
* @Date: 2025-07-25 09:14:25 * @Date: 2025-07-25 09:14:25
* @LastEditors: xiewenji 527774126@qq.com * @LastEditors: xiewenji 527774126@qq.com
* @LastEditTime: 2025-09-23 17:49:42 * @LastEditTime: 2025-09-23 17:49:42
* @FilePath: /BOE_CELL_ET/AlgorithmModule/example/Image_ReadAndChange.h * @FilePath: /BOE_FOG/AlgorithmModule/example/Image_ReadAndChange.h
* @Description: ,`customMade`, koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: ,`customMade`, koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
/* /*

@ -26,7 +26,7 @@
## 测试命令 ## 测试命令
```bash ```bash
./test_CELL_ET -f /home/aidlux/BOE_CELL_ET/Image/cell_et 图/ttt ./test_FOG -f /home/aidlux/BOE_FOG/Image/FOG 图/ttt
``` ```
## 修改的文件 ## 修改的文件

@ -443,7 +443,7 @@ int deal::preCheck()
std::shared_ptr<CheckResult> checkResult; std::shared_ptr<CheckResult> checkResult;
int re = m_pALLImgCheckAnalysisy->GetCheckReuslt(checkResult); int re = m_pALLImgCheckAnalysisy->GetCheckReuslt(checkResult);
saveImg("/home/aidlux/BOE/CELL_ET/testresult/", checkResult); saveImg("/home/aidlux/BOE/FOG/testresult/", checkResult);
getresultNum++; getresultNum++;
if (getresultNum == m_nProductSuccessCount) if (getresultNum == m_nProductSuccessCount)
{ {
@ -812,7 +812,7 @@ void deal::ResultThread(int id)
if (true) if (true)
{ {
// 存图 // 存图
std::string savepath = "/home/aidlux/BOE/CELL_ET/Detsave/"; std::string savepath = "/home/aidlux/BOE/FOG/Detsave/";
saveImg(savepath, dealResult); saveImg(savepath, dealResult);
// saveImg("/home/aidlux/BOE/ResultImg/", dealResult); // saveImg("/home/aidlux/BOE/ResultImg/", dealResult);
} }
@ -821,7 +821,7 @@ void deal::ResultThread(int id)
// 存 检测统计 日志 // 存 检测统计 日志
mutex_DetResult_.lock(); mutex_DetResult_.lock();
m_DetResult.print(false); m_DetResult.print(false);
std::string strlog = "/home/aidlux/BOE/CELL_ET/ResultImg/"; std::string strlog = "/home/aidlux/BOE/FOG/ResultImg/";
if (m_strCurDate != "") if (m_strCurDate != "")
{ {
strlog += m_strCurDate; strlog += m_strCurDate;

@ -25,7 +25,7 @@
- Detailed error logging - Detailed error logging
## Test Command ## Test Command
./test_CELL_ET -f /path/to/images ./test_FOG -f /path/to/images
## Modified Files ## Modified Files
- example/deal.h - Removed unused members, added condition variables - example/deal.h - Removed unused members, added condition variables

@ -79,7 +79,7 @@ void test_LoadImage()
printf("╚═══════════════════════════════════════════════════════════\n"); printf("╚═══════════════════════════════════════════════════════════\n");
printf("\n"); printf("\n");
std::string root_dir = "/home/aidlux/BOE_CELL_ET/Image/20250718"; std::string root_dir = "/home/aidlux/BOE_FOG/Image/20250718";
printf("测试目录:%s\n\n", root_dir.c_str()); printf("测试目录:%s\n\n", root_dir.c_str());
LoadImage loader; LoadImage loader;

Loading…
Cancel
Save