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