File size: 712 Bytes
0cb5d6f cdda9cc 0cb5d6f cdda9cc 0cb5d6f cdda9cc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | ---
title: Construction Detection API
emoji: 🏗️
colorFrom: yellow
colorTo: blue
sdk: docker
app_port: 7860
pinned: true
---
# Construction Detection API
Detects construction elements (beam, column, door, floor, stairs, wall, window) and measures their dimensions.
## API Endpoints
| Endpoint | Method | Description |
|---|---|---|
| `/` | GET | API info |
| `/health` | GET | Health check |
| `/detect` | POST | Upload image → get detections |
| `/calibrate` | POST | Set reference for real-world units |
## Usage
```python
import requests
r = requests.post(
"https://dipangshuborah-construction-detection-api.hf.space/detect",
files={"file": open("image.jpg", "rb")}
)
print(r.json())
```
|