OpenCvSharpSlim画中文

github地址:https://github.com/AvenSun/OpenCvSharpSlim

Slim Build of OpenCvSharp

OpenCvSharpSlim

  • This project provides the slim build of OpenCvSharp native library .

  • Currently there’re binary packages for OpenCvSharp 2.4.103.4.20 ,4.8.0 and 4.8.1.

  • The unit tests (339) for the most commonly used functions have all passed.

  • Webp, Tiff reading and saving are not included.

  • Drawing Chinese/Japanese is supported . High performance,It’s less 1 millisecond.

  • Add Nuget package.

Drawing Demo

For details, you can refer to example. If you like this project, you can give it a star.

Mat src = new(600, 800, MatType.CV_8UC3, Scalar.Wheat);
var pos = new Point(60, 80);
Slim.PutTextUnicode(src, "☆★中華人民共和國★☆γε", pos, Scalar.Red, 36);
Slim.PutTextUnicode(src, "●中華の台頭のために本を読む●",pos + new Point(0,80), Scalar.Black, 26);
Slim.PutTextUnicode(src, "OpenCvSharpSlim", pos + new Point(0, 160), Scalar.Purple, 26, underline:true);
Slim.PutTextUnicode(src, "Runtime For Windows", pos + new Point(0, 240), Scalar.Blue, 26, italic: true);

 

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
社会演员多的头像社会演员多普通用户
上一篇 2023年12月6日
下一篇 2023年12月6日

相关推荐