Classification

Classify image at public url

POST
Classify an image downloadable via a public url for specific concepts or all concepts within a dataset

Query parameters

thresholddoubleOptional
Threshold above which classification is positive

Request

This endpoint expects an object.
url
stringRequired
A public url for downloading the image
conceptIds
list of stringsOptional
The ids of concepts to use to classify an image
datasetId
stringOptional
The id of the dataset related to the concepts to use to classify an image

Response

This endpoint returns an object
scores
list of objects
Classifications of images for the relevant concept(s)
POST
$curl -X POST https://app.coactive.ai/api/v1/classify/image/url \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "url": "s3://coactive-public/logo.png",
> "datasetId": "c40276f0-024b-4a3f-b3e6-dcf0d304843e"
>}'
Response
1{
2 "scores": [
3 {
4 "conceptName": "TheNorth",
5 "conceptId": "428e52cd-7ceb-490c-ae3f-0848c82d8c97",
6 "threshold": 0.5,
7 "positive": true,
8 "score": 0.5
9 }
10 ]
11}