From b4721a91f291490b91b2e28d6c7b08c99603a50a Mon Sep 17 00:00:00 2001 From: zrezke Date: Fri, 21 Jun 2024 12:23:19 +0200 Subject: [PATCH] Fix OAK-T --- rerun_py/depthai_viewer/_backend/packet_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rerun_py/depthai_viewer/_backend/packet_handler.py b/rerun_py/depthai_viewer/_backend/packet_handler.py index c8957ee05d43..8e757f1e2587 100644 --- a/rerun_py/depthai_viewer/_backend/packet_handler.py +++ b/rerun_py/depthai_viewer/_backend/packet_handler.py @@ -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: