improved print

This commit is contained in:
2025-11-26 14:54:24 +01:00
parent 2e775a0db2
commit 7c68f489b0
+2 -1
View File
@@ -121,7 +121,8 @@ def process_video(detector: cv.aruco.CharucoDetector, board: cv.aruco.CharucoBoa
r_vec_obj, _ = to_board_pose_euler(r_vec, t_vec) r_vec_obj, _ = to_board_pose_euler(r_vec, t_vec)
rot = [int(180.0 / math.pi * v) for v in r_vec_obj] rot = [int(180.0 / math.pi * v) for v in r_vec_obj]
if rot != last_rotation: if rot != last_rotation:
print(f"\rRotation Tilt: {rot[0]:.1f}, Roll: {rot[1]:.1f}, Azimuth: {rot[2]:.1f}", end='') print("\r ", end='')
print(f"\rTilt: {rot[0]:.1f}, Roll: {rot[1]:.1f}, Azimuth: {rot[2]:.1f}", end='')
last_rotation = rot last_rotation = rot
cv.imshow('img', img) cv.imshow('img', img)