Commit c9cecc48 刘韬

添加 loadModeleMem

1 个父辈 d35469d2
...@@ -58,7 +58,7 @@ namespace Asa ...@@ -58,7 +58,7 @@ namespace Asa
/// 算法名称对索引应序号 /// 算法名称对索引应序号
/// </summary> /// </summary>
public static Dictionary<string, int> AlgoIndex = new Dictionary<string, int>(); public static Dictionary<string, int> AlgoIndex = new Dictionary<string, int>();
static string[] sOptions = { "IP_DEFAULT_PARTS", "IP_SMALL_PARTS", "IP_LARGE_PARTS", "IP_LONG_PARTS", "IP_SQUARE_PARTS", "", "IP_DYNAMIC_SP1", "IP_DYNAMIC_SP2" }; static string[] sOptions = { "IP_DEFAULT_PARTS", "IP_SMALL_PARTS", "IP_LARGE_PARTS", "IP_LONG_PARTS", "IP_SQUARE_PARTS", "", "IP_DYNAMIC_SP1", "IP_DYNAMIC_SP2", "IP_Template_PARTS" };
/// <summary> /// <summary>
/// 返回算法索引序列 /// 返回算法索引序列
/// </summary> /// </summary>
...@@ -468,6 +468,11 @@ namespace Asa ...@@ -468,6 +468,11 @@ namespace Asa
//测试移除模板 //测试移除模板
eyemRemoveModelByName(hModelIDs, file); eyemRemoveModelByName(hModelIDs, file);
} }
public static void LoadTemplateModel(int index,string file)
{
//测试移除模板
loadModeleMem(index, file, hModelIDs);
}
public static Bitmap tplToBitmap(string tplfile, out double MatchDeg) public static Bitmap tplToBitmap(string tplfile, out double MatchDeg)
{ {
......
...@@ -90,6 +90,9 @@ namespace Asa ...@@ -90,6 +90,9 @@ namespace Asa
//通过名称移除模板 //通过名称移除模板
[DllImport("eyemLib.dll", CharSet = CharSet.None, CallingConvention = CallingConvention.Cdecl)] [DllImport("eyemLib.dll", CharSet = CharSet.None, CallingConvention = CallingConvention.Cdecl)]
internal static extern int eyemRemoveModelByName( IntPtr hModelID, string ccTplName); internal static extern int eyemRemoveModelByName( IntPtr hModelID, string ccTplName);
//将模版载入多盘点料的位置
[DllImport("eyemLib.dll", CharSet = CharSet.None, CallingConvention = CallingConvention.Cdecl)]
internal static extern int loadModeleMem(int index, string ccTplName,IntPtr hModelID);
/// <summary> /// <summary>
/// 结束之前的算法计算 /// 结束之前的算法计算
/// </summary> /// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!