Update Test.py
This commit is contained in:
4
Test.py
4
Test.py
@@ -101,8 +101,8 @@ for frame in camera.capture_continuous(raw_capture, format="bgr", use_video_port
|
|||||||
max_index = np.argmax(areas)
|
max_index = np.argmax(areas)
|
||||||
|
|
||||||
# Draw the bounding box
|
# Draw the bounding box
|
||||||
cnt = contours[max_index]
|
# cnt = contours[max_index]
|
||||||
print(cnt)
|
print(max_index)
|
||||||
# x,y,w,h = cv2.boundingRect(cnt)
|
# x,y,w,h = cv2.boundingRect(cnt)
|
||||||
# cv2.rectangle(image,(x,y),(x+w,y+h),(0,255,0),3)
|
# cv2.rectangle(image,(x,y),(x+w,y+h),(0,255,0),3)
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user