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)
try:
depth_camera.connect()
color_image, depth_map = depth_camera.read() # Returns tuple
print(f"Color shape: {color_image.shape}, Depth shape: {depth_map.shape}")
depth_map = depth_camera.read_depth()
print(f"Depth shape: {depth_map.shape}")
finally:
depth_camera.disconnect()