Browse Source

fix: 算法配置不生效部分修改

sunhongyao341504 1 year ago
parent
commit
9e39700116

+ 3 - 3
src/views/cameras/preview/components/AlgorithmsSetting/AlgoParamsCard.vue

@@ -177,14 +177,14 @@
             type: 'confidence',
             prop: `${item.label}.confidence`,
           });
-          algoParams.value[`${item.label}.confidence`] = Number((item.confidence * 100).toFixed(0));
+          // algoParams.value[`${item.label}.confidence`] = Number((item.confidence * 100).toFixed(0));
           paramItems.value.push({
             label: item.label,
             type: 'minArea',
             prop: '',
           });
-          algoParams.value[item.label + '.' + 'min_width'] = item['min_width'];
-          algoParams.value[item.label + '.' + 'min_height'] = item['min_height'];
+          // algoParams.value[item.label + '.' + 'min_width'] = item['min_width'];
+          // algoParams.value[item.label + '.' + 'min_height'] = item['min_height'];
         }
       }
 

+ 2 - 1
src/views/cameras/preview/components/AlgorithmsSetting/types.ts

@@ -28,8 +28,9 @@ export const labelNameMap = {
   sleep: '睡觉',
   phone: '手机',
   smoke: '烟雾',
+  withSafeBelt: '戴安全带',
   'baby-blue': '浅蓝工服',
-  'dark-blue': '蓝工服',
+  'dark-blue': '蓝工服',
   'royal-blue': '宝蓝工服',
   white: '白工服',
   vague: '模糊工服',