This repository has been archived on 2024-06-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-01-08 16:23:24 +01:00

28 lines
608 B
C#

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