Spaces:
Runtime error
Runtime error
|
Download README.md from estrologic/odontify-api: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/estrologic/odontify-api/resolve/main/README.md
- Command line
-
hf download hf://spaces/estrologic/odontify-api/README.md
-
curl -L -o README.md https://huggingface.co/spaces/estrologic/odontify-api/resolve/main/README.md
1.17 kB
| title: Odontify Dental API | |
| emoji: 🦷 | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: docker | |
| pinned: false | |
| license: cc-by-nc-4.0 | |
| # Odontify – Dental AI Pipeline API | |
| Pipeline de 3 etapas para análisis dental intraoral. | |
| ## Endpoint | |
| **POST** `/analyze` — envía imagen intraoral, retorna imagen anotada + JSON. | |
| Solo se dibujan bounding boxes en dientes con caries (mild / moderate / severe). | |
| ## Ejemplo | |
| ```python | |
| import requests, base64 | |
| with open("imagen.jpg", "rb") as f: | |
| r = requests.post("https://<tu-space>.hf.space/analyze", | |
| files={"file": f}) | |
| data = r.json() | |
| print(data["report"]) | |
| # Guardar imagen anotada | |
| img_bytes = base64.b64decode(data["image_base64"]) | |
| with open("resultado.jpg", "wb") as f: | |
| f.write(img_bytes) | |
| ``` | |
| ## Respuesta JSON | |
| ```json | |
| { | |
| "image_base64": "...", | |
| "image_format": "JPEG", | |
| "report": { | |
| "view": "F", | |
| "view_confidence": 0.97, | |
| "total_teeth_detected": 14, | |
| "teeth_with_caries": 3, | |
| "summary": {"healthy": 11, "mild": 1, "moderate": 2, "severe": 0}, | |
| "findings": [ | |
| {"fdi": 16, "severity": "moderate", "confidence": 0.84, "bbox": [120, 45, 198, 112]}, | |
| ... | |
| ] | |
| } | |
| } | |
| ``` | |