From bdd5cd2bce19a76ad4fd9d3105455718328bbb47 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Tue, 18 May 2021 11:14:42 +0200 Subject: [PATCH] fix unlog_segment.py old-commit-hash: 679919ab1f4ec99fe56b6179e3ba35173a97cc34 --- tools/replay/unlog_segment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/replay/unlog_segment.py b/tools/replay/unlog_segment.py index ac9f0686ff..3f057c1913 100755 --- a/tools/replay/unlog_segment.py +++ b/tools/replay/unlog_segment.py @@ -47,7 +47,7 @@ def replay(route, loop): if w == 'roadCameraState': try: - img = fr.get(frame_idx[msg.frame.frameId], pix_fmt="rgb24") + img = fr.get(frame_idx[msg.roadCameraState.frameId], pix_fmt="rgb24") img = img[0][:, :, ::-1] # Convert RGB to BGR, which is what the camera outputs msg.roadCameraState.image = img.flatten().tobytes() except (KeyError, ValueError):