changes to reportgenerator
This commit is contained in:
@@ -123,15 +123,10 @@ public class ReportGenerator : IDisposable
|
|||||||
{
|
{
|
||||||
var imgPath = Path.Combine("results", $"{processor.Name}.00.{stat.ImageName}.png");
|
var imgPath = Path.Combine("results", $"{processor.Name}.00.{stat.ImageName}.png");
|
||||||
|
|
||||||
string summarizedCer = string.Empty;
|
|
||||||
summarizedCer = processor.Words
|
|
||||||
.Average(s => s.Distance)
|
|
||||||
.ToString("F2");
|
|
||||||
|
|
||||||
table.AppendRow(processor.Words
|
table.AppendRow(processor.Words
|
||||||
.Select(s => s.ToString() ?? string.Empty)
|
.Select(s => s.ToString() ?? string.Empty)
|
||||||
.Prepend(Document.FormatImage(imgPath, new Bounds(0, 150)))
|
.Prepend(Document.FormatImage(imgPath, new Bounds(0, 150)))
|
||||||
.Prepend(summarizedCer)
|
.Prepend(processor.Words.Average(s => s.Distance).ToString("F2"))
|
||||||
.Prepend($"{processor.Distance * 100:F1}%")
|
.Prepend($"{processor.Distance * 100:F1}%")
|
||||||
.Prepend($"{processor.ProcessingTime * 1000:F1}ms")
|
.Prepend($"{processor.ProcessingTime * 1000:F1}ms")
|
||||||
.Prepend(processor.Name)
|
.Prepend(processor.Name)
|
||||||
|
|||||||
Reference in New Issue
Block a user