|
|
|
@ -407,6 +407,7 @@ struct BasicConfig
|
|
|
|
float Product_Size_Height_mm; // 产品尺寸 高度 mm
|
|
|
|
float Product_Size_Height_mm; // 产品尺寸 高度 mm
|
|
|
|
float fImage_Scale_x; // 成像精度
|
|
|
|
float fImage_Scale_x; // 成像精度
|
|
|
|
float fImage_Scale_y; // 成像精度
|
|
|
|
float fImage_Scale_y; // 成像精度
|
|
|
|
|
|
|
|
bool bDetect; // 是否检测
|
|
|
|
std::string strCamName; //
|
|
|
|
std::string strCamName; //
|
|
|
|
std::string strConfigVersion; // 配置版本
|
|
|
|
std::string strConfigVersion; // 配置版本
|
|
|
|
|
|
|
|
|
|
|
|
@ -428,6 +429,7 @@ struct BasicConfig
|
|
|
|
Product_Size_Height_mm = 1000;
|
|
|
|
Product_Size_Height_mm = 1000;
|
|
|
|
fImage_Scale_x = 0.03;
|
|
|
|
fImage_Scale_x = 0.03;
|
|
|
|
fImage_Scale_y = 0.03;
|
|
|
|
fImage_Scale_y = 0.03;
|
|
|
|
|
|
|
|
bDetect = true;
|
|
|
|
density_R_mm = 5;
|
|
|
|
density_R_mm = 5;
|
|
|
|
strCamName = "";
|
|
|
|
strCamName = "";
|
|
|
|
strConfigVersion = "1.0";
|
|
|
|
strConfigVersion = "1.0";
|
|
|
|
@ -452,6 +454,7 @@ struct BasicConfig
|
|
|
|
this->Product_Size_Height_mm = tem.Product_Size_Height_mm;
|
|
|
|
this->Product_Size_Height_mm = tem.Product_Size_Height_mm;
|
|
|
|
this->fImage_Scale_x = tem.fImage_Scale_x;
|
|
|
|
this->fImage_Scale_x = tem.fImage_Scale_x;
|
|
|
|
this->fImage_Scale_y = tem.fImage_Scale_y;
|
|
|
|
this->fImage_Scale_y = tem.fImage_Scale_y;
|
|
|
|
|
|
|
|
this->bDetect = tem.bDetect;
|
|
|
|
this->density_R_mm = tem.density_R_mm;
|
|
|
|
this->density_R_mm = tem.density_R_mm;
|
|
|
|
this->strCamearName = tem.strCamearName;
|
|
|
|
this->strCamearName = tem.strCamearName;
|
|
|
|
this->strConfigVersion = tem.strConfigVersion;
|
|
|
|
this->strConfigVersion = tem.strConfigVersion;
|
|
|
|
@ -463,6 +466,7 @@ struct BasicConfig
|
|
|
|
printf("bCal_ImageScale %d Product_Size_Width =%f Product_Size_Height =%f \n", bCal_ImageScale, Product_Size_Width_mm, Product_Size_Height_mm);
|
|
|
|
printf("bCal_ImageScale %d Product_Size_Width =%f Product_Size_Height =%f \n", bCal_ImageScale, Product_Size_Width_mm, Product_Size_Height_mm);
|
|
|
|
printf("fImage_Scale_x =%f fImage_Scale_y=%f \n", fImage_Scale_x, fImage_Scale_y);
|
|
|
|
printf("fImage_Scale_x =%f fImage_Scale_y=%f \n", fImage_Scale_x, fImage_Scale_y);
|
|
|
|
printf("density_R_mm=%f \n", density_R_mm);
|
|
|
|
printf("density_R_mm=%f \n", density_R_mm);
|
|
|
|
|
|
|
|
printf("bDetect=%d \n", bDetect);
|
|
|
|
// printf("height_min =%d height_max=%d \n", height_min, height_max);
|
|
|
|
// printf("height_min =%d height_max=%d \n", height_min, height_max);
|
|
|
|
printf("bDrawShieldRoi %d bShield_ZF %d DrawPreRoi %d fUP_IOU %f density_R_mm %f\n", bDrawShieldRoi, bShield_ZF, bDrawPreRoi, fUP_IOU, density_R_mm);
|
|
|
|
printf("bDrawShieldRoi %d bShield_ZF %d DrawPreRoi %d fUP_IOU %f density_R_mm %f\n", bDrawShieldRoi, bShield_ZF, bDrawPreRoi, fUP_IOU, density_R_mm);
|
|
|
|
printf("============================↑↑↑↑↑↑%s↑↑↑↑↑↑=========================\n", str.c_str());
|
|
|
|
printf("============================↑↑↑↑↑↑%s↑↑↑↑↑↑=========================\n", str.c_str());
|
|
|
|
|