|
|
|
@ -1719,6 +1719,41 @@ struct Function_Edge_Det
|
|
|
|
return str123;
|
|
|
|
return str123;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Function_Det_BQ
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
bool bBQ_AI_Det; // 是否启用标签独立AI检测
|
|
|
|
|
|
|
|
int BQ_expand;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Function_Det_BQ()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Init();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void Init()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
BQ_expand = 0;
|
|
|
|
|
|
|
|
bBQ_AI_Det = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void copy(Function_Det_BQ tem)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this->BQ_expand = tem.BQ_expand;
|
|
|
|
|
|
|
|
this->bBQ_AI_Det = tem.bBQ_AI_Det;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void print(std::string str)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
printf("%d BQ_expand %d bBQ_AI_Det %d\n", str.c_str(),
|
|
|
|
|
|
|
|
BQ_expand, bBQ_AI_Det);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
char buffer[256];
|
|
|
|
|
|
|
|
sprintf(buffer, "%d BQ_expand %d bBQ_AI_Det %d\n", str.c_str(),
|
|
|
|
|
|
|
|
BQ_expand, bBQ_AI_Det);
|
|
|
|
|
|
|
|
std::string str123 = buffer;
|
|
|
|
|
|
|
|
return str123;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 检测功能
|
|
|
|
// 检测功能
|
|
|
|
struct CheckFunction
|
|
|
|
struct CheckFunction
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1738,6 +1773,7 @@ struct CheckFunction
|
|
|
|
Function_AD_Check f_AD_Check; // 暗点的检测功能
|
|
|
|
Function_AD_Check f_AD_Check; // 暗点的检测功能
|
|
|
|
Function_POL_Check f_POL_Check; // 异物的检测功能
|
|
|
|
Function_POL_Check f_POL_Check; // 异物的检测功能
|
|
|
|
Function_Edge_Det f_dege_Det;
|
|
|
|
Function_Edge_Det f_dege_Det;
|
|
|
|
|
|
|
|
Function_Det_BQ f_Det_BQ;
|
|
|
|
CheckFunction()
|
|
|
|
CheckFunction()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
Init();
|
|
|
|
@ -1760,6 +1796,7 @@ struct CheckFunction
|
|
|
|
f_AD_Check.Init();
|
|
|
|
f_AD_Check.Init();
|
|
|
|
f_POL_Check.Init();
|
|
|
|
f_POL_Check.Init();
|
|
|
|
f_dege_Det.Init();
|
|
|
|
f_dege_Det.Init();
|
|
|
|
|
|
|
|
f_Det_BQ.Init();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void copy(CheckFunction tem)
|
|
|
|
void copy(CheckFunction tem)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1780,6 +1817,7 @@ struct CheckFunction
|
|
|
|
this->f_AD_Check.copy(tem.f_AD_Check);
|
|
|
|
this->f_AD_Check.copy(tem.f_AD_Check);
|
|
|
|
this->f_POL_Check.copy(tem.f_POL_Check);
|
|
|
|
this->f_POL_Check.copy(tem.f_POL_Check);
|
|
|
|
this->f_dege_Det.copy(tem.f_dege_Det);
|
|
|
|
this->f_dege_Det.copy(tem.f_dege_Det);
|
|
|
|
|
|
|
|
this->f_Det_BQ.copy(tem.f_Det_BQ);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void print(std::string str)
|
|
|
|
void print(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1800,6 +1838,7 @@ struct CheckFunction
|
|
|
|
f_AD_Check.print("f_AD_Check");
|
|
|
|
f_AD_Check.print("f_AD_Check");
|
|
|
|
f_POL_Check.print("f_POL_Check");
|
|
|
|
f_POL_Check.print("f_POL_Check");
|
|
|
|
f_dege_Det.print("f_dege_Det");
|
|
|
|
f_dege_Det.print("f_dege_Det");
|
|
|
|
|
|
|
|
f_Det_BQ.print("f_Det_BQ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1821,6 +1860,7 @@ struct CheckFunction
|
|
|
|
str123 += f_AD_Check.GetInfo("f_AD_Check");
|
|
|
|
str123 += f_AD_Check.GetInfo("f_AD_Check");
|
|
|
|
str123 += f_POL_Check.GetInfo("f_POL_Check");
|
|
|
|
str123 += f_POL_Check.GetInfo("f_POL_Check");
|
|
|
|
str123 += f_dege_Det.GetInfo("f_dege_Det");
|
|
|
|
str123 += f_dege_Det.GetInfo("f_dege_Det");
|
|
|
|
|
|
|
|
str123 += f_Det_BQ.GetInfo("f_Det_BQ");
|
|
|
|
return str123;
|
|
|
|
return str123;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -2261,40 +2301,6 @@ struct Base_Function_AD_Check
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct Base_Function_Det_BQ
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
int BQ_expand;
|
|
|
|
|
|
|
|
bool bBQ_AI_Det; // 是否启用标签独立AI检测,汇入主流程分类
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Base_Function_Det_BQ()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Init();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void Init()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
BQ_expand = 0;
|
|
|
|
|
|
|
|
bBQ_AI_Det = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void copy(Base_Function_Det_BQ tem)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this->BQ_expand = tem.BQ_expand;
|
|
|
|
|
|
|
|
this->bBQ_AI_Det = tem.bBQ_AI_Det;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void print(std::string str)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
printf("%d BQ_expand %d bBQ_AI_Det %d\n", str.c_str(),
|
|
|
|
|
|
|
|
BQ_expand, bBQ_AI_Det);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
char buffer[256];
|
|
|
|
|
|
|
|
sprintf(buffer, "%d BQ_expand %d bBQ_AI_Det %d\n", str.c_str(),
|
|
|
|
|
|
|
|
BQ_expand, bBQ_AI_Det);
|
|
|
|
|
|
|
|
std::string str123 = buffer;
|
|
|
|
|
|
|
|
return str123;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// 基础检测功能
|
|
|
|
// 基础检测功能
|
|
|
|
struct BaseCheckFunction
|
|
|
|
struct BaseCheckFunction
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -2304,7 +2310,6 @@ struct BaseCheckFunction
|
|
|
|
Base_Function_BigNG bigNG;
|
|
|
|
Base_Function_BigNG bigNG;
|
|
|
|
Base_Function_EdgeChannel edgeChannel;
|
|
|
|
Base_Function_EdgeChannel edgeChannel;
|
|
|
|
Base_Function_AD_Check ad_check;
|
|
|
|
Base_Function_AD_Check ad_check;
|
|
|
|
Base_Function_Det_BQ Det_BQ;
|
|
|
|
|
|
|
|
BaseCheckFunction()
|
|
|
|
BaseCheckFunction()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
Init();
|
|
|
|
@ -2317,7 +2322,6 @@ struct BaseCheckFunction
|
|
|
|
bigNG.Init();
|
|
|
|
bigNG.Init();
|
|
|
|
edgeChannel.Init();
|
|
|
|
edgeChannel.Init();
|
|
|
|
ad_check.Init();
|
|
|
|
ad_check.Init();
|
|
|
|
Det_BQ.Init();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void copy(BaseCheckFunction tem)
|
|
|
|
void copy(BaseCheckFunction tem)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -2327,7 +2331,6 @@ struct BaseCheckFunction
|
|
|
|
this->bigNG.copy(tem.bigNG);
|
|
|
|
this->bigNG.copy(tem.bigNG);
|
|
|
|
this->edgeChannel.copy(tem.edgeChannel);
|
|
|
|
this->edgeChannel.copy(tem.edgeChannel);
|
|
|
|
this->ad_check.copy(tem.ad_check);
|
|
|
|
this->ad_check.copy(tem.ad_check);
|
|
|
|
this->Det_BQ.copy(tem.Det_BQ);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void print(std::string str)
|
|
|
|
void print(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -2338,7 +2341,6 @@ struct BaseCheckFunction
|
|
|
|
bigNG.print("bigNG");
|
|
|
|
bigNG.print("bigNG");
|
|
|
|
edgeChannel.print("edgeChannel");
|
|
|
|
edgeChannel.print("edgeChannel");
|
|
|
|
ad_check.print("ad_check");
|
|
|
|
ad_check.print("ad_check");
|
|
|
|
Det_BQ.print("Det_BQ");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -2349,7 +2351,6 @@ struct BaseCheckFunction
|
|
|
|
str123 += bigNG.GetInfo("bigNG");
|
|
|
|
str123 += bigNG.GetInfo("bigNG");
|
|
|
|
str123 += edgeChannel.GetInfo("edgeChannel");
|
|
|
|
str123 += edgeChannel.GetInfo("edgeChannel");
|
|
|
|
str123 += ad_check.GetInfo("ad_check");
|
|
|
|
str123 += ad_check.GetInfo("ad_check");
|
|
|
|
str123 += Det_BQ.GetInfo("Det_BQ");
|
|
|
|
|
|
|
|
// str123 += "\n";
|
|
|
|
// str123 += "\n";
|
|
|
|
return str123;
|
|
|
|
return str123;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|