aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2022-04-14 10:19:25 +0200
committerThéo de la Hogue2022-04-14 10:19:25 +0200
commitb3c4d138c152e4f92186bcdffad640af6d61ef3a (patch)
tree5a5c6e227c13d4e9da536672bcd8803e74ec7c8c /src
parentee689b793463e2348d0c3eac76540a7f07679669 (diff)
downloadargaze-b3c4d138c152e4f92186bcdffad640af6d61ef3a.zip
argaze-b3c4d138c152e4f92186bcdffad640af6d61ef3a.tar.gz
argaze-b3c4d138c152e4f92186bcdffad640af6d61ef3a.tar.bz2
argaze-b3c4d138c152e4f92186bcdffad640af6d61ef3a.tar.xz
Uncommenting progress bar lines
Diffstat (limited to 'src')
-rw-r--r--src/argaze/utils/export_tobii_segment_aruco_aois.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/argaze/utils/export_tobii_segment_aruco_aois.py b/src/argaze/utils/export_tobii_segment_aruco_aois.py
index b7bf372..8f8412d 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):
@@ -119,21 +119,21 @@ def main():
aruco_tracker.track(video_frame.matrix)
aruco_tracker.draw(video_frame.matrix)
- # Project 3D scenes related to each aruco markers
+ # Project 3D scene related to each aruco marker
if aruco_tracker.get_markers_number():
for (i, marker_id) in enumerate(aruco_tracker.get_markers_ids()):
- # TODO : Select different 3D scenes depending on aruco id
+ # TODO : Select different 3D scene depending on aruco id
in_marker_set = marker_id in list(args.markers_id)
if not empty_marker_set and not in_marker_set:
continue
-
+
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])
@@ -163,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: