long candy support

This commit is contained in:
meelstorm
2025-08-28 16:30:52 +02:00
parent bf13a5ea2d
commit d52c844b5d
24 changed files with 1714 additions and 16 deletions

View File

@@ -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();

View File

@@ -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();
}
}

View File

@@ -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();
}