public void InitialEngine() { if (MyEngine == null) { MyEngine = new HDevEngine(); } MyEngine.SetProcedurePath(Environment.CurrentDirectory + "\\Engine\\"); MyEngine.SetEngineAttribute("execute_procedures_jit_compiled", "true"); engineIsnitial = true; }
/// <summary> /// Initialize halcon procedures /// </summary> public static void InitializeProcedures() { hDevEngine.SetEngineAttribute("execute_procedures_jit_compiled", "true"); hDevEngine.SetProcedurePath(Directory.GetCurrentDirectory()); HDevProcedure hDevProcedureCheckColor = new HDevProcedure("CheckColor"); hDevprocedureCallCheckColor = new HDevProcedureCall(hDevProcedureCheckColor); HDevProcedure hDevProcedureCreateLogos = new HDevProcedure("CreateLogos"); hDevprocedureCallCreateLogos = new HDevProcedureCall(hDevProcedureCreateLogos); HDevProcedure hDevProcedureCheckLogos = new HDevProcedure("CheckLogos"); hDevprocedureCallCheckLogos = new HDevProcedureCall(hDevProcedureCheckLogos); HDevProcedure hDevProcedureCheckText = new HDevProcedure("CheckText"); hDevProcedureCallCheckText = new HDevProcedureCall(hDevProcedureCheckText); HDevProcedure hDevProcedureCheckShapes = new HDevProcedure("CheckShapes"); hDevProcedureCallCheckShapes = new HDevProcedureCall(hDevProcedureCheckShapes); }