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:
4
app/resources/camera_rtsp_urls.sample.json
Normal file
4
app/resources/camera_rtsp_urls.sample.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"or-cam-01": "rtsp://admin:ChangeMe@192.168.1.101:554/Streaming/Channels/101",
|
||||
"or-cam-02": "rtsp://admin:ChangeMe@192.168.1.102:554/Streaming/Channels/101"
|
||||
}
|
||||
BIN
app/resources/consumable_classifier.pt
Normal file
BIN
app/resources/consumable_classifier.pt
Normal file
Binary file not shown.
48
app/resources/consumable_classifier_labels.yaml
Normal file
48
app/resources/consumable_classifier_labels.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
# 耗材分类器 consumable_classifier.pt 的 YOLO-cls 类别名(与训练侧 data.yaml 对齐)。
|
||||
# 推理时标签以权重内嵌 names 为准;本文件仅供文档与类别清单对照。
|
||||
names:
|
||||
0: MCuⅡ功能性宫内节育器
|
||||
1: 一次性中性电极板
|
||||
2: 一次性使用乳胶导尿管
|
||||
3: 一次性使用冲洗袋
|
||||
4: 一次性使用医疗卫生用品
|
||||
5: 一次性使用单极手术电极
|
||||
6: 一次性使用导尿管
|
||||
7: 一次性使用手术单
|
||||
8: 一次性使用手术单(一次性医用垫单)
|
||||
9: 一次性使用手术衣
|
||||
10: 一次性使用无菌敷贴
|
||||
11: 一次性使用无菌气管插管Tracheal Tube
|
||||
12: 一次性使用无菌注射器带针
|
||||
13: 一次性使用无菌采样拭子
|
||||
14: 一次性使用气管插管
|
||||
15: 一次性使用灭菌棉签
|
||||
16: 一次性使用灭菌橡胶外科手套
|
||||
17: 一次性使用牙垫
|
||||
18: 一次性使用精密过滤输液器 带针
|
||||
19: 一次性使用肛门管
|
||||
20: 一次性使用胃管
|
||||
21: 一次性使用血液透析管路
|
||||
22: 一次性使用输卵管导管
|
||||
23: 一次性使用雾化器
|
||||
24: 一次性使用静脉留置针
|
||||
25: 一次性使用静脉输液针
|
||||
26: 一次性使用麻醉面罩
|
||||
27: 一次性内窥镜护套
|
||||
28: 一次性医用灭菌棉签
|
||||
29: 一次性无菌喉罩
|
||||
30: 医用凡士林敷料
|
||||
31: 医用纱布敷料
|
||||
32: 医用缝合针
|
||||
33: 医用脱脂棉纱布块
|
||||
34: 可吸收性外科缝线
|
||||
35: 密闭式防针刺伤型静脉留置针
|
||||
36: 导管固定器
|
||||
37: 气管切开插管
|
||||
38: 结扎夹Ligating Clips
|
||||
39: 自粘性薄膜敷料
|
||||
40: 血液净化装置的体外循环血路
|
||||
41: 负压引流器
|
||||
42: 非吸收性外科缝线
|
||||
43: 非吸收性外科缝线(蚕丝线)
|
||||
nc: 44
|
||||
BIN
app/resources/tear_action.pt
Normal file
BIN
app/resources/tear_action.pt
Normal file
Binary file not shown.
Reference in New Issue
Block a user