mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:46:30 +00:00
288a34e992
differentiate already processed videos
32 lines
879 B
C#
32 lines
879 B
C#
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; }
|
|
|
|
[JsonIgnore]
|
|
public string TimeStr => $"{Time:h\\:mm\\:ss}";
|
|
|
|
[JsonProperty(PropertyName = "p")]
|
|
public double Percentage { get; set; }
|
|
|
|
public double Lat { get; set; }
|
|
public double Lon { get; set; }
|
|
public List<YoloLabel> Labels { get; set; } = new();
|
|
|
|
|
|
public AnnotationResult() { }
|
|
public AnnotationResult(TimeSpan time, string timeName, List<YoloLabel> labels)
|
|
{
|
|
Labels = labels;
|
|
Time = time;
|
|
Image = $"{timeName}.jpg";
|
|
Percentage = 100;
|
|
}
|
|
} |