diff --git a/client/src/sections/wuyuanbiaoba/components/CameraView.jsx b/client/src/sections/wuyuanbiaoba/components/CameraView.jsx index d76fef7..86e40bb 100644 --- a/client/src/sections/wuyuanbiaoba/components/CameraView.jsx +++ b/client/src/sections/wuyuanbiaoba/components/CameraView.jsx @@ -287,24 +287,23 @@ const CameraView = ({ if (videoRect && rectangles.length < maxRectangles) { const nextIndex = Number(rectangles[rectangles.length - 1]?.id) ? Number(rectangles[rectangles.length - 1]?.id)-100+1 : 1; const fixedId = `10${nextIndex}`; - // 根据选中的模板预设参数 const templateParams = selectedTemplate ? { // 从模板中获取参数 - name: `target${nextIndex}` || selectedTemplate.name, + name: `T_${nextIndex}` || selectedTemplate.name, radius: selectedTemplate.physicalRadius || 40.0, isReferencePoint: selectedTemplate.isBaseline || false, gradientThreshold: - selectedTemplate.gradientThresholdValue || 100, - anchorThreshold: selectedTemplate.anchorThresholdValue || 80, + selectedTemplate.gradientThresholdValue, + anchorThreshold: selectedTemplate.anchorThresholdValue, gaussianBlurThreshold: selectedTemplate.gaussianBlur || 3, binaryThreshold: selectedTemplate.binaryThreshold || 120, hasAdvancedConfig: false, } : { // 默认参数 - name: `target${nextIndex}`, + name: `T_${nextIndex}`, radius: 40.0, isReferencePoint: false, gradientThreshold: 100, @@ -758,8 +757,8 @@ const CameraView = ({ threshold: { binary: rect.binaryThreshold || 120, gauss: rect.gaussianBlurThreshold || 1, - gradient: rect.gradientThreshold || 100, - anchor: rect.anchorThreshold || 80, + gradient: rect.gradientThreshold, + anchor: rect.anchorThreshold, }, radius: rect.radius || 40.0, id: rect.id || targetKey, // 使用原始ID diff --git a/client/src/sections/wuyuanbiaoba/components/TemplateModal.jsx b/client/src/sections/wuyuanbiaoba/components/TemplateModal.jsx index 3407d1b..93c9ccc 100644 --- a/client/src/sections/wuyuanbiaoba/components/TemplateModal.jsx +++ b/client/src/sections/wuyuanbiaoba/components/TemplateModal.jsx @@ -261,8 +261,8 @@ const TemplateModal = ({ + * 标靶图片 - * } rules={[{ required: true, message: "请上传标靶图片" }]}