|
|
|
|
@ -181,7 +181,7 @@ int ImgCheckAnalysisy::GetStatus()
|
|
|
|
|
|
|
|
|
|
std::string ImgCheckAnalysisy::GetVersion()
|
|
|
|
|
{
|
|
|
|
|
return std::string("BOE_1.7.91");
|
|
|
|
|
return std::string("BOE_1.0.0");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string ImgCheckAnalysisy::GetErrorInfo()
|
|
|
|
|
@ -1189,7 +1189,7 @@ int ImgCheckAnalysisy::GetALLBlob()
|
|
|
|
|
ERROR_DOTS_BLOBS blobs_big_2;
|
|
|
|
|
memset(&blobs_big_2, 0x00, sizeof(ERROR_DOTS_BLOBS));
|
|
|
|
|
printf("=====>>>> GetALLBlob m_strCurDetChannel %s \n", m_strCurDetChannel.c_str());
|
|
|
|
|
if (m_strCurDetChannel == "CA")
|
|
|
|
|
if (m_strCurDetChannel.find("CA") != std::string::npos)
|
|
|
|
|
{
|
|
|
|
|
printf("=====>>>>GetALLBlob USE CA %s \n", m_strCurDetChannel.c_str());
|
|
|
|
|
GetBlobs_ALL_New(&blobs_v1, pGrayErrordata, m_ImgBlobHFlagData, width, height, 15);
|
|
|
|
|
@ -1483,7 +1483,7 @@ int ImgCheckAnalysisy::AI_Detect_Thread(const cv::Mat &img, cv::Mat &ResultImg)
|
|
|
|
|
{
|
|
|
|
|
std::shared_ptr<AIModel_Base> pAIDet;
|
|
|
|
|
// printf("=====>>>>AI_Detect_Thread m_strCurDetChannel %s \n", m_strCurDetChannel.c_str());
|
|
|
|
|
if (m_strCurDetChannel == "CA")
|
|
|
|
|
if (m_strCurDetChannel.find("CA") != std::string::npos)
|
|
|
|
|
{
|
|
|
|
|
// printf("=====>>>>AI_Detect_Thread USE CA %s \n", m_strCurDetChannel.c_str());
|
|
|
|
|
pAIDet = AI_Factory->CELL_CA_Det;
|
|
|
|
|
@ -1615,7 +1615,7 @@ int ImgCheckAnalysisy::AI_Detect_Thread(const cv::Mat &img, cv::Mat &ResultImg)
|
|
|
|
|
int ImgCheckAnalysisy::Traditional_Detect_Thread(const cv::Mat &img, cv::Mat &ResultImg)
|
|
|
|
|
{
|
|
|
|
|
std::string strBaseLog = "Traditional_Detect";
|
|
|
|
|
m_pdetlog->AddCheckstr(PrintLevel_0, DET_LOG_LEVEL_3, strBaseLog, "Traditional_Detect Start (placeholder)");
|
|
|
|
|
m_pdetlog->AddCheckstr(PrintLevel_0, DET_LOG_LEVEL_3, strBaseLog, "Traditional_Detect Start");
|
|
|
|
|
|
|
|
|
|
// 输出与AI推理相同格式的二值mask图 (CV_8UC1)
|
|
|
|
|
ResultImg = cv::Mat::zeros(img.size(), CV_8UC1);
|
|
|
|
|
@ -1626,7 +1626,7 @@ int ImgCheckAnalysisy::Traditional_Detect_Thread(const cv::Mat &img, cv::Mat &Re
|
|
|
|
|
// 输出: ResultImg (二值mask, CV_8UC1, 0/255)
|
|
|
|
|
// ==========================================
|
|
|
|
|
|
|
|
|
|
m_pdetlog->AddCheckstr(PrintLevel_0, DET_LOG_LEVEL_3, strBaseLog, "Traditional_Detect End (placeholder)");
|
|
|
|
|
m_pdetlog->AddCheckstr(PrintLevel_0, DET_LOG_LEVEL_3, strBaseLog, "Traditional_Detect End");
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1637,7 +1637,7 @@ int ImgCheckAnalysisy::AI_QX_Class_Thread()
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<AIModel_Base> pAIDet;
|
|
|
|
|
// printf("=====>>>>AI_QX_Class_Thread m_strCurDetChannel %s \n", m_strCurDetChannel.c_str());
|
|
|
|
|
if (m_strCurDetChannel == "CA")
|
|
|
|
|
if (m_strCurDetChannel.find("CA") != std::string::npos)
|
|
|
|
|
{
|
|
|
|
|
// printf("=====>>>>AI_QX_Class_Thread USE CA %s \n", m_strCurDetChannel.c_str());
|
|
|
|
|
pAIDet = AI_Factory->CELL_CA_Cls;
|
|
|
|
|
@ -1765,7 +1765,7 @@ int ImgCheckAnalysisy::AI_QX_Class_Thread()
|
|
|
|
|
|
|
|
|
|
std::string saveimgpaht = "";
|
|
|
|
|
|
|
|
|
|
if (m_strCurDetChannel == "TA")
|
|
|
|
|
if (m_strCurDetChannel.find("TA") != std::string::npos)
|
|
|
|
|
{
|
|
|
|
|
saveimgpaht = m_strRootPath_TA_cls + std::to_string(cls_num) + "/" + std::to_string(CheckUtil::getcurTime()) + "_" + std::to_string(result->cls_score) + ".png";
|
|
|
|
|
}
|
|
|
|
|
|