mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-28 18:33:45 +08:00
Also catch ValueError from framereader
old-commit-hash: 794cfcf043f5e4527ad42f3930612d590f72af14
This commit is contained in:
@@ -48,7 +48,7 @@ def replay(route, segment):
|
||||
img = fr.get(frame_idx[msg.frame.frameId], pix_fmt="rgb24")
|
||||
img = img[0][:, :, ::-1] # Convert RGB to BGR, which is what the camera outputs
|
||||
msg.frame.image = img.flatten().tobytes()
|
||||
except KeyError:
|
||||
except (KeyError, ValueError):
|
||||
pass
|
||||
|
||||
if w not in socks:
|
||||
|
||||
Reference in New Issue
Block a user