long candy support
This commit is contained in:
@@ -34,7 +34,7 @@ namespace VisionBuilder.UI.Recipes.HawkeyeRecipe
|
||||
List<RecipeData> recipes = new List<RecipeData>();
|
||||
foreach (var file in files)
|
||||
{
|
||||
var workFlow = WorkflowList.LoadFromFile(file);
|
||||
var workFlow = WorkflowList.LoadJSONFromFile(file);
|
||||
|
||||
var recipe = new RecipeData
|
||||
{
|
||||
@@ -82,7 +82,7 @@ namespace VisionBuilder.UI.Recipes.HawkeyeRecipe
|
||||
throw new InvalidOperationException("Recognition is already running.");
|
||||
}
|
||||
_loadingService.StartLoading($"Starting recipe {_currentRecipe.RecipeName} on {_recognitionConfiguration.CameraName}...");
|
||||
_workflow = WorkflowList.LoadFromFile("..\\Data\\Recipes\\" + _currentRecipe.RecipeName + ".hrcp");
|
||||
_workflow = WorkflowList.LoadJSONFromFile("..\\Data\\Recipes\\" + _currentRecipe.RecipeName + ".jhrcp");
|
||||
_startTime = DateTime.Now;
|
||||
IsRunning = true;
|
||||
_cts = new CancellationTokenSource();
|
||||
|
||||
@@ -48,16 +48,16 @@ public class OpenCVCanvas:ICanvas
|
||||
|
||||
public void DrawCross(Vector2 location)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
}
|
||||
|
||||
public void DrawNode(Vector2 location)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
}
|
||||
|
||||
public void DrawArrow(Vector2 location, Vector2 direction)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ public static class WorkflowRecipeHelper
|
||||
public static List<string> ListRecipeFiles(string nameFilter)
|
||||
{
|
||||
Directory.CreateDirectory(RECIPES_DIR);
|
||||
var recipes = Directory.GetFiles(RECIPES_DIR, nameFilter+".hrcp");
|
||||
var recipes = Directory.GetFiles(RECIPES_DIR, nameFilter+".jhrcp");
|
||||
return recipes.ToList();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user