PlanetEyeFarm12/construction-deforestation-api
0
๐๏ธ 4-Model Construction Ensemble Detection API
Runs 4 YOLOv8 models simultaneously on any video:
API Endpoints
Quick Usage
import requests, zipfile
# Get annotated video + annotation log
with open("site_video.mp4", "rb") as f:
r = requests.post(
"https://YOUR-SPACE.hf.space/detect/video?snapshot_every=2",
files={"file": f},
timeout=600
)
with open("results.zip", "wb") as f:
f.write(r.content)
with zipfile.ZipFile("results.zip") as z:
z.extractall(".")
# โ annotated.mp4 + annotation.txt