guqing 4 месяцев назад
Родитель
Сommit
b9aa2cf858
1 измененных файлов с 31 добавлено и 31 удалено
  1. 31 31
      door_detect/README.md

+ 31 - 31
door_detect/README.md

@@ -1,17 +1,36 @@
-关闭代理
+# 入户门检测服务
+## 服务启动
+
+```bash
+python entrance_result_server.py
+```
+
+**调用示例**
+
+```bash
+# 基础调用(仅检测)
+curl -X POST http://192.168.9.52:8079/detect-sync \
+  -H "Content-Type: application/json" \
+  -d '{"scene_folder": "/path/to/scene0001"}' \
+  -o result.json
+
+#url:http://192.168.9.52:8079/detect-sync 
+#传入参数格式:json
+#传入参数: /path/to/scene0001
+#输出结果: result.json(保存到客户端,指定定路径)
+
+# 带可视化输出
+curl -X POST http://192.168.9.52:8079/detect-sync \
+  -H "Content-Type: application/json" \
+  -d '{"scene_folder": "/path/to/scene0001", "vis_ply": true}' \
+  -o result.json
+```
+
+> 将 ``192.168.9.52`` 替换为服务器实际 IP 地址。
+
 
-#######################################################################################################################################################################################
-python entrance_result_server.py 启动服务器
-"http调用如下":
-curl -X POST http://192.168.9.52:8079/detect-sync -H "Content-Type: application/json" -d '{"scene_folder": "/media/gu/KESU/Project/door_detection_in_point_clouds/scene0001"}' -o result.json
-###curl -X POST http://192.168.9.52:8079/detect-sync -H "Content-Type: application/json" -d '{"scene_folder": "/media/gu/KESU/Project/door_detection_in_point_clouds/scene0001","vis_ply":true}' -o ###result.json 
- url: http://192.168.9.52:8078/api/detect  (192.168.9.52:8079替换成主机)
- 输入格式: json格式
- 输入参数: scene_folder
- 输出路径: result.json(在客户端目录下生成)
-#######################################################################################################################################################################################
 
-### 场景文件夹结构
+## 场景文件夹结构
 
 ```
 scene0001/
@@ -26,25 +45,6 @@ scene0001/
 └── vision.txt         # JSON 格式,包含点位姿态和可见性信息
 ```
 
-### vision.txt 格式
-
-```json
-{
-  "sweepLocations": [
-    {
-      "uuid": "1",
-      "id": 1,
-      "pose": {
-        "rotation": { "w": 1, "x": 0, "y": 0, "z": 0 },
-        "translation": { "x": 0, "y": 0, "z": 0 }
-      },
-      "puck": { "z": -1.56 },
-      "visibles": [2, 3, 4]
-    }
-  ]
-}
-```
-
 ## 输出格式
 
 ### entrance_position.json