mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:56:31 +00:00
41 lines
941 B
C#
41 lines
941 B
C#
using System.Windows.Media;
|
|
using Azaion.Common.DTO;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Azaion.Annotator.DTO;
|
|
|
|
public class AnnotationResult
|
|
{
|
|
[JsonProperty(PropertyName = "f")]
|
|
public string Image { get; set; } = null!;
|
|
|
|
[JsonProperty(PropertyName = "t")]
|
|
public TimeSpan Time { get; set; }
|
|
|
|
public double Lat { get; set; }
|
|
public double Lon { get; set; }
|
|
public List<Detection> Detections { get; set; } = new();
|
|
|
|
#region For XAML Form
|
|
|
|
[JsonIgnore]
|
|
public string TimeStr => $"{Time:h\\:mm\\:ss}";
|
|
|
|
[JsonIgnore]
|
|
public string ClassName { get; set; } = null!;
|
|
|
|
[JsonIgnore]
|
|
public Color ClassColor0 { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public Color ClassColor1 { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public Color ClassColor2 { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public Color ClassColor3 { get; set; }
|
|
|
|
#endregion
|
|
|
|
} |