Skip to content

Commit eca3a74

Browse files
committed
cam_test: better display for camera metadata (/ key)
1 parent 13bcc97 commit eca3a74

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utilities/cam_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ def exit_cleanly(signum, frame):
407407
txt += f"ISO: {pkt.getSensitivity():4}, "
408408
txt += f"Lens pos: {pkt.getLensPosition():3}, "
409409
txt += f"Color temp: {pkt.getColorTemperature()} K"
410+
if needs_newline:
411+
print()
412+
needs_newline = False
410413
print(txt)
411414
capture = c in capture_list
412415
if capture:
@@ -452,7 +455,7 @@ def exit_cleanly(signum, frame):
452455
print("\rFPS:",
453456
*["{:6.2f}|{:6.2f}".format(fps_host[c].get(), fps_capt[c].get()) for c in cam_list],
454457
end=' ', flush=True)
455-
if show: print()
458+
needs_newline = True
456459

457460
key = cv2.waitKey(1)
458461
if key == ord('q'):
@@ -626,3 +629,5 @@ def exit_cleanly(signum, frame):
626629
tofConfig.depthParams.minimumAmplitude = amp_min
627630
tofCfgQueue.send(tofConfig)
628631
controlQueue.send(ctrl)
632+
633+
print()

0 commit comments

Comments
 (0)