Skip to content

Commit

Permalink
disable result display
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonCakeMC committed Oct 1, 2024
1 parent 4e45448 commit 5471f18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions study.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 5471f18

Please sign in to comment.