mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:56:31 +00:00
35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using System.Windows.Media;
|
|
using Azaion.Common.Database;
|
|
|
|
namespace Azaion.Common.DTO;
|
|
|
|
// public class AnnotationResult
|
|
//{
|
|
//public Annotation Annotation { get; set; }
|
|
|
|
|
|
//public string ImagePath { get; set; }
|
|
//public string TimeStr { get; set; }
|
|
|
|
//public List<(Color Color, double Confidence)> Colors { get; private set; }
|
|
// public string ClassName { get; set; }
|
|
|
|
// public AnnotationResult(Dictionary<int, DetectionClass> allDetectionClasses, Annotation annotation)
|
|
// {
|
|
|
|
//Annotation = annotation;
|
|
|
|
//TimeStr = $"{annotation.Time:h\\:mm\\:ss}";
|
|
//ImagePath = annotation.ImagePath;
|
|
|
|
// var detectionClasses = annotation.Detections.Select(x => x.ClassNumber).Distinct().ToList();
|
|
// ClassName = detectionClasses.Count > 1
|
|
// ? string.Join(", ", detectionClasses.Select(x => allDetectionClasses[x].UIName))
|
|
// : allDetectionClasses[detectionClasses.FirstOrDefault()].UIName;
|
|
//
|
|
// Colors = annotation.Detections
|
|
// .Select(d => (allDetectionClasses[d.ClassNumber].Color, d.Confidence))
|
|
// .ToList();
|
|
|
|
// }
|
|
// } |