Skip to content

Commit

Permalink
Fix OAK-T
Browse files Browse the repository at this point in the history
  • Loading branch information
zrezke committed Jun 21, 2024
1 parent 063577b commit b4721a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rerun_py/depthai_viewer/_backend/packet_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _log_img_frame(self, frame: dai.ImgFrame, board_socket: dai.CameraBoardSocke
)
elif frame.getType() == dai.RawImgFrame.Type.YUV420p:
viewer.log_image(entity_path, cv2.cvtColor(img_frame, cv2.COLOR_BGR2RGB))
elif frame.getType() == dai.RawImgFrame.Type.RAW16:
elif frame.getType() == dai.RawImgFrame.Type.GRAYF16:
img = img_frame.view(np.float16).reshape(h, w)
viewer.log_image(entity_path, img, colormap=viewer.Colormap.Magma, unit="°C")
else:
Expand Down

0 comments on commit b4721a9

Please sign in to comment.