update tag使用tagRoi.boundingRect(),标签过参数

dev_lsy
liusiyang 3 weeks ago
parent 331da0fabd
commit 3ba4f47434

@ -426,13 +426,6 @@ int ImageResultJudge::ResultJudge(std::shared_ptr<ImageAllResult> pImageResult)
} }
} }
// 标签缺陷(TBBQ):检测到标签直接判 NG
if (config_qx_type == CONFIG_QX_NAME_cell_TBBQ)
{
bNG_Status = true;
Judge_Status = true;
}
std::string resultType = "OK"; std::string resultType = "OK";
if (!Judge_Status) if (!Judge_Status)

@ -1319,7 +1319,8 @@ int ImgCheckAnalysisy::CheckRun()
for (const auto &tagRoi : m_tag_roiList) for (const auto &tagRoi : m_tag_roiList)
{ {
// tag roi 在原图坐标系,按坐标映射转换到检测图(detImg)坐标系 // tag roi 在原图坐标系,按坐标映射转换到检测图(detImg)坐标系
cv::Rect roi = MatAffineRect(m_matSrc2Det, tagRoi.boundingRect()); // cv::Rect roi = MatAffineRect(m_matSrc2Det, tagRoi.boundingRect());
cv::Rect roi = tagRoi.boundingRect();
roi &= cv::Rect(0, 0, m_pImageAllResult->detImg.cols, m_pImageAllResult->detImg.rows); roi &= cv::Rect(0, 0, m_pImageAllResult->detImg.cols, m_pImageAllResult->detImg.rows);
if (roi.width <= 0 || roi.height <= 0) if (roi.width <= 0 || roi.height <= 0)
{ {

Loading…
Cancel
Save