Images, Annotations and Augmentation
Images and Annotations data fetching and modifications endpoints
Create Image Object
Create Image
POST
https://api.autogon.ai/api/v1/label/image/
Request Body
images*
array
List of Image URLs
project_id*
int
Project ID
Get Images
Perform quick and fully-managed model inference
GET
https://api.autogon.ai/api/v1/label/image
Path Parameters
project_id*
int
Project ID
Delete Images
Delete images using IDs
DELETE
https://api.autogon.ai/api/v1/label/image/
Request Body
images
array
Array of image IDs
project_id*
int
Project ID
Annotate Images
Sample Request
{
"project_id": 258,
"images": [
{
"image_id": 91,
"annotations": [
{
"lbl": "object_class",
"bbx": {
"x": 452,
"y": 134,
"w": 241,
"h": 143
}
},
{
"lbl": "test_class",
"bbx": {
"x": 413,
"y": 234,
"w": 143,
"h": 134
}
}
]
},
{
"image_url": "https://storage.autogon.ai/......",
"w": 800,
"h": 600,
"annotations": [
{
"lbl": "object_class",
"bbx": {
"x": 452,
"y": 134,
"w": 241,
"h": 143
}
},
{
"lbl": "test_class",
"bbx": {
"x": 413,
"y": 234,
"w": 143,
"h": 134
}
}
]
}
]
}
Modifiy Image Annotations
POST
https://api.autogon.ai/api/v1/label/image/annotate
Request Body
project_id*
int
Project ID
images*
array
List of image data for each specific image including annotations
Image Augmentation
Augment all
POST
https://api.autogon.ai/api/v1/label/image/augment/
Augment all image-annotation pairs in a project
Request Body
project_id*
int
Project ID
augmentations
array
List of augmentations to apply.
Default: ["all"]
Equivalent to: ["HorizontalFlip", "VerticalFlip", "Crop", "HueSaturation", "BrightnessContrast", "Blur"]
multiplier
int
Number of augmented images to generate per image
Default: 3
Last updated
Was this helpful?