How can I save an Emgu Image<Bgr, Byte> frame
in a memory stream as JPEG?
Opencv – How to save an Emgu `Image frame` in a memory stream as JPEG
computer visionemgucvopencvopencvdotnet
computer visionemgucvopencvopencvdotnet
How can I save an Emgu Image<Bgr, Byte> frame
in a memory stream as JPEG?
Best Answer
You have two options the first is the native EMGU images.save("filename"); method however the quality is not great and lossy. The best method is to use the following c# method.
This is the function is saveJpeg(SaveFile.FileName, img.ToBitmap(), 100);. Based on the method saveJpeg(string path, Bitmap img, long quality).
hope this helps,
Cheers,
Chris