feat: surgery pipeline API, video inference, voice confirm, and tests

- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.

Made-with: Cursor
This commit is contained in:
Kevin
2026-04-21 18:33:54 +08:00
parent d1a3d029ec
commit 04866559db
56 changed files with 7196 additions and 43 deletions

View File

@@ -0,0 +1,3 @@
{
"cpu_info": "arm"
}

21
Ultralytics/settings.json Normal file
View File

@@ -0,0 +1,21 @@
{
"settings_version": "0.0.6",
"datasets_dir": "/Users/kevin/Codes/hgtk/operation-room-monitor-server/datasets",
"weights_dir": "/Users/kevin/Codes/hgtk/operation-room-monitor-server/weights",
"runs_dir": "/Users/kevin/Codes/hgtk/operation-room-monitor-server/runs",
"uuid": "d9d880555edc417ea917cbee7c9b11ddc98c4fc80cb7aa6f377c74fa8ed5b7c8",
"sync": true,
"api_key": "",
"openai_api_key": "",
"clearml": true,
"comet": true,
"dvc": true,
"hub": true,
"mlflow": true,
"neptune": true,
"raytune": true,
"tensorboard": false,
"wandb": false,
"vscode_msg": true,
"openvino_msg": true
}