update 内定位使用裁剪图

dev_lsy
liusiyang 1 month ago
parent 1bb4d3f277
commit 40ba4cea63

@ -246,7 +246,8 @@ int AI_Edge_Algin::Detect(const cv::Mat &img, DetConfig *pDetConfig, std::shared
} }
return re; return re;
} }
re = Get_Edge(1, img, pDetConfig, m_pDetConfig->strChannel, Small_roi); cv::Mat Big_outimg_src = img(Big_roi.boundingRect()).clone();
re = Get_Edge(1, Big_outimg_src, pDetConfig, m_pDetConfig->strChannel, Small_roi);
if (re != 0) if (re != 0)
{ {
m_pdetlog->AddCheckstr(PrintLevel_2, DET_LOG_LEVEL_3, "AI_Edge_Algin ", "AICheck_Edge_Small----error %d ", re); m_pdetlog->AddCheckstr(PrintLevel_2, DET_LOG_LEVEL_3, "AI_Edge_Algin ", "AICheck_Edge_Small----error %d ", re);

Loading…
Cancel
Save