|
|
@@ -166,6 +166,28 @@
|
|
|
(val) => {
|
|
|
if (!val) return;
|
|
|
|
|
|
+ //先定form字段集合,如果有nextobj,添加子字段
|
|
|
+ const meta = metaObjList.value.find((item) => item.label === val);
|
|
|
+ const nexts = meta.nextObjs;
|
|
|
+ if (nexts) {
|
|
|
+ for (let i = 0; i < nexts.length; i++) {
|
|
|
+ const item = nexts[i];
|
|
|
+ paramItems.value.push({
|
|
|
+ label: item.label,
|
|
|
+ type: 'confidence',
|
|
|
+ prop: `${item.label}.confidence`,
|
|
|
+ });
|
|
|
+ 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'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
const index = selectedAlgoDetail.value.metaValues.findIndex((item) => item.label === val);
|
|
|
if (selectedAlgoDetail.value.metaValues[index]['min_width']) {
|
|
|
const countList = getCriticalCounts(selectedAlgoDetail.value.extra);
|
|
|
@@ -173,32 +195,9 @@
|
|
|
algoParams.value.criticalCount =
|
|
|
countList && countList.length > index ? countList[index] : 0;
|
|
|
} else {
|
|
|
- const meta = metaObjList.value.find((item) => item.label === val);
|
|
|
- console.log(meta.confidence);
|
|
|
-
|
|
|
algoParams.value.confidence = Number((meta.confidence * 100).toFixed(0));
|
|
|
algoParams.value['min_width'] = meta['min_width'];
|
|
|
algoParams.value['min_height'] = meta['min_height'];
|
|
|
-
|
|
|
- const nexts = meta.nextObjs;
|
|
|
- if (nexts) {
|
|
|
- for (let i = 0; i < nexts.length; i++) {
|
|
|
- const item = nexts[i];
|
|
|
- paramItems.value.push({
|
|
|
- label: item.label,
|
|
|
- type: 'confidence',
|
|
|
- prop: `${item.label}.confidence`,
|
|
|
- });
|
|
|
- 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'];
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
},
|
|
|
{
|