From 6125aa5dad8d78e227b220a07e649e022403d2db Mon Sep 17 00:00:00 2001 From: liusiyang Date: Wed, 15 Jul 2026 13:40:27 +0800 Subject: [PATCH] =?UTF-8?q?delete=20=E5=8E=BB=E6=8E=89AI=5FTime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AlgorithmModule/include/CheckErrorCodeDefine.hpp | 2 -- AlgorithmModule/src/CameraCheckAnalysisy.cpp | 2 -- AlgorithmModule/src/ImageResultJudge.cpp | 10 ---------- 3 files changed, 14 deletions(-) diff --git a/AlgorithmModule/include/CheckErrorCodeDefine.hpp b/AlgorithmModule/include/CheckErrorCodeDefine.hpp index 63cfbec..fc3ccbe 100644 --- a/AlgorithmModule/include/CheckErrorCodeDefine.hpp +++ b/AlgorithmModule/include/CheckErrorCodeDefine.hpp @@ -26,8 +26,6 @@ // resize 图片的 宽度 #define RESIZE_IMAGE_WIDTH 1680 -// #define AI_Time - enum TEM_IMG_IDX_ { TEM_IMG_IDX_SrcCrop, diff --git a/AlgorithmModule/src/CameraCheckAnalysisy.cpp b/AlgorithmModule/src/CameraCheckAnalysisy.cpp index ada27e9..a9fddb5 100644 --- a/AlgorithmModule/src/CameraCheckAnalysisy.cpp +++ b/AlgorithmModule/src/CameraCheckAnalysisy.cpp @@ -361,9 +361,7 @@ int CameraCheckAnalysisy::ResultParamJudge() long t1 = CheckUtil::getcurTime(); int re = m_imageResultJudge.MergeResult(m_pCheck_Result->ImageALLDetResultList.at(imgidx), ptemre); long t2 = CheckUtil::getcurTime(); - #ifdef AI_Time m_imageResultJudge.DrawResult(m_pCheck_Result->ImageALLDetResultList.at(imgidx)); - #endif long t3 = CheckUtil::getcurTime(); // m_pdetlog->AddCheckstr(PrintLevel_1, "ResultParamJudge", " det time %ld ms judge %ld draw %ld", t3 - t1, t2 - t1, t3 - t2); diff --git a/AlgorithmModule/src/ImageResultJudge.cpp b/AlgorithmModule/src/ImageResultJudge.cpp index 81c73d4..6c782cb 100644 --- a/AlgorithmModule/src/ImageResultJudge.cpp +++ b/AlgorithmModule/src/ImageResultJudge.cpp @@ -586,7 +586,6 @@ int ImageResultJudge::ResultJudge(std::shared_ptr pImageResult) // CheckUtil::printROI(CutRoi, "CutRoi"); cv::Size sz = cv::Size(QX_SAMLLIMG_WIDTH, QX_SAMLLIMG_HEIGHT); - #ifdef AI_Time if (pImageResult->detImg.channels() == 1) { cv::cvtColor(pImageResult->detImg(CutRoi), tem.srcImg, cv::COLOR_GRAY2BGR); @@ -596,7 +595,6 @@ int ImageResultJudge::ResultJudge(std::shared_ptr pImageResult) tem.srcImg = pImageResult->detImg(CutRoi).clone(); } cv::resize(tem.srcImg, tem.resizeImg, sz); - #endif int nqx_type = ConfigTypeToResultType(config_qx_type); tem.type = nqx_type; @@ -641,9 +639,7 @@ int ImageResultJudge::ResultJudge(std::shared_ptr pImageResult) m_CheckResult_shareP->nresult = nqx_type; } - #ifdef AI_Time GetAIDetImg(pImageResult, pCenter, tem.AI_in_Img, tem.AI_out_img); - #endif m_CheckResult_shareP->qxImageResult.push_back(tem); } else @@ -654,9 +650,7 @@ int ImageResultJudge::ResultJudge(std::shared_ptr pImageResult) m_CheckResult_shareP->nYS_result = nqx_type; } - #ifdef AI_Time GetAIDetImg(pImageResult, pCenter, tem.AI_in_Img, tem.AI_out_img); - #endif m_CheckResult_shareP->YS_ImageResult.push_back(tem); } @@ -833,7 +827,6 @@ int ImageResultJudge::MergeResult(std::shared_ptr pImageResult, cv::Rect CutRoi = GetCutRoi(roi, pImageResult->detImg); cv::Size sz = cv::Size(QX_SAMLLIMG_WIDTH, QX_SAMLLIMG_HEIGHT); - #ifdef AI_Time if (pImageResult->detImg.channels() == 1) { cv::cvtColor(pImageResult->detImg(CutRoi), tem.srcImg, cv::COLOR_GRAY2BGR); @@ -843,7 +836,6 @@ int ImageResultJudge::MergeResult(std::shared_ptr pImageResult, tem.srcImg = pImageResult->detImg(CutRoi).clone(); } cv::resize(tem.srcImg, tem.resizeImg, sz); - #endif int nerrortype = 1; int checkFlage = ANALYSIS_TYPE_TF; @@ -904,9 +896,7 @@ int ImageResultJudge::MergeResult(std::shared_ptr pImageResult, { m_CheckResult_shareP->nresult = nqx_type; } - #ifdef AI_Time GetAIDetImg(pImageResult, pCenter, tem.AI_in_Img, tem.AI_out_img); - #endif m_CheckResult_shareP->qxImageResult.push_back(tem); } }