aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2022-09-20 13:39:20 +0200
committerThéo de la Hogue2022-09-20 13:39:20 +0200
commit1d7415a5ed327cd7cc77cd558cc826bfc272f90a (patch)
tree5d78b5d88298c15a8bd7691ced925968e38b7cb4 /src
parent36d6cd81aea2fde817447d8f6e960d5b2a3a37db (diff)
downloadargaze-1d7415a5ed327cd7cc77cd558cc826bfc272f90a.zip
argaze-1d7415a5ed327cd7cc77cd558cc826bfc272f90a.tar.gz
argaze-1d7415a5ed327cd7cc77cd558cc826bfc272f90a.tar.bz2
argaze-1d7415a5ed327cd7cc77cd558cc826bfc272f90a.tar.xz
Updating aruco tracking results after reloading tracker parameters
Diffstat (limited to 'src')
-rw-r--r--src/argaze/utils/edit_tobii_segment_aruco_pose.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/argaze/utils/edit_tobii_segment_aruco_pose.py b/src/argaze/utils/edit_tobii_segment_aruco_pose.py
index fadff35..9e5aad1 100644
--- a/src/argaze/utils/edit_tobii_segment_aruco_pose.py
+++ b/src/argaze/utils/edit_tobii_segment_aruco_pose.py
@@ -179,6 +179,7 @@ def main():
frame_index = 0
last_frame_index = -1
last_frame = video_frame.copy()
+ force_update = False
selected_marker_id = -1
@@ -187,7 +188,7 @@ def main():
while True:
# Select a frame on change
- if frame_index != last_frame_index:
+ if frame_index != last_frame_index or force_update:
video_ts, video_frame = tobii_segment_video.get_frame(frame_index)
video_ts_ms = video_ts / 1000
@@ -403,9 +404,10 @@ def main():
if key_pressed == 27:
break
- # Reload tracker configuratio on 't' key
- if key_pressed == 116:
+ # Reload tracker configuration on 'c' key
+ if key_pressed == 99:
load_configuration_file()
+ force_update = True
# Display video
cv.imshow(f'Segment {tobii_segment.get_id()} ArUco marker editor', visu_frame.matrix)