|
|
|
|
@ -2835,6 +2835,24 @@ int ImgCheckAnalysisy::AI_Detect_QX()
|
|
|
|
|
pDetAIResult->blobDetParam->AIMaskImgBLobQueue.push(temAIresult);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// AI检测残点图存图
|
|
|
|
|
if (DetImgInfo_shareP->bDebugsaveImg)
|
|
|
|
|
{
|
|
|
|
|
bool bNeedSave = false;
|
|
|
|
|
std::string roi_ext = "[" + std::to_string(result->roi.x) + "," + std::to_string(result->roi.y) + "]";
|
|
|
|
|
|
|
|
|
|
bNeedSave = true;
|
|
|
|
|
|
|
|
|
|
if (bNeedSave && !AIresult.empty())
|
|
|
|
|
{
|
|
|
|
|
std::string strSaveDir = "/home/aidlux/BOE/FOG/AI_Detect/" + DetImgInfo_shareP->strImgProductID + "/";
|
|
|
|
|
CheckUtil::CreateDir(strSaveDir);
|
|
|
|
|
std::string strSavePath_in = strSaveDir + m_strCurDetChannel +"_"+ roi_ext + "_"+ "in" + ".png";
|
|
|
|
|
std::string strSavePath_out = strSaveDir + m_strCurDetChannel +"_"+ roi_ext + "_"+ "out" + ".png";
|
|
|
|
|
cv::imwrite(strSavePath_in, result->input);
|
|
|
|
|
cv::imwrite(strSavePath_out, AIresult);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
completed++;
|
|
|
|
|
}
|
|
|
|
|
|