How to convert Bitmap to Image

后端 未结 5 1072
我寻月下人不归
我寻月下人不归 2021-01-01 22:17

I am using the OpenCV library for image processing.

I want to convert a System.Drawing.Bitmap to an Image. How can I do th

5条回答
  •  有刺的猬
    2021-01-01 23:11

    I'm using Emgu 4.3.0.3890 and I had the same problem I integrated my code with my team. The line that gave me trouble was:

    Image img = bitmap.ToImage();
    

    I didn't see that the build created two new directories named x86 and x64. When I discovered it, I added these two directories to the location of my binary files and every thing worked. I didn't have the time to to elimination to see which one of the files in these directories is responsible for it but hey, it worked. :-)

提交回复
热议问题