not round too early

This commit is contained in:
2024-07-03 22:03:59 +02:00
parent 348624c6a2
commit 19d5aedf22
3 changed files with 13 additions and 13 deletions
+6 -5
View File
@@ -119,7 +119,7 @@ while True:
ct.path_add(line_to)
for p in ct.path:
cv2.line(image_anno, p['from'], p['to'], (0, 0, 255), 2)
cv2.line(image_anno, bbox_round(p['from']), bbox_round(p['to']), (0, 0, 255), 2)
refine_corner(cv2.cvtColor(image, cv2.COLOR_BGR2GRAY), np.array(corners, dtype=np.float32))
@@ -182,7 +182,8 @@ while True:
k = cv2.waitKey(key_wait) & 0xff
if k == 27:
break
if k == ord('g'):
key_wait = 30
if k == ord('s'):
key_wait = -1
if k == ord(' '):
if key_wait == -1:
key_wait = 30
else:
key_wait = -1