docs(cameras): update depth related example

This commit is contained in:
Steven Palma
2025-05-20 17:35:24 +02:00
parent 39f908e9db
commit b3dafcfb07

View File

@@ -98,8 +98,8 @@ class RealSenseCamera(Camera):
depth_camera = RealSenseCamera(custom_config) depth_camera = RealSenseCamera(custom_config)
try: try:
depth_camera.connect() depth_camera.connect()
color_image, depth_map = depth_camera.read() # Returns tuple depth_map = depth_camera.read_depth()
print(f"Color shape: {color_image.shape}, Depth shape: {depth_map.shape}") print(f"Depth shape: {depth_map.shape}")
finally: finally:
depth_camera.disconnect() depth_camera.disconnect()