|
|
|
|
@ -1319,7 +1319,8 @@ int ImgCheckAnalysisy::CheckRun()
|
|
|
|
|
for (const auto &tagRoi : m_tag_roiList)
|
|
|
|
|
{
|
|
|
|
|
// 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);
|
|
|
|
|
if (roi.width <= 0 || roi.height <= 0)
|
|
|
|
|
{
|
|
|
|
|
|