|
|
|
|
@ -180,6 +180,9 @@ static int GetClsTypeByLabel(int nLabel)
|
|
|
|
|
case 6:
|
|
|
|
|
cls_num = AI_CLass_QX_NAME_C_BianXing;
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
cls_num = AI_CLass_QX_NAME_Panel;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@ -1927,8 +1930,8 @@ int ImgCheckAnalysisy::AI_QX_Class_Thread()
|
|
|
|
|
// 分类 label 映射:优先读映射配置文件(KK_cls.txt),读不到用默认顺序
|
|
|
|
|
int cls_num = GetClsTypeByLabel(temClass);
|
|
|
|
|
|
|
|
|
|
// std::string strclassName = AI_CLass_QX_NAME_Names[cls_num];
|
|
|
|
|
// printf("AI Class num %d = %s %f\n", cls_num, strclassName.c_str(), result->cls_score);
|
|
|
|
|
std::string strclassName = AI_CLass_QX_NAME_Names[cls_num];
|
|
|
|
|
m_pdetlog->AddCheckstr(PrintLevel_1, "AI Class num", "%d = %s %f\n", cls_num, strclassName.c_str(), result->cls_score);
|
|
|
|
|
|
|
|
|
|
// 分类存图 开启。
|
|
|
|
|
if (m_pbaseCheckFunction->saveImg.bSaveClsImg)
|
|
|
|
|
@ -2186,7 +2189,7 @@ int ImgCheckAnalysisy::AIClassTypeToConfigType(int nAIQXType)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
// 无对应缺陷类型时返回 CONFIG_QX_NAME_count(缺陷列表已移除 other)
|
|
|
|
|
int resultError_type = CONFIG_QX_NAME_count;
|
|
|
|
|
int resultError_type = AI_CLass_QX_NAME_Panel;
|
|
|
|
|
switch (nAIQXType)
|
|
|
|
|
{
|
|
|
|
|
case AI_CLass_QX_NAME_PIN_PoSun:
|
|
|
|
|
@ -2210,6 +2213,9 @@ int ImgCheckAnalysisy::AIClassTypeToConfigType(int nAIQXType)
|
|
|
|
|
case AI_CLass_QX_NAME_C_BianXing:
|
|
|
|
|
resultError_type = CONFIG_QX_NAME_C_BianXing;
|
|
|
|
|
break;
|
|
|
|
|
case AI_CLass_QX_NAME_Panel:
|
|
|
|
|
resultError_type = CONFIG_QX_NAME_Panel;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|