Image Recognition

Predicts the main object in an image

Image Recognition


Label
Probability

API Endpoint

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

Request

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

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

Response

The Image Recognition API returns a list of probability scores and the detected object label. The response is JSON object containing the prediction.
[
    {
        "label": "Madagascar cat, ring-tailed lemur, Lemur catta",
        "probability": 0.98
    },
    {
        "label": "Indri brevicaudatus",
        "probability": 0.02
    }
]

API Information

Author

Ananth Krishnamoorthy

Last Updated

September 10, 2017

Version

1

More APIs