Input images up to 1280 x 720 (width x height). Larger images are rejected with HTTP 413, not downscaled — resize first.
Parameters
Returns
np.ndarray: Binary segmentation mask as numpy array (H, W) with dtype uint8. Foreground pixels are 255, background pixels are 0.Example
Example Output
