# Segmentation API

# (Beta) Salient Object Segmentation

Salient Object Segmentation api returns the foreground object with the background removed.

curl https://image.odaportal.com/api/v1/segment \
    -H "Content-Type: application/json" 
    -H "Authorization: Bearer ODA_STUDIO_AUTHENTICATION_TOKEN" 
    -d '{"url":URL_OF_YOUR_IMAGE}'

ODA_STUDIO_AUTHENTICATION_TOKEN → API TOKEN that Oda will provide.

URL_OF_YOUR_IMAGE → URL of the image on your hosted server (e.g. AWS S3 url).

Returns:

{
    "segmented_object_url": URL_OF_THE_SEGMENTED_IMAGE
}