diff options
author | Théo de la Hogue | 2023-05-02 10:55:48 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-05-02 10:55:48 +0200 |
commit | 9de64696dc53451f42a51a622560fcb98c788185 (patch) | |
tree | 8b32c7bc1f2b80eeadbca0ebfd12e1b657c4021d /src | |
parent | 2fc3f009c13434698635e98c075e06ad346b2ab0 (diff) | |
download | argaze-9de64696dc53451f42a51a622560fcb98c788185.zip argaze-9de64696dc53451f42a51a622560fcb98c788185.tar.gz argaze-9de64696dc53451f42a51a622560fcb98c788185.tar.bz2 argaze-9de64696dc53451f42a51a622560fcb98c788185.tar.xz |
Updating constency display.
Diffstat (limited to 'src')
-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 |