From eca3a747f519341fe285004e3db1a948fd8f9126 Mon Sep 17 00:00:00 2001 From: alex-luxonis Date: Thu, 28 Sep 2023 06:27:46 +0300 Subject: [PATCH] cam_test: better display for camera metadata (`/` key) --- utilities/cam_test.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utilities/cam_test.py b/utilities/cam_test.py index 6ee7a9546..eabd9cfb5 100755 --- a/utilities/cam_test.py +++ b/utilities/cam_test.py @@ -407,6 +407,9 @@ def exit_cleanly(signum, frame): txt += f"ISO: {pkt.getSensitivity():4}, " txt += f"Lens pos: {pkt.getLensPosition():3}, " txt += f"Color temp: {pkt.getColorTemperature()} K" + if needs_newline: + print() + needs_newline = False print(txt) capture = c in capture_list if capture: @@ -452,7 +455,7 @@ def exit_cleanly(signum, frame): print("\rFPS:", *["{:6.2f}|{:6.2f}".format(fps_host[c].get(), fps_capt[c].get()) for c in cam_list], end=' ', flush=True) - if show: print() + needs_newline = True key = cv2.waitKey(1) if key == ord('q'): @@ -626,3 +629,5 @@ def exit_cleanly(signum, frame): tofConfig.depthParams.minimumAmplitude = amp_min tofCfgQueue.send(tofConfig) controlQueue.send(ctrl) + + print()