mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 19:42:07 +08:00
send real frames in regen
old-commit-hash: 22a8433a84857c2398ea86a47e5d8af087a3abc4
This commit is contained in:
@@ -49,7 +49,7 @@ def replay_cameras(lr, frs):
|
||||
|
||||
img = b"\x00" * int(size[0]*size[1]*3/2)
|
||||
while True:
|
||||
if fr is not None and False:
|
||||
if fr is not None:
|
||||
img = fr.get(rk.frame % fr.frame_count, pix_fmt='yuv420p')[0]
|
||||
img = img.flatten().tobytes()
|
||||
print("got img")
|
||||
|
||||
Reference in New Issue
Block a user