|
|
|
@ -1247,10 +1247,6 @@ struct Base_Function_Pin_Det
|
|
|
|
bool bOpen; // 是否开启
|
|
|
|
bool bOpen; // 是否开启
|
|
|
|
float pin_x_offset; // pin x 偏移
|
|
|
|
float pin_x_offset; // pin x 偏移
|
|
|
|
float pin_y_offset; // pin y 偏移
|
|
|
|
float pin_y_offset; // pin y 偏移
|
|
|
|
// "line_fitting" = 新方案(直接分析检测Pin: 分两排拟合直线判偏移 + 相邻间距判缺失, 不做模板对比)
|
|
|
|
|
|
|
|
// "BTB_Marix" = 旧方案(内定位仿射 + 模板Pin对比)
|
|
|
|
|
|
|
|
// "Pin_Matrix" = 模板Pin对比方案, 投影矩阵由 Pin 自身拟合(上下两排分别计算, 不做二次偏移矫正)
|
|
|
|
|
|
|
|
std::string Det_Method; // pin 检测方案
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool bDrawResult; // 是否绘制结果
|
|
|
|
bool bDrawResult; // 是否绘制结果
|
|
|
|
Base_Function_Pin_Det()
|
|
|
|
Base_Function_Pin_Det()
|
|
|
|
@ -1262,7 +1258,6 @@ struct Base_Function_Pin_Det
|
|
|
|
bOpen = false;
|
|
|
|
bOpen = false;
|
|
|
|
pin_x_offset = 0;
|
|
|
|
pin_x_offset = 0;
|
|
|
|
pin_y_offset = 0;
|
|
|
|
pin_y_offset = 0;
|
|
|
|
Det_Method = "BTB_Marix";
|
|
|
|
|
|
|
|
bDrawResult = false;
|
|
|
|
bDrawResult = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1271,19 +1266,18 @@ struct Base_Function_Pin_Det
|
|
|
|
this->bOpen = tem.bOpen;
|
|
|
|
this->bOpen = tem.bOpen;
|
|
|
|
this->pin_x_offset = tem.pin_x_offset;
|
|
|
|
this->pin_x_offset = tem.pin_x_offset;
|
|
|
|
this->pin_y_offset = tem.pin_y_offset;
|
|
|
|
this->pin_y_offset = tem.pin_y_offset;
|
|
|
|
this->Det_Method = tem.Det_Method;
|
|
|
|
|
|
|
|
this->bDrawResult = tem.bDrawResult;
|
|
|
|
this->bDrawResult = tem.bDrawResult;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void print(std::string str)
|
|
|
|
void print(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("%s>>bOpen %d pin_x_offset %f pin_y_offset %f Det_Method %s bDrawResult %d\n", str.c_str(),
|
|
|
|
printf("%s>>bOpen %d pin_x_offset %f pin_y_offset %f bDrawResult %d\n", str.c_str(),
|
|
|
|
bOpen, pin_x_offset, pin_y_offset, Det_Method.c_str(), bDrawResult);
|
|
|
|
bOpen, pin_x_offset, pin_y_offset, bDrawResult);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char buffer[256];
|
|
|
|
char buffer[256];
|
|
|
|
sprintf(buffer, "%s>>bOpen %d pin_x_offset %f pin_y_offset %f Det_Method %s bDrawResult %d\n", str.c_str(),
|
|
|
|
sprintf(buffer, "%s>>bOpen %d pin_x_offset %f pin_y_offset %f bDrawResult %d\n", str.c_str(),
|
|
|
|
bOpen, pin_x_offset, pin_y_offset, Det_Method.c_str(), bDrawResult);
|
|
|
|
bOpen, pin_x_offset, pin_y_offset, bDrawResult);
|
|
|
|
std::string str123 = buffer;
|
|
|
|
std::string str123 = buffer;
|
|
|
|
return str123;
|
|
|
|
return str123;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|