Instance Recognition

Identifies objects in an image.

API Endpoint

https://instance-recognition-demo.rorocloud.io/

Request

The Instance Recognition API can be called with an image URL or by sending image data as base64 encoded bytes.
import roro
api = roro.Client("https://instance-recognition-demo.rorocloud.io/")

image = {"url": "https://rorodata-tmp.s3.amazonaws.com/instance-recognition-trucks.jpg"}
response = api.predict(image=image)
var api = roro.Client("https://instance-recognition-demo.rorocloud.io/");
var args = {
  "image": {
    "url": "https://rorodata-tmp.s3.amazonaws.com/instance-recognition-trucks.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/instance-recognition-trucks.jpg"
             }
          }'
     https://instance-recognition-demo.rorocloud.io/predict

Response

The Instance Recognition API return a new image with objects in the image marked. The response image is a stream of base64 encoded bytes.
{
    "content-type": "image/png",
    "data": "iVBORw0KGgoAAAA..."
}

API Information

Author

Ananth Krishnamoorthy

Last Updated

March 25, 2018

Version

1

More APIs