fix detection label

fix schema migrator for enums
This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-08-13 10:12:25 +03:00
parent 16e5853d67
commit 4780e8c61c
7 changed files with 45 additions and 14 deletions
+3 -2
View File
@@ -5,7 +5,7 @@ using System.Windows.Media;
using System.Windows.Shapes;
using Azaion.Common.DTO;
using Azaion.Common.Extensions;
using Label = System.Windows.Controls.Label;
using Annotation = Azaion.Common.Database.Annotation;
namespace Azaion.Common.Controls;
@@ -94,7 +94,8 @@ public class DetectionControl : Border
};
_detectionLabelPanel = new DetectionLabelPanel
{
Confidence = canvasLabel.Confidence
Confidence = canvasLabel.Confidence,
DetectionClass = Annotation.DetectionClassesDict[canvasLabel.ClassNumber]
};
DetectionLabelContainer.Children.Add(_detectionLabelPanel);