新建OpenCVSharp4工程流水账

nuget搜索后安装(两个都要)

新建OpenCVSharp4工程流水账

指定输出x64可执行文件

新建OpenCVSharp4工程流水账

代码

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenCvSharp;

namespace NetCV
{
	class Program
	{
		static void Main(string[] args)
		{
			var bmp = new Mat("素材/0007351441.JPG",ImreadModes.Grayscale);
			Cv2.ImShow("素材", bmp);
			Cv2.WaitKey(0);
			bmp.Dispose();
		}
	}
}

相关文章:

  • 2021-12-04
  • 2022-01-20
  • 2021-06-04
  • 2021-09-24
  • 2021-11-14
  • 2021-12-09
  • 2021-10-19
  • 2021-11-07
猜你喜欢
  • 2022-12-23
  • 2021-10-09
  • 2021-07-14
  • 2022-12-23
  • 2021-08-10
  • 2022-01-12
  • 2021-11-24
相关资源
相似解决方案