diff options
-rw-r--r-- | src/argaze/utils/environment_edit.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/argaze/utils/environment_edit.py b/src/argaze/utils/environment_edit.py index 7d5411b..36bd0a2 100644 --- a/src/argaze/utils/environment_edit.py +++ b/src/argaze/utils/environment_edit.py @@ -394,26 +394,26 @@ def main(): # Write unconsistencies line = 0 - for i, (label, value) in enumerate(unconsistencies['angle'].items()): + for i, (label, value) in enumerate(unconsistencies['rotation'].items()): - current_angle = value['current'] - expected_angle = value['expected'] + current_rotation = value['current'] + expected_rotation = value['expected'] - cv2.putText(info_frame, f'Unconsistent angle {label}: [{current_angle[0]:.3f} {current_angle[1]:.3f} {current_angle[2]:.3f}]', (20, 120+line*40), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 255), 1, cv2.LINE_AA) + cv2.putText(info_frame, f'Unconsistent rotation {label}: [{current_rotation[0]:.3f} {current_rotation[1]:.3f} {current_rotation[2]:.3f}]', (20, 120+line*40), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 255), 1, cv2.LINE_AA) line += 1 - cv2.putText(info_frame, f'Expected angle {label}: [{expected_angle[0]:.3f} {expected_angle[1]:.3f} {expected_angle[2]:.3f}]', (20, 120+line*40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA) + cv2.putText(info_frame, f'Expected rotation {label}: [{expected_rotation[0]:.3f} {expected_rotation[1]:.3f} {expected_rotation[2]:.3f}]', (20, 120+line*40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA) line += 1 - for i, (label, value) in enumerate(unconsistencies['distance'].items()): + for i, (label, value) in enumerate(unconsistencies['translation'].items()): - current_distance = value['current'] - expected_distance = value['expected'] + current_translation = value['current'] + expected_translation = value['expected'] - cv2.putText(info_frame, f'Unconsistent distance {label}: {current_distance:.3f}', (20, 120+ line*40), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 255), 1, cv2.LINE_AA) + cv2.putText(info_frame, f'Unconsistent translation {label}: {current_translation:.3f}', (20, 120+ line*40), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 255), 1, cv2.LINE_AA) line += 1 - cv2.putText(info_frame, f'Expected distance {label}: {expected_distance:.3f}', (20, 120+ line*40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA) + cv2.putText(info_frame, f'Expected translation {label}: {expected_translation:.3f}', (20, 120+ line*40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA) line += 1 # Force pose mode to single marker scene pose estimation |