namespace Ocr.Report.Models; public readonly struct ImageStats { public string ImageName { get; } public ICollection Reference { get; } public ICollection Processors { get; } public ImageStats( string imageName, ICollection taggedWords, IEnumerable scanResult ) { Reference = taggedWords; ImageName = imageName; Processors = scanResult .Select(t => { var (elapsed, words) = t.GetData(); return new ProcessorStat(t.ProcessorName, elapsed, taggedWords, words); }) .ToArray(); } }