Skip to content

Instantly share code, notes, and snippets.

@samuelcouch
Last active October 5, 2015 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelcouch/8b1bec79e682b2886e20 to your computer and use it in GitHub Desktop.
Save samuelcouch/8b1bec79e682b2886e20 to your computer and use it in GitHub Desktop.
curl -H "Authorization: Bearer <token>" --data-urlencode "url=http://www.clarifai.com/img/metro-north.jpg" --data-urlencode "url=http://www.clarifai.com/img/metro-north.jpg" https://api.clarifai.com/v1/tag/
{
"status_code":"OK",
"status_msg":"All images in request have completed successfully. ",
"meta":{
"tag":{
"timestamp":1444078199.198719,
"model":"default",
"config":"0b2b7436987dd912e077ff576731f8b7"
}
},
"results":[
{
"docid":15512461224882631443,
"url":"http://www.clarifai.com/img/metro-north.jpg",
"status_code":"OK",
"status_msg":"OK",
"local_id":"",
"result":{
"tag":{
"classes":[
"train",
"railroad",
"station",
"rail",
"transportation",
"platform",
"railway",
"speed",
"departure",
"travel",
"business",
"traffic",
"modern",
"subway",
"waiting",
"locomotive",
"public",
"blur",
"night",
"urban"
],
"catids":[
"169",
"1342",
"740",
"836",
"98",
"1791",
"835",
"349",
"3469",
"9",
"37",
"650",
"93",
"1448",
"1309",
"1535",
"859",
"422",
"190",
"180"
],
"probs":[
0.9993985891342163,
0.998031497001648,
0.9970426559448242,
0.995042085647583,
0.9950128197669983,
0.9949191808700562,
0.9916413426399231,
0.9732898473739624,
0.9711810350418091,
0.9688708782196045,
0.9678390026092529,
0.9648706912994385,
0.9581987857818604,
0.9571201801300049,
0.9536231756210327,
0.9521244764328003,
0.9489620923995972,
0.9485504627227783,
0.9403126239776611,
0.9399034976959229
]
}
},
"docid_str":"31fdb2316ff87fb5d747554ba5267313"
},
{
"docid":15512461224882631443,
"url":"http://www.clarifai.com/img/metro-north.jpg",
"status_code":"OK",
"status_msg":"OK",
"local_id":"",
"result":{
"tag":{
"classes":[
"train",
"railroad",
"station",
"rail",
"transportation",
"platform",
"railway",
"speed",
"departure",
"travel",
"business",
"traffic",
"modern",
"subway",
"waiting",
"locomotive",
"public",
"blur",
"night",
"urban"
],
"catids":[
"169",
"1342",
"740",
"836",
"98",
"1791",
"835",
"349",
"3469",
"9",
"37",
"650",
"93",
"1448",
"1309",
"1535",
"859",
"422",
"190",
"180"
],
"probs":[
0.9993985891342163,
0.998031497001648,
0.9970426559448242,
0.995042085647583,
0.9950128197669983,
0.9949191808700562,
0.9916413426399231,
0.9732898473739624,
0.9711810350418091,
0.9688708782196045,
0.9678390026092529,
0.9648706912994385,
0.9581987857818604,
0.9571201801300049,
0.9536231756210327,
0.9521244764328003,
0.9489620923995972,
0.9485504627227783,
0.9403126239776611,
0.9399034976959229
]
}
},
"docid_str":"31fdb2316ff87fb5d747554ba5267313"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment