Initial commit

This commit is contained in:
chk
2026-06-08 19:50:36 +02:00
commit 53db55ba36
39 changed files with 5860 additions and 0 deletions

23
scripts/__init__.py Normal file
View File

@@ -0,0 +1,23 @@
"""
scripts
=======
Roboter-Pose-Schätzung aus Mehrkamera-ArUco-Bildern.
Zwei Interfaces, gleiche Logik darunter:
(A) Python-Bibliothek — direkt einbindbar:
from scripts import estimate_from_dir, PipelineResult
result = estimate_from_dir("path/to/images", robot_json="robot.json")
print(result.joints) # {"x": 50.2, "y": -2.1, ...}
print(result.confidence) # {"x": "high", "b": "low", ...}
(B) REST-API — läuft als Service im Docker-Container:
POST /v1/estimate (multipart: images + intrinsics)
GET /v1/health
GET /v1/config
→ JSON mit joints, confidence, residual_rms, processing_ms
"""
from .pipeline import estimate_from_dir, PipelineResult
__version__ = "1.0.0"
__all__ = ["estimate_from_dir", "PipelineResult", "__version__"]