mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-23 01:13:44 +08:00
Framereader: minor cleanup (#35577)
* No wrapping * unused test * another list * mypy * cleaner * Revert "cleaner" This reverts commit ccc1446b9d649d64b20175e22a66e135c44b21e5. * mypy
This commit is contained in:
@@ -37,7 +37,7 @@ fr = FrameReader(segments[segment])
|
||||
if frame >= fr.frame_count:
|
||||
raise Exception("frame {frame} not found, got {fr.frame_count} frames")
|
||||
|
||||
im = Image.fromarray(fr.get(frame)[0])
|
||||
im = Image.fromarray(fr.get(frame))
|
||||
fn = f"uxxx_{route.replace('|', '_')}_{segment}_{frame}.png"
|
||||
im.save(fn)
|
||||
print(f"saved {fn}")
|
||||
|
||||
Reference in New Issue
Block a user