|
|
@@ -74,12 +74,12 @@ export const getMetaValues = (extra: string | undefined | null) => {
|
|
|
const val = {
|
|
|
id: uid(),
|
|
|
label: item.label,
|
|
|
- confidence: item.confidence * 100,
|
|
|
+ confidence: Number((item.confidence * 100).toFixed(0)),
|
|
|
min_width: item['min_width'],
|
|
|
min_height: item['min_height'],
|
|
|
} as any;
|
|
|
item.nextObjs.forEach((next) => {
|
|
|
- val[`${next.label}.confidence`] = next.confidence * 100;
|
|
|
+ val[`${next.label}.confidence`] = Number((next.confidence * 100).toFixed(0));
|
|
|
val[next.label + '.' + 'min_width'] = next['min_width'];
|
|
|
val[next.label + '.' + 'min_height'] = next['min_height'];
|
|
|
});
|