diff options
author | Théo de la Hogue | 2022-04-14 00:55:57 +0200 |
---|---|---|
committer | Théo de la Hogue | 2022-04-14 00:55:57 +0200 |
commit | c580e35fea57308aec57c638726b6aa577b9307f (patch) | |
tree | 988b0371ea2bc59073bb71cd6efa31ba5568bbd0 | |
parent | 59b55607ff2d118a748a3343befd5e246a5dbd46 (diff) | |
download | argaze-c580e35fea57308aec57c638726b6aa577b9307f.zip argaze-c580e35fea57308aec57c638726b6aa577b9307f.tar.gz argaze-c580e35fea57308aec57c638726b6aa577b9307f.tar.bz2 argaze-c580e35fea57308aec57c638726b6aa577b9307f.tar.xz |
Removing useless variables
-rw-r--r-- | src/argaze/utils/export_tobii_segment_aruco_aois.py | 11 | ||||
-rw-r--r-- | 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]) |