简体   繁体   中英

Opencvsharp from IplImage to Bitmap

I am using vs 2013 and I have a opencvsharp 2* from nuget I have these codes:

 public List<IplImage> text = new List<IplImage>();
 ...
 IplImage bit = text[0];
 picturebox.Image = text[0].ToBitmap();

But this lines not accepted :

picturebox.Image = text[0].ToBitmap() ;

ToBitmap is never come Any helps?

Use OpenCvSharp3 , Mat instance and OpenCvSharp.Extensions.BitmapConverter.ToBitmap() extension method. OpenCvSharp2 project is obsolete.

Relevant quote from OpenCvSharp2 README.md :

#OpenCvSharp 2.4.10 Cross platform wrapper of OpenCV 2.4.10 for .NET Framework.

This project is deprecated. The latest release is available in OpenCvSharp.

See OpenCV: IplImage versus Mat, which to use? thread and Mat - The Basic Image Container docs page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM