From e82ebaddabd401e7a7573a133adfdc5b2c740350 Mon Sep 17 00:00:00 2001 From: Jordan-Fielding <107819004+Jordan-Fielding@users.noreply.github.com> Date: Mon, 4 Jul 2022 16:51:18 +1000 Subject: [PATCH] Update Test.py --- Test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Test.py b/Test.py index 2fb57b8..c91eac4 100644 --- a/Test.py +++ b/Test.py @@ -101,11 +101,11 @@ for frame in camera.capture_continuous(raw_capture, format="bgr", use_video_port max_index = np.argmax(areas) # Draw the bounding box - cnt = contours[max_index] - print(cnt) + # cnt = contours[max_index] + print(max_index) # x,y,w,h = cv2.boundingRect(cnt) # cv2.rectangle(image,(x,y),(x+w,y+h),(0,255,0),3) - # + # # # Draw circle in the center of the bounding box # x2 = x + int(w/2) # y2 = y + int(h/2)