From f40c610c0386b924322acc1515eac9380b20d9ec Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Mon, 19 Sep 2022 22:37:57 +0200 Subject: Drawing a grey rectangle behind warning to improve readibility. --- src/argaze/utils/export_tobii_segment_aruco_visual_scan.py | 3 ++- src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py b/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py index f8e1dbc..bcc72ef 100644 --- a/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py +++ b/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py @@ -355,7 +355,8 @@ def main(): # Write warning related to video and data frame processing except UserWarning as e: - + + cv.rectangle(visu_frame.matrix, (0, 50), (550, 100), (63, 63, 63), -1) cv.putText(visu_frame.matrix, str(e), (20, 80), cv.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 255), 1, cv.LINE_AA) except ValueError: diff --git a/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py b/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py index 3fea974..1652c67 100644 --- a/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py +++ b/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py @@ -249,7 +249,8 @@ def main(): # Write warning related to video and data frame processing except UserWarning as e: - + + cv.rectangle(visu_frame.matrix, (0, 50), (550, 100), (63, 63, 63), -1) cv.putText(visu_frame.matrix, str(e), (20, 80), cv.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 255), 1, cv.LINE_AA) except ValueError: -- cgit v1.1