Background Removal

Removes background of an image

API Endpoint

https://background-removal.rorocloud.io/

Request

The Background Removal API can be called with an image URL or by sending image data as base64 encoded bytes. The API removes the entire background and leaves the main subject intact.
import roro
api = roro.Client("https://background-removal.rorocloud.io/")

image = {"url": "https://rorodata-tmp.s3.amazonaws.com/bird.jpg"}
response = api.predict(image=image)
var api = roro.Client("https://background-removal.rorocloud.io/");
var args = {
  "image": {
    "url": "https://rorodata-tmp.s3.amazonaws.com/bird.jpg"}
  }
};

api.invoke("predict", args, function(response) {
    // do something with response
});

curl -X POST
     -H 'Content-Type: application/json'
     - d '{
             "image": {
                 "url": "https://rorodata-tmp.s3.amazonaws.com/bird.jpg"
             }
          }'
     https://background-removal.rorocloud.io/predict

Response

The Background Removal API return a new image which has the main subject and black background. The response image is a stream of base64 encoded bytes.
{
    "content-type": "image/png",
    "data": "iVBORw0KGgoAAAA..."
}

API Information

Author

Alon Burg, Gidi Shperber

Last Updated

September 10, 2017

Version

2

More APIs