Input images up to 1280 x 720 (width x height). Larger images are rejected with HTTP 413, not downscaled — resize first.
Parameters
Rectified [left | right] frame, with equal-width views and at most 720x1280 pixels per eye. Supply this instead of left_image and right_image.
If true, return a dictionary containing “depth” (float32 HxW) and “left_image” (uint8 RGB HxWx3). The left image can be passed to any segmentation model.
Camera parameters: - “K”: 3x3 intrinsics for the rectified left view at input resolution - “baseline”: Stereo baseline in meters - “hiera”: Hierarchy level (0-2) - “valid_iters”: Number of valid iterations
Returns
np.ndarray | dict[str, np.ndarray]: Depends on return_left_image:- False (default): The depth array.
- True: A dictionary with “depth” and “left_image” arrays.