long candy ready to test
This commit is contained in:
@@ -3,6 +3,7 @@ using Lindt.Colorballs.Duo.Utils;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection.PortableExecutable;
|
||||
using Ninject;
|
||||
@@ -44,6 +45,7 @@ namespace VisionBuilder.UI.Statistics
|
||||
{
|
||||
var endedAt = obj.SessionEnded;
|
||||
_endTime = endedAt;
|
||||
Log.Information("Start processing statistics");
|
||||
_loadingService.StartLoading("Writing statistics for " + _settings.CameraName);
|
||||
try
|
||||
{
|
||||
@@ -56,15 +58,19 @@ namespace VisionBuilder.UI.Statistics
|
||||
finally
|
||||
{
|
||||
_loadingService.StopLoading("Writing statistics for " + _settings.CameraName);
|
||||
Log.Information("End processing statistics");
|
||||
}
|
||||
}
|
||||
|
||||
private void _recognitionControl_ImageProcessed(ImageProcessedEvent obj)
|
||||
{
|
||||
var sw = Stopwatch.StartNew();
|
||||
if (obj.HasError)
|
||||
{
|
||||
RecordBadImage(obj.ErrorNames[0]);
|
||||
}
|
||||
sw.Stop();
|
||||
Console.WriteLine($"Recording statistics took {sw.ElapsedMilliseconds} ms");
|
||||
}
|
||||
|
||||
private void _recognitionControl_SessionStarted(SessionStartedEvent obj)
|
||||
|
||||
Reference in New Issue
Block a user