From 7fa5257723a149000568e3784fd0fcd871337546 Mon Sep 17 00:00:00 2001 From: donghaiwang Date: Sat, 21 Nov 2026 19:15:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20windows=20=E4=B8=8B=20/tmp?= =?UTF-8?q?=20=E7=9B=AE=E5=BD=95=E4=B8=8D=E5=AD=98=E5=9C=A8=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E4=BF=9D=E5=AD=98=E7=9A=84=E5=9B=BE=E7=89=87=E6=89=BE?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=EF=BC=88=E4=B8=8D=E6=8A=A5=E9=94=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PythonAPI/examples/air/04_sensor_capture.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PythonAPI/examples/air/04_sensor_capture.py b/PythonAPI/examples/air/04_sensor_capture.py index d9d9db9d60..1f292ca1f9 100644 --- a/PythonAPI/examples/air/04_sensor_capture.py +++ b/PythonAPI/examples/air/04_sensor_capture.py @@ -55,10 +55,10 @@ img = img_queue.get(timeout=2) arr = np.frombuffer(img.raw_data, dtype=np.uint8) frame = arr.reshape(img.height, img.width, 4)[:, :, :3] - cv2.imwrite(f'/tmp/carla_frame_{i}.png', frame) + cv2.imwrite(f'./carla_frame_{i}.png', frame) print(f" Save Frame {i}: {img.width}x{img.height}") except queue.Empty: print(f" Frame {i}: Timeout") camera.stop(); camera.destroy(); vehicle.destroy() -print(f"Capture completed! Images: /tmp/carla_frame_*.png") +print(f"Capture completed! Images: ./carla_frame_*.png")