diff options
-rw-r--r-- | src/argaze/utils/tobii_segment_arscene_export.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/argaze/utils/tobii_segment_arscene_export.py b/src/argaze/utils/tobii_segment_arscene_export.py index 9d92e56..aba33bd 100644 --- a/src/argaze/utils/tobii_segment_arscene_export.py +++ b/src/argaze/utils/tobii_segment_arscene_export.py @@ -117,7 +117,6 @@ def main(): _, nearest_vts = tobii_ts_vts.get_last_before(video_ts) projected_aois['offset'] = nearest_vts.offset - projected_aois['comment'] = '' # Hide frame left and right borders before tracking to ignore markers outside focus area cv.rectangle(video_frame.matrix, (0, 0), (int(video_frame.width/6), int(video_frame.height)), (0, 0, 0), -1) @@ -145,11 +144,11 @@ def main(): if str(e) == 'Unconsistent marker poses': - projected_aois['comment'] = str(e) + ': ' + str(e.unconsistencies) + projected_aois['error'] = str(e) + ': ' + str(e.unconsistencies) else: - projected_aois['comment'] = str(e) + projected_aois['error'] = str(e) cv.rectangle(visu_frame.matrix, (0, 50), (550, 100), (127, 127, 127), -1) cv.putText(visu_frame.matrix, str(e), (20, 80), cv.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 255), 1, cv.LINE_AA) @@ -160,7 +159,7 @@ def main(): e = 'VideoTimeStamp missing' projected_aois['offset'] = 0 - projected_aois['comment'] = e + projected_aois['error'] = e cv.rectangle(visu_frame.matrix, (0, 50), (550, 100), (127, 127, 127), -1) cv.putText(visu_frame.matrix, str(e), (20, 80), cv.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 255), 1, cv.LINE_AA) @@ -177,7 +176,7 @@ def main(): # Write segment timing cv.rectangle(visu_frame.matrix, (0, 0), (550, 50), (63, 63, 63), -1) - cv.putText(visu_frame.matrix, f'Segment time: {int(video_ts_ms)} ms', (20, 40), cv.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv.LINE_AA) + cv.putText(visu_frame.matrix, f'Video time: {video_ts*1e-3:.3f} ms', (20, 40), cv.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv.LINE_AA) if args.window: |