OpenCvSharp是封装了OpenCV的.net版本

项目地址:https://github.com/shimat/opencvsharp

简单使用:

1、NuGet安装

OpenCvSharp尝试

2、使用OpenCvSharp打开一张图片,需要添加 OpenCvSharp 命名空间

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

namespace OpenCvDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            Mat source = new Mat(@"F:\Test\OpenCvDemo\OpenCvDemo\p.jpg", ImreadModes.Color);
            Cv2.ImShow("Demo", source);
            Cv2.WaitKey(0);

        }
    }
}

运行结果:

OpenCvSharp尝试

 

相关文章:

  • 2021-09-15
  • 2021-10-22
  • 2021-06-28
  • 2021-05-18
  • 2021-09-03
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-01-10
  • 2021-11-05
  • 2021-08-05
  • 2022-12-23
  • 2021-12-10
  • 2021-07-24
  • 2021-09-05
相关资源
相似解决方案