mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:36:30 +00:00
fix initialization, throttle operations
day/winter/night switcher fixes
This commit is contained in:
@@ -11,6 +11,23 @@ public class DetectionClass
|
||||
public string Name { get; set; } = null!;
|
||||
public string ShortName { get; set; } = null!;
|
||||
|
||||
public string UIName
|
||||
{
|
||||
get
|
||||
{
|
||||
var mode = PhotoMode switch
|
||||
{
|
||||
PhotoMode.Night => "(ніч)",
|
||||
PhotoMode.Winter => "(зим)",
|
||||
PhotoMode.Regular => "",
|
||||
_ => ""
|
||||
};
|
||||
return ShortName + mode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public PhotoMode PhotoMode { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
@@ -19,6 +36,9 @@ public class DetectionClass
|
||||
[JsonIgnore] //For UI
|
||||
public int ClassNumber => Id + 1;
|
||||
|
||||
[JsonIgnore]
|
||||
public int YoloId => (int)PhotoMode + Id;
|
||||
|
||||
[JsonIgnore]
|
||||
public SolidColorBrush ColorBrush => new(Color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user