From 5471f18b9d28b96b120edd3fcba6eb5ee292e448 Mon Sep 17 00:00:00 2001 From: MoonCakeMC <79564097+MoonCakeMC@users.noreply.github.com> Date: Tue, 1 Oct 2024 20:49:01 +0800 Subject: [PATCH] disable result display --- study.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/study.py b/study.py index 692ee6d..2529a94 100644 --- a/study.py +++ b/study.py @@ -22,10 +22,10 @@ def match(capImg): result = cv2.matchTemplate(capImgSquare, capImgMain, cv2.TM_CCOEFF_NORMED, thres) (minVal, maxVal, minLoc, maxLoc) = cv2.minMaxLoc(result) (startX, startY) = maxLoc - cv2.rectangle(BGRImg,(startX,0),(startX,250),(0,255,255),2) #绘制边界框 - cv2.imshow("img", BGRImg) - cv2.waitKey() - cv2.destroyAllWindows() + # cv2.rectangle(BGRImg,(startX,0),(startX,250),(0,255,255),2) # 显示识别结果 + # cv2.imshow("img", BGRImg) + # cv2.waitKey() + # cv2.destroyAllWindows() return startX