Skip to content

Commit

Permalink
cam_test: better display for camera metadata (/ key)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-luxonis committed Sep 28, 2023
1 parent 13bcc97 commit eca3a74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion utilities/cam_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'):
Expand Down Expand Up @@ -626,3 +629,5 @@ def exit_cleanly(signum, frame):
tofConfig.depthParams.minimumAmplitude = amp_min
tofCfgQueue.send(tofConfig)
controlQueue.send(ctrl)

print()

0 comments on commit eca3a74

Please sign in to comment.