curl --request POST \
--url https://api.example.com/api/yolo/detect \
--header 'Content-Type: application/json' \
--data '{}'{
"detection": {
"name": "<string>",
"confidence": 123,
"bbox": [
{}
],
"avg_color_rgb": [
{}
]
},
"annotated_image_url": "<string>"
}Detect objects in images using YOLO model and get annotated results with bounding boxes
curl --request POST \
--url https://api.example.com/api/yolo/detect \
--header 'Content-Type: application/json' \
--data '{}'{
"detection": {
"name": "<string>",
"confidence": 123,
"bbox": [
{}
],
"avg_color_rgb": [
{}
]
},
"annotated_image_url": "<string>"
}POST /api/yolo/detect
Authorization: Bearer <your_access_token>
{
"detection": {
"name": "apple",
"confidence": 0.92,
"bbox": [150, 200, 350, 450],
"avg_color_rgb": [195, 45, 38]
},
"annotated_image_url": "https://res.cloudinary.com/your-cloud/image/upload/v1234567890/annotated_image.jpg"
}
{
"detections": [],
"message": "No objects detected",
"annotated_image_url": null
}
{
"detail": "Could not load image at uploads/image.jpg"
}
curl -X POST https://api.expireeye.com/api/yolo/detect \
-H "Authorization: Bearer your_access_token" \
-F "file=@/path/to/image.jpg"
best.pt with the following configuration:
CLOUDINARY_CLOUD_NAME: Your Cloudinary cloud nameCLOUDINARY_API_KEY: Your Cloudinary API keyCLOUDINARY_API_SECRET: Your Cloudinary API secretuploads/ folder{class_name} {confidence:.2f}