|
Download README.md from newtechdevng/construction-detection-api: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/spaces/newtechdevng/construction-detection-api/resolve/main/README.md
- Command line
-
hf download hf://spaces/newtechdevng/construction-detection-api/README.md
-
curl -L -o README.md https://huggingface.co/spaces/newtechdevng/construction-detection-api/resolve/main/README.md
712 Bytes
| 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()) | |
| ``` | |