io commander
This commit is contained in:
@@ -141,8 +141,18 @@ namespace VisionBuilder.UI.Recipes.HawkeyeRecipe
|
||||
|
||||
|
||||
var sw = Stopwatch.StartNew();
|
||||
_workflow.Context.CancellationToken= token;
|
||||
_workflow.ImageSource= _imageSource;
|
||||
_workflow.Execute();
|
||||
try
|
||||
{
|
||||
_workflow.Execute();
|
||||
}
|
||||
catch (Exception e) when(token.IsCancellationRequested)
|
||||
{
|
||||
sw.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
sw.Stop();
|
||||
|
||||
if (sw.ElapsedMilliseconds < _recognitionConfiguration.MinimumProcessingTime)
|
||||
|
||||
Reference in New Issue
Block a user