improved print
This commit is contained in:
@@ -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)
|
||||
rot = [int(180.0 / math.pi * v) for v in r_vec_obj]
|
||||
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
|
||||
|
||||
cv.imshow('img', img)
|
||||
|
||||
Reference in New Issue
Block a user