Authentication, input and response
IMG
POST https://api.altum.ai/labelling/img
This endpoint allows you to upload an image for labeling.
Headers
Name
Type
Description
x-api-key*
string
Unique API Key from Altum. Create one via Mopsus (https://mopsus.altum.ai)
Content-Type
string
multipath/form-data
Request Body
Name
Type
Description
image*
object
The image to be sent in the request must be uploaded as a multipath/form-data type.
{
"detail": [
{
"loc": [
"body",
"image"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}{
"message": "Internal server error"
}{
"message": "Missing Authentication Token"
}{
"Output": {
"Image_Class": "outdoor",
"ConfidencePercent_Image_Class": "99.99",
"Scene_Class1": "facade",
"ConfidencePercent_Scene_Class1": "93.89"
}
}
OR
{
"Output": {
"Image_Class": "outdoor",
"ConfidencePercent_Image_Class": "100.0",
"Scene_Class1": "balcony-garden",
"ConfidencePercent_Scene_Class1": "36.92",
"Scene_Class2": "facade",
"ConfidencePercent_Scene_Class2": "59.15"
}
}
OR
{
"Output": {
"Image_Class": "indoor",
"ConfidencePercent_Image_Class": "100.0",
"Room_Class": "bedroom",
"ConfidencePercent_Room_Class": "99.22"
}
}
OR
{
"Output": {
"Image_Class": "indoor",
"ConfidencePercent_Image_Class": "99.9",
"Room_Class": "other_room",
"ConfidencePercent_Room_Class": "96.18",
"Room_Subclass": "hall_corridor",
"ConfidencePercent_Room_Subclass": "87.85"
}
}{
"detail": "Please upload an image with one of the following formats: .jpg, .jpeg or .png"
}URL
POST https://api.altum.ai/labelling/url
Instead of uploading the image file, this endpoint allows you to rather send the public URL of the image you want labelled.
Headers
Name
Type
Description
Content-Type
string
application/json
x-api-key*
string
API Key from Altum. Create one via Mopsus(https://mopsus.altum.ai)
Request Body
Name
Type
Description
url*
string
The public URL of the image you wish to send int he request
{
"detail": [
{
"loc": [
"body",
"image"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}{
"message": "Internal server error"
}{
"message": "Missing Authentication Token"
}{
"Output": {
"Image_Class": "outdoor",
"ConfidencePercent_Image_Class": "99.99",
"Scene_Class1": "facade",
"ConfidencePercent_Scene_Class1": "93.89"
}
}
OR
{
"Output": {
"Image_Class": "outdoor",
"ConfidencePercent_Image_Class": "100.0",
"Scene_Class1": "balcony-garden",
"ConfidencePercent_Scene_Class1": "36.92",
"Scene_Class2": "facade",
"ConfidencePercent_Scene_Class2": "59.15"
}
}
OR
{
"Output": {
"Image_Class": "indoor",
"ConfidencePercent_Image_Class": "100.0",
"Room_Class": "bedroom",
"ConfidencePercent_Room_Class": "99.22"
}
}
OR
{
"Output": {
"Image_Class": "indoor",
"ConfidencePercent_Image_Class": "99.9",
"Room_Class": "other_room",
"ConfidencePercent_Room_Class": "96.18",
"Room_Subclass": "hall_corridor",
"ConfidencePercent_Room_Subclass": "87.85"
}
}{
"detail": "The URL is not valid"
}Request body
Example request
{"url":"https://cloud.funda.nl/valentina_media/149/998/977_1440x960.jpg"}Last updated