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")