From c580e35fea57308aec57c638726b6aa577b9307f Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Thu, 14 Apr 2022 00:55:57 +0200 Subject: Removing useless variables --- src/argaze/utils/export_tobii_segment_aruco_aois.py | 11 ++++------- src/argaze/utils/live_tobii_aruco_aois.py | 7 ++----- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/argaze/utils/export_tobii_segment_aruco_aois.py b/src/argaze/utils/export_tobii_segment_aruco_aois.py index 004805e..b7bf372 100644 --- a/src/argaze/utils/export_tobii_segment_aruco_aois.py +++ b/src/argaze/utils/export_tobii_segment_aruco_aois.py @@ -96,7 +96,7 @@ def main(): try: # Count frame to display a progress bar - MiscFeatures.printProgressBar(0, tobii_segment_video.get_duration(), prefix = 'Progress:', suffix = 'Complete', length = 100) + #MiscFeatures.printProgressBar(0, tobii_segment_video.get_duration(), prefix = 'Progress:', suffix = 'Complete', length = 100) # Iterate on video frames activating video / data synchronisation through vts data buffer for video_ts, video_frame in tobii_segment_video.frames(tobii_segment_data.vts): @@ -131,11 +131,8 @@ def main(): if not empty_marker_set and not in_marker_set: continue - marker_rotation = aruco_tracker.get_marker_rotation(i) - marker_translation = aruco_tracker.get_marker_translation(i) - - aoi3D_scene.rotation = marker_rotation - aoi3D_scene.translation = marker_translation + aoi3D_scene.rotation = aruco_tracker.get_marker_rotation(i) + aoi3D_scene.translation = aruco_tracker.get_marker_translation(i) # Edit Zero distorsion matrix D0 = numpy.asarray([0.0, 0.0, 0.0, 0.0, 0.0]) @@ -166,7 +163,7 @@ def main(): # Update Progress Bar progress = video_ts - tobii_segment_video.get_vts_offset() - int(args.time_range[0] * 1000000) - MiscFeatures.printProgressBar(progress, tobii_segment_video.get_duration(), prefix = 'Progress:', suffix = 'Complete', length = 100) + #MiscFeatures.printProgressBar(progress, tobii_segment_video.get_duration(), prefix = 'Progress:', suffix = 'Complete', length = 100) # Exit on 'ctrl+C' interruption except KeyboardInterrupt: diff --git a/src/argaze/utils/live_tobii_aruco_aois.py b/src/argaze/utils/live_tobii_aruco_aois.py index 6e0e005..e718cee 100644 --- a/src/argaze/utils/live_tobii_aruco_aois.py +++ b/src/argaze/utils/live_tobii_aruco_aois.py @@ -106,11 +106,8 @@ def main(): if not empty_marker_set and not in_marker_set: continue - marker_rotation = aruco_tracker.get_marker_rotation(i) - marker_translation = aruco_tracker.get_marker_translation(i) - - aoi3D_scene.rotation = marker_rotation - aoi3D_scene.translation = marker_translation + aoi3D_scene.rotation = aruco_tracker.get_marker_rotation(i) + aoi3D_scene.translation = aruco_tracker.get_marker_translation(i) # Edit Zero distorsion matrix D0 = numpy.asarray([0.0, 0.0, 0.0, 0.0, 0.0]) -- cgit v1.1