update 内定为使用裁剪图

dev_lsy
liusiyang 1 month ago
parent feb5895b30
commit 60fdbe7ebc

@ -245,9 +245,10 @@ int AI_Edge_Algin::Detect(const cv::Mat &img, DetConfig *pDetConfig, std::shared
cv::Mat Tag_outimg; cv::Mat Tag_outimg;
std::vector<std::thread> vecThreads; std::vector<std::thread> vecThreads;
vecThreads.emplace_back([&]() { re0 = Get_Edge(0, img, pDetConfig, m_pDetConfig->strChannel, Big_roi, Big_outimg, true); }); re0 = Get_Edge(0, img, pDetConfig, m_pDetConfig->strChannel, Big_roi, Big_outimg, true);
vecThreads.emplace_back([&]() { re1 = Get_Edge(1, img, pDetConfig, m_pDetConfig->strChannel, Small_roi, Small_outimg, false); }); cv::Mat Big_outimg_src = img(Big_roi[0].boundingRect());
vecThreads.emplace_back([&]() { re2 = Get_Edge(2, img, pDetConfig, m_pDetConfig->strChannel, Tag_roi, Tag_outimg, false); }); vecThreads.emplace_back([&]() { re1 = Get_Edge(1, Big_outimg_src, pDetConfig, m_pDetConfig->strChannel, Small_roi, Small_outimg, false); });
vecThreads.emplace_back([&]() { re2 = Get_Edge(2, Big_outimg_src, pDetConfig, m_pDetConfig->strChannel, Tag_roi, Tag_outimg, false); });
for (auto &t : vecThreads) for (auto &t : vecThreads)
{ {
t.join(); t.join();

Loading…
Cancel
Save