C#联合halcon海康威视相机(缩放,平移)实现模板匹配

上传者: 36683522 | 上传时间: 2024-06-27 16:29:55 | 文件大小: 28.4MB | 文件类型: ZIP
开发环境:vs2022 halcon 23.0.5 海康提供的类;MVCamera.cs 实例化海康提供的类,获取图像,然后在halcon 中实现模板匹配。 自己做一个test.shm模板存储在debug文档中,就可以实现模板匹配。 【核心代码】 1.定义相机对象,可以实现图像缩放平移,有些smartwindow 不稳定,可以换成Hwindcontrol控件显示 public Form1() { InitializeComponent(); hwindow = hSmartWindowControl1.HalconWindow;//初始化窗口变量s w_width = hSmartWindowControl1.Size.Width; w_height = hSmartWindowControl1.Size.Height; this.MouseWheel = new System.W

文件下载

资源详情

[{"title":"( 54 个子文件 28.4MB ) C#联合halcon海康威视相机(缩放,平移)实现模板匹配","children":[{"title":"test - mvs - ver2.0","children":[{"title":"Form1.Designer.cs <span style='color:#111;'> 15.26KB </span>","children":null,"spread":false},{"title":"MVCamera.cs <span style='color:#111;'> 234.77KB </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 46.78KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x64","children":[{"title":"Debug","children":[{"title":"test.csproj.CoreCompileInputs.cache <span style='color:#111;'> 66B </span>","children":null,"spread":false},{"title":"test.exe <span style='color:#111;'> 113.50KB </span>","children":null,"spread":false},{"title":"test.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"test.pdb <span style='color:#111;'> 185.50KB </span>","children":null,"spread":false},{"title":"test.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"test.csproj.GenerateResource.cache <span style='color:#111;'> 126B </span>","children":null,"spread":false},{"title":"test.csproj.CopyComplete <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false}],"spread":false},{"title":".NETFramework,Version=v4.0.AssemblyAttributes.cs <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":".NETFramework,Version=v4.8.AssemblyAttributes.cs <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"test.csproj.AssemblyReference.cache <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":".NETFramework,Version=v4.7.2.AssemblyAttributes.cs <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 130B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":".NETFramework,Version=v4.8.AssemblyAttributes.cs <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"test.csproj.AssemblyReference.cache <span style='color:#111;'> 5.95KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 137B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test.csproj <span style='color:#111;'> 4.76KB </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"test.csproj.dtbcache.json <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"v17","children":[{"title":".suo <span style='color:#111;'> 67.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"FileContentIndex","children":[{"title":"065517cd-a47e-4b27-bbb7-7aa9ae8bc60b.vsidx <span style='color:#111;'> 53.42KB </span>","children":null,"spread":false},{"title":"26c9ad04-0b98-4ab5-84f0-2bfc1691724a.vsidx <span style='color:#111;'> 45.77KB </span>","children":null,"spread":false},{"title":"e7b6cc22-95c0-4593-9f49-38839518fc6c.vsidx <span style='color:#111;'> 114.53KB </span>","children":null,"spread":false},{"title":"99bb2be6-601a-4ea1-8304-3a3465f41e2c.vsidx <span style='color:#111;'> 65.02KB </span>","children":null,"spread":false},{"title":"286aa5a8-af62-4af5-a1f7-3a4ca11bc42c.vsidx <span style='color:#111;'> 64.61KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"test.sln <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Release","children":null,"spread":false},{"title":"x64","children":[{"title":"Release","children":null,"spread":false},{"title":"Debug","children":[{"title":"test.exe <span style='color:#111;'> 113.50KB </span>","children":null,"spread":false},{"title":"test.pdb <span style='color:#111;'> 185.50KB </span>","children":null,"spread":false},{"title":"test.exe.config <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"halcondotnet.dll <span style='color:#111;'> 1.41MB </span>","children":null,"spread":false},{"title":"MvCamCtrl.Net.dll <span style='color:#111;'> 112.00KB </span>","children":null,"spread":false},{"title":"test.shm <span style='color:#111;'> 103.52KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Debug","children":[{"title":"WindowsFormsApp1.exe.config <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"WindowsFormsApp1.exe <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false},{"title":"WindowsFormsApp1.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"halcondotnet.dll <span style='color:#111;'> 1.41MB </span>","children":null,"spread":false},{"title":"MvCamCtrl.Net.dll <span style='color:#111;'> 112.00KB </span>","children":null,"spread":false},{"title":"halcon.dll <span style='color:#111;'> 59.31MB </span>","children":null,"spread":false},{"title":"hAcqGigEVision2.dll <span style='color:#111;'> 4.88MB </span>","children":null,"spread":false},{"title":"test.shm <span style='color:#111;'> 103.52KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"CAutoGL.cs <span style='color:#111;'> 118.59KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明