个人网站制作多少钱,百度流量统计,html5网站模板 免费,淮安网站建设公司电话一、Visual Studio 创建新项目 二、选择Windows窗体应用#xff08;.NET Framework#xff09;
直接搜索模板#xff1a;Windows窗体应用(.NET Framework) 记得是C#哈#xff0c;别整成VB(Visual Basic)了
PS#xff1a;若搜索搜不到#xff0c;直接点击安装多个工具和…一、Visual Studio 创建新项目 二、选择Windows窗体应用.NET Framework
直接搜索模板Windows窗体应用(.NET Framework) 记得是C#哈别整成VB(Visual Basic)了
PS若搜索搜不到直接点击安装多个工具和功能 亦或者随便选择一个项目模板创建然后在工具下找到获取工具和功能进行安装即可 三、输入项目名称、保存位置和框架版本 四、安装OpenCvSharp4和OpenCvSharp4.runtime.win拓展包 1安装OpenCvSharp4拓展包 2安装OpenCvSharp4.runtime.win拓展包 五、验证
using System;
using System.Windows.Forms;
using OpenCvSharp;namespace opencv_test1
{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void Form1_Load(object sender, EventArgs e){Mat img1 new Mat(F:\\XPU\\beyond.jpg, ImreadModes.Color);Cv2.ImShow(beyond,img1);Cv2.WaitKey(0);}}
}启动 运行效果