Files
annotations/Azaion.Common/DTO/DetectionClass.cs
T
Alex Bezdieniezhnykh c314268d1e added better logging to python
add day / winter / night switcher
2025-02-17 18:41:18 +02:00

31 lines
594 B
C#

using System.Windows.Media;
using Azaion.Common.Extensions;
using Newtonsoft.Json;
namespace Azaion.Common.DTO;
public class DetectionClass
{
public int Id { get; set; }
public string Name { get; set; } = null!;
public string ShortName { get; set; } = null!;
public PhotoMode PhotoMode { get; set; }
[JsonIgnore]
public Color Color => Id.ToColor();
[JsonIgnore] //For UI
public int ClassNumber => Id + 1;
[JsonIgnore]
public SolidColorBrush ColorBrush => new(Color);
}
public enum PhotoMode
{
Regular = 0,
Winter = 20,
Night = 40
}