|
|
|
@ -1702,6 +1702,7 @@ struct Base_Function_MarkLine
|
|
|
|
std::vector<cv::Point> region;
|
|
|
|
std::vector<cv::Point> region;
|
|
|
|
cv::Point mark_local_1;
|
|
|
|
cv::Point mark_local_1;
|
|
|
|
cv::Point mark_local_2;
|
|
|
|
cv::Point mark_local_2;
|
|
|
|
|
|
|
|
float hoverlap;
|
|
|
|
|
|
|
|
|
|
|
|
Base_Function_MarkLine()
|
|
|
|
Base_Function_MarkLine()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1715,6 +1716,7 @@ struct Base_Function_MarkLine
|
|
|
|
mark_local_1 = cv::Point(0, 0);
|
|
|
|
mark_local_1 = cv::Point(0, 0);
|
|
|
|
mark_local_2 = cv::Point(0, 0);
|
|
|
|
mark_local_2 = cv::Point(0, 0);
|
|
|
|
productROI = cv::Rect(0, 0, 0, 0);
|
|
|
|
productROI = cv::Rect(0, 0, 0, 0);
|
|
|
|
|
|
|
|
hoverlap = 0;
|
|
|
|
region.clear();
|
|
|
|
region.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1727,17 +1729,18 @@ struct Base_Function_MarkLine
|
|
|
|
this->badapt_region = tem.badapt_region;
|
|
|
|
this->badapt_region = tem.badapt_region;
|
|
|
|
this->mark_local_1 = tem.mark_local_1;
|
|
|
|
this->mark_local_1 = tem.mark_local_1;
|
|
|
|
this->mark_local_2 = tem.mark_local_2;
|
|
|
|
this->mark_local_2 = tem.mark_local_2;
|
|
|
|
|
|
|
|
this->hoverlap = tem.hoverlap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void print(std::string str)
|
|
|
|
void print(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("%s>>bOpen %d bDraw %d badapt_region %d mark1 [%d %d] mark2 [%d %d] \n", str.c_str(),
|
|
|
|
printf("%s>>bOpen %d bDraw %d badapt_region %d mark1 [%d %d] mark2 [%d %d] hoverlap %f\n", str.c_str(),
|
|
|
|
bOpen, bDraw, badapt_region,mark_local_1.x, mark_local_1.y, mark_local_2.x, mark_local_2.y);
|
|
|
|
bOpen, bDraw, badapt_region,mark_local_1.x, mark_local_1.y, mark_local_2.x, mark_local_2.y, hoverlap);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char buffer[256];
|
|
|
|
char buffer[256];
|
|
|
|
sprintf(buffer, "%s>>bOpen %d bDraw %d badapt_region %d mark1 [%d %d] mark2 [%d %d] \n", str.c_str(),
|
|
|
|
sprintf(buffer, "%s>>bOpen %d bDraw %d badapt_region %d mark1 [%d %d] mark2 [%d %d] hoverlap %f\n", str.c_str(),
|
|
|
|
bOpen, bDraw, badapt_region,mark_local_1.x, mark_local_1.y, mark_local_2.x, mark_local_2.y);
|
|
|
|
bOpen, bDraw, badapt_region,mark_local_1.x, mark_local_1.y, mark_local_2.x, mark_local_2.y, hoverlap);
|
|
|
|
std::string str123 = buffer;
|
|
|
|
std::string str123 = buffer;
|
|
|
|
return str123;
|
|
|
|
return str123;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|