Bläddra i källkod

feat(photography): 添加相机焦距距离功能支持

- 在check.vue中添加camera_focal_distance字段并转换为数字类型
- 在editRow.vue组件中添加相机焦距距离的测试日志输出
- 添加hasCameraFocal条件判断来控制camera_focal_distance字段的传递
- 为多相机模式添加point_name和is_move_device参数支持
- 更新版本号从1.5.0到1.5.1
- 更新描述和发布说明中的版本号信息
panqiuyao 2 veckor sedan
förälder
incheckning
b205908202

+ 1 - 0
frontend/src/views/Photography/check.vue

@@ -332,6 +332,7 @@ function takePictures() {
           action_name:editData.value.editRowData.action_name || '测试',
           turntable_angle: Number(editData.value.editRowData.turntable_angle),
           shoe_upturn: Number(editData.value.editRowData.shoe_upturn),
+          camera_focal_distance: Number(editData.value.editRowData.camera_focal_distance),
           action_index:1,
           number_focus:0,
           take_picture:true,

+ 23 - 0
frontend/src/views/Photography/components/editRow.vue

@@ -364,6 +364,29 @@ function testShoesFlip(){
   }
   if (clientStore.isClient) {
 
+
+    console.log('testShoesFlip')
+    console.log({
+      camera_height: Number(editRowData.value.camera_height),
+      camera_angle:  Number(editRowData.value.camera_angle),
+      led_switch:editRowData.value.led_switch,
+      id:0,
+      mode_type:editRowData.value.mode_type,
+      turntable_position:Number(editRowData.value.turntable_position),
+      action_name:editRowData.value.action_name || '测试',
+      turntable_angle: Number(editRowData.value.turntable_angle),
+      shoe_upturn: Number(editRowData.value.shoe_upturn),
+      action_index:1,
+      number_focus:0,
+      take_picture:false,
+      pre_delay:0,
+      after_delay:0,
+      // 相机焦段距离(可选字段)
+      camera_focal_distance: hasCameraFocal.value ? Number(editRowData.value.camera_focal_distance || 0) : undefined,
+      // 多相机模式参数
+      point_name: isMultiCameraMode.value ? (editRowData.value.point_name || 'A') : undefined,
+      is_move_device: isMultiCameraMode.value ? editRowData.value.is_move_device : undefined,
+    })
     socketStore.sendMessage({
       type: 'run_mcu_single',
       data: {

+ 3 - 3
package.json

@@ -1,8 +1,8 @@
 {
   "name": "ZhiHuiYin",
-  "version": "1.5.0",
-  "description": "智慧拍照机是一种结合人工智能技术与传统摄影设备的创新产品,版本号为1.5.0",
-  "releaseNotes": "1.5.0 更新版本",
+  "version": "1.5.1",
+  "description": "智慧拍照机是一种结合人工智能技术与传统摄影设备的创新产品,版本号为1.5.1",
+  "releaseNotes": "1.5.1 更新版本",
   "main": "main.js",
   "scripts": {
     "dev": "ee-bin dev",