|
|
|
@ -191,7 +191,7 @@ int ImageResultJudge::ResultJudge(std::shared_ptr<ImageAllResult> pImageResult)
|
|
|
|
float JudgArea_second = QX_info->JudgArea_second;
|
|
|
|
float JudgArea_second = QX_info->JudgArea_second;
|
|
|
|
float flen = QX_info->flen;
|
|
|
|
float flen = QX_info->flen;
|
|
|
|
float grayDis = QX_info->grayDis;
|
|
|
|
float grayDis = QX_info->grayDis;
|
|
|
|
int energy = QX_info->energy;
|
|
|
|
double energy = QX_info->energy;
|
|
|
|
float fupS = QX_info->fUpIou;
|
|
|
|
float fupS = QX_info->fUpIou;
|
|
|
|
int maxValue = QX_info->maxValue;
|
|
|
|
int maxValue = QX_info->maxValue;
|
|
|
|
float density = QX_info->density;
|
|
|
|
float density = QX_info->density;
|
|
|
|
@ -208,7 +208,7 @@ int ImageResultJudge::ResultJudge(std::shared_ptr<ImageAllResult> pImageResult)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_1,
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_1,
|
|
|
|
"ResultJudge", "qxidx: %d/%d qx_status %d roi[%d %d %d %d] qx %d %s %s JudgArea %f hj %f len %f energy %d region %s",
|
|
|
|
"ResultJudge", "qxidx: %d/%d qx_status %d roi[%d %d %d %d] qx %d %s %s JudgArea %f hj %f len %f energy %.0f region %s",
|
|
|
|
qxidx, qxNum, qx_status, roi.x, roi.y, roi.width, roi.height, config_qx_type, qx_name.c_str(), qx_wb.c_str(),
|
|
|
|
qxidx, qxNum, qx_status, roi.x, roi.y, roi.width, roi.height, config_qx_type, qx_name.c_str(), qx_wb.c_str(),
|
|
|
|
JudgArea, grayDis, flen, energy, strdetRegionidxList.c_str());
|
|
|
|
JudgArea, grayDis, flen, energy, strdetRegionidxList.c_str());
|
|
|
|
|
|
|
|
|
|
|
|
@ -373,7 +373,7 @@ int ImageResultJudge::ResultJudge(std::shared_ptr<ImageAllResult> pImageResult)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (energy < Et)
|
|
|
|
if (energy < Et)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "Energy", "%s -> %d %s %f ",
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "Energy", "%s -> %.0f %s %f ",
|
|
|
|
BOOL_TO_STR(energy >= Et), energy, BOOL_TO_ThanLess(energy >= Et), Et);
|
|
|
|
BOOL_TO_STR(energy >= Et), energy, BOOL_TO_ThanLess(energy >= Et), Et);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (grayDis < hj)
|
|
|
|
if (grayDis < hj)
|
|
|
|
@ -823,7 +823,7 @@ int ImageResultJudge::MergeResult(std::shared_ptr<ImageAllResult> pImageResult,
|
|
|
|
float JudgArea = QX_info->JudgArea;
|
|
|
|
float JudgArea = QX_info->JudgArea;
|
|
|
|
float flen = QX_info->flen;
|
|
|
|
float flen = QX_info->flen;
|
|
|
|
float grayDis = QX_info->grayDis;
|
|
|
|
float grayDis = QX_info->grayDis;
|
|
|
|
int energy = QX_info->energy;
|
|
|
|
double energy = QX_info->energy;
|
|
|
|
float fupS = QX_info->fUpIou;
|
|
|
|
float fupS = QX_info->fUpIou;
|
|
|
|
int maxValue = QX_info->maxValue;
|
|
|
|
int maxValue = QX_info->maxValue;
|
|
|
|
float density = QX_info->density;
|
|
|
|
float density = QX_info->density;
|
|
|
|
@ -857,7 +857,7 @@ int ImageResultJudge::MergeResult(std::shared_ptr<ImageAllResult> pImageResult,
|
|
|
|
float fmaxScore = 0;
|
|
|
|
float fmaxScore = 0;
|
|
|
|
|
|
|
|
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_3, DET_LOG_LEVEL_3,
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_3, DET_LOG_LEVEL_3,
|
|
|
|
"qx", "roi[%d %d %d %d] qx %d %s JudgArea %f hj %f len %f energy %d,",
|
|
|
|
"qx", "roi[%d %d %d %d] qx %d %s JudgArea %f hj %f len %f energy %.0f,",
|
|
|
|
roi.x, roi.y, roi.width, roi.height, config_qx_type, qx_name.c_str(),
|
|
|
|
roi.x, roi.y, roi.width, roi.height, config_qx_type, qx_name.c_str(),
|
|
|
|
JudgArea, grayDis, flen, energy);
|
|
|
|
JudgArea, grayDis, flen, energy);
|
|
|
|
// 生成缺陷小图
|
|
|
|
// 生成缺陷小图
|
|
|
|
@ -1551,7 +1551,7 @@ int ImageResultJudge::AnalysisResult_Pre(QX_ERROR_INFO_ *QX_info)
|
|
|
|
float JudgArea_second = QX_info->JudgArea_second;
|
|
|
|
float JudgArea_second = QX_info->JudgArea_second;
|
|
|
|
float flen = QX_info->flen;
|
|
|
|
float flen = QX_info->flen;
|
|
|
|
float grayDis = QX_info->grayDis;
|
|
|
|
float grayDis = QX_info->grayDis;
|
|
|
|
int energy = QX_info->energy;
|
|
|
|
double energy = QX_info->energy;
|
|
|
|
float fupS = QX_info->fUpIou;
|
|
|
|
float fupS = QX_info->fUpIou;
|
|
|
|
int maxValue = QX_info->maxValue;
|
|
|
|
int maxValue = QX_info->maxValue;
|
|
|
|
float density = QX_info->density;
|
|
|
|
float density = QX_info->density;
|
|
|
|
@ -1669,7 +1669,7 @@ int ImageResultJudge::AnalysisResult_Pre(QX_ERROR_INFO_ *QX_info)
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "result", "%s param idx %d / %d", BOOL_TO_STR(bjudge), j + 1, pParam->useNum);
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "result", "%s param idx %d / %d", BOOL_TO_STR(bjudge), j + 1, pParam->useNum);
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "Area", "%s -> %f %s %f ",
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "Area", "%s -> %f %s %f ",
|
|
|
|
BOOL_TO_STR(JudgArea >= At), JudgArea, BOOL_TO_ThanLess(JudgArea >= At), At);
|
|
|
|
BOOL_TO_STR(JudgArea >= At), JudgArea, BOOL_TO_ThanLess(JudgArea >= At), At);
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "Energy", "%s -> %d %s %f ",
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "Energy", "%s -> %.0f %s %f ",
|
|
|
|
BOOL_TO_STR(energy >= Et), energy, BOOL_TO_ThanLess(energy >= Et), Et);
|
|
|
|
BOOL_TO_STR(energy >= Et), energy, BOOL_TO_ThanLess(energy >= Et), Et);
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "HJ", "%s -> %f %s %f ",
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "HJ", "%s -> %f %s %f ",
|
|
|
|
BOOL_TO_STR(grayDis > hj), grayDis, BOOL_TO_ThanLess(grayDis > hj), hj);
|
|
|
|
BOOL_TO_STR(grayDis > hj), grayDis, BOOL_TO_ThanLess(grayDis > hj), hj);
|
|
|
|
|