
Detect scenes of destruction, damages to buildings and vehicles, fires
Open-vocabulary object detection with segmentation. Detects objects using text prompts.
image_urlstringRequiredURL of the image for object detection
https://example.com/image.jpgObject detection results with bounding boxes and segmentation masks
num_detectionsintegerNumber of objects detected
3detectionsarrayArray of detected objects
bboxobjectBounding box {x1, y1, x2, y2}
{"x1":100,"y1":150,"x2":300,"y2":400}scorefloatDetection confidence (0.0-1.0)
0.95class_idintegerClass index
0class_namestringDetected object class name
personmask_pngstringBase64-encoded PNG segmentation mask
data:image/png;base64,...image_sizeobjectOriginal image dimensions
{
"width": 1920,
"height": 1080
}{
"model": "destruction-fire-detection",
"image_url": "https://example.com/image.jpg"
}{
"success": true,
"data": {
"num_detections": 2,
"detections": [
{
"bbox": {
"x1": 100,
"y1": 150,
"x2": 300,
"y2": 400
},
"score": 0.95,
"class_id": 0,
"class_name": "person",
"mask_png": "data:image/png;base64,iVBORw0KGgo..."
},
{
"bbox": {
"x1": 400,
"y1": 200,
"x2": 600,
"y2": 450
},
"score": 0.87,
"class_id": 1,
"class_name": "car",
"mask_png": "data:image/png;base64,iVBORw0KGgo..."
}
],
"image_size": {
"width": 1920,
"height": 1080
}
}
}429 HTTP error code along with an error message. You should then retry with an exponential back-off strategy, meaning that you should retry after 4 seconds, then 8 seconds, then 16 seconds, etc.Integrate Destruction & Fire Detector into your application today with our easy-to-use API.