|
|
|
|
@ -527,8 +527,9 @@ int ImgCheckAnalysisy::CheckRun()
|
|
|
|
|
alignErr.flen = tplRect.width * m_fImgage_Scale_X;
|
|
|
|
|
alignErr.fbreadth = tplRect.height * m_fImgage_Scale_Y;
|
|
|
|
|
|
|
|
|
|
alignErr.nconfig_qx_type = CONFIG_QX_NAME_other;
|
|
|
|
|
alignErr.qx_name = CONFIG_QX_NAME_Names[CONFIG_QX_NAME_other];
|
|
|
|
|
// 缺陷列表中原 other(其他)已移除;内外边缘对齐超差暂按 C型卡口异常 上报(待确认)
|
|
|
|
|
alignErr.nconfig_qx_type = CONFIG_QX_NAME_C_BianXing;
|
|
|
|
|
alignErr.qx_name = CONFIG_QX_NAME_Names[CONFIG_QX_NAME_C_BianXing];
|
|
|
|
|
alignErr.grayDis = diff_align; // 记录内外边缘夹角(度)
|
|
|
|
|
alignErr.detRegionidxList.push_back(0);
|
|
|
|
|
|
|
|
|
|
@ -1884,7 +1885,8 @@ int ImgCheckAnalysisy::DrawResult_Step_1()
|
|
|
|
|
int ImgCheckAnalysisy::AIClassTypeToConfigType(int nAIQXType)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
int resultError_type = CONFIG_QX_NAME_other;
|
|
|
|
|
// 无对应缺陷类型时返回 CONFIG_QX_NAME_count(缺陷列表已移除 other)
|
|
|
|
|
int resultError_type = CONFIG_QX_NAME_count;
|
|
|
|
|
switch (nAIQXType)
|
|
|
|
|
{
|
|
|
|
|
case AI_CLass_QX_NAME_PIN_PoSun:
|
|
|
|
|
@ -1909,7 +1911,8 @@ int ImgCheckAnalysisy::AIClassTypeToConfigType(int nAIQXType)
|
|
|
|
|
resultError_type = CONFIG_QX_NAME_C_BianXing;
|
|
|
|
|
break;
|
|
|
|
|
case AI_CLass_QX_NAME_other:
|
|
|
|
|
resultError_type = CONFIG_QX_NAME_other;
|
|
|
|
|
// 缺陷列表已移除 other,AI 分类的“其他”类无对应配置缺陷类型
|
|
|
|
|
resultError_type = CONFIG_QX_NAME_count;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
@ -2190,6 +2193,13 @@ int ImgCheckAnalysisy::BLobToDetResult()
|
|
|
|
|
roi.height = blobs.blobTab[i].maxy - blobs.blobTab[i].miny + 1;
|
|
|
|
|
|
|
|
|
|
int config_qx_type = blobs.blobTab[i].AIclasstype;
|
|
|
|
|
if (config_qx_type < 0 || config_qx_type >= CONFIG_QX_NAME_count)
|
|
|
|
|
{
|
|
|
|
|
// AI 分类为“其他”等无对应缺陷类型的情况,不参与缺陷结果分析
|
|
|
|
|
m_pdetlog->AddCheckstr(PrintLevel_1, DET_LOG_LEVEL_3, "BLobToDetResult",
|
|
|
|
|
"blob idx %d invalid AIclasstype %d skip", i, config_qx_type);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
float JudgArea = blobs.blobTab[i].JudgArea;
|
|
|
|
|
float fsecondArea = JudgArea;
|
|
|
|
|
|