mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:16:30 +00:00
fix ai detection bugs #1
This commit is contained in:
@@ -17,7 +17,6 @@ public class AnnotationControl : Border
|
||||
private readonly TextBlock _classNameLabel;
|
||||
private readonly Label _probabilityLabel;
|
||||
public TimeSpan? Time { get; set; }
|
||||
public double? Probability { get; set; }
|
||||
|
||||
private AnnotationClass _annotationClass = null!;
|
||||
public AnnotationClass AnnotationClass
|
||||
@@ -84,7 +83,6 @@ public class AnnotationControl : Border
|
||||
{
|
||||
_selectionFrame,
|
||||
_classNameLabel,
|
||||
_probabilityLabel,
|
||||
AddRect("rLT", HorizontalAlignment.Left, VerticalAlignment.Top, Cursors.SizeNWSE),
|
||||
AddRect("rCT", HorizontalAlignment.Center, VerticalAlignment.Top, Cursors.SizeNS),
|
||||
AddRect("rRT", HorizontalAlignment.Right, VerticalAlignment.Top, Cursors.SizeNESW),
|
||||
@@ -95,6 +93,8 @@ public class AnnotationControl : Border
|
||||
AddRect("rRB", HorizontalAlignment.Right, VerticalAlignment.Bottom, Cursors.SizeNWSE)
|
||||
}
|
||||
};
|
||||
if (probability.HasValue)
|
||||
_grid.Children.Add(_probabilityLabel);
|
||||
Child = _grid;
|
||||
Cursor = Cursors.SizeAll;
|
||||
AnnotationClass = annotationClass;
|
||||
|
||||
Reference in New Issue
Block a user