How to convert a rug to an image in (Emgu CV version 3) in C #?

I need to convert Mat to image in Emgu CV. When trying to apply Mat to the image, an exception occurs:Cannot implicitly convert type 'Emgu.CV.Mat' to 'Emgu.CV.Image

Image<Bgr, Byte> imgeOrigenal;

Capture capWebcam = null;

imgeOrigenal = capWebcam.QueryFrame();//error line

How to convert mat to image?

+4
source share
1 answer

The correct answer is the first @David_D comment posted on the question.

 Image<Bgr, Byte> imgeOrigenal = capWebcam.QueryFrame().ToImage<Bgr, Byte>();
+9
source

Source: https://habr.com/ru/post/1625246/


All Articles