From def6304bd92744988f26e45d7d3ccfb9ddde98bf Mon Sep 17 00:00:00 2001 From: root <13910913995@163.com> Date: Sat, 7 Feb 2026 11:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E6=88=AA=E5=9B=BE=E6=8E=92=E5=BA=8F=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E8=B6=B3=E5=BA=95=E5=8E=8B=E5=8A=9B?= =?UTF-8?q?=E6=9D=BF=E6=9C=89=E6=95=88=E6=80=A7=E8=AE=BE=E7=BD=AE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/config.ini | 6 +- backend/main.py | 4 +- frontend/src/renderer/src/views/Detection.vue | 67 ++++++++++++------- 3 files changed, 48 insertions(+), 29 deletions(-) diff --git a/backend/config.ini b/backend/config.ini index f84a9c3f..125af762 100644 --- a/backend/config.ini +++ b/backend/config.ini @@ -39,7 +39,7 @@ fourcc = MJPG backend = directshow [FEMTOBOLT] -enable = False +enable = True algorithm_type = plt color_resolution = 1080P depth_mode = NFOV_2X2BINNED @@ -54,9 +54,9 @@ imu_enable = True imu_use_mock = False imu_ble_name = WT901BLE67 imu_mac_address = FA:E8:88:06:FE:F3 -pressure_enable = False +pressure_enable = True pressure_use_mock = False -pressure_port = COM5 +pressure_port = COM3 pressure_baudrate = 115200 [REMOTE] diff --git a/backend/main.py b/backend/main.py index 6d981aac..cb1ba4ba 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1366,10 +1366,8 @@ class AppServer: for item in session_data['videos']: item_copy = item.copy() item_copy['type'] = 'video' - result_data.append(item_copy) + result_data.append(item_copy) - # 按时间戳排序 - result_data.sort(key=lambda x: x.get('timestamp', ''), reverse=False) return jsonify({ 'success': True, diff --git a/frontend/src/renderer/src/views/Detection.vue b/frontend/src/renderer/src/views/Detection.vue index a2b19a32..48052cc8 100644 --- a/frontend/src/renderer/src/views/Detection.vue +++ b/frontend/src/renderer/src/views/Detection.vue @@ -39,7 +39,7 @@
-
+
@@ -806,7 +806,7 @@
-
相机参数设置
+
设备参数设置
@@ -824,7 +824,7 @@
-
+
足部相机
@@ -854,20 +854,9 @@
-
-
-
遥控器
-
-
-
串口号
- - - - + -
- -
+
IMU设备
@@ -881,7 +870,30 @@
- + +
+
+
足底压力板
+
+
+
串口号
+ + + + +
+
+
+
遥控器
+
+
+
串口号
+ + + + + +
退出 { if (response.ok) { const result = await response.json() if (result.success) { - console.log('相机参数加载成功:', result.data) + console.log('设备参数加载成功:', result.data) cameraForm.value = result.data cameraDialogVisible.value = true // console.log('相机参数加载成功:', patientInfo.value) @@ -2441,8 +2462,8 @@ const getDevicesInit = async () => { throw new Error(`HTTP ${response.status}: ${response.statusText}`) } } catch (error) { - console.error('加载相机参数失败:', error) - ElMessage.warning('加载相机参数失败,请检查网络连接') + console.error('加载设备参数失败:', error) + ElMessage.warning('加载设备参数失败,请检查网络连接') } } @@ -3362,7 +3383,7 @@ function viewClick(e){ } .pop-up-camera-container{ width: 668px; - height:630px; + height:700px; position: absolute; top: 0; right: 0;