Browse Source

Change ImreadModes.Color to ImreadModes.ColorBgr

pull/768/merge 4.11.0
Canming Huang 1 month ago
parent
commit
9493f5962d
  1. 2
      Emgu.CV/PInvoke/Unity/TextureConvert.cs

2
Emgu.CV/PInvoke/Unity/TextureConvert.cs

@ -56,7 +56,7 @@ namespace Emgu.CV
byte[] jpgBytes = texture.EncodeToJPG();
using (Mat tmp = new Mat())
{
CvInvoke.Imdecode(jpgBytes, ImreadModes.Color, tmp);
CvInvoke.Imdecode(jpgBytes, ImreadModes.ColorBgr, tmp);
if (dstColorType == null || dstColorType == typeof(Bgr))
tmp.CopyTo(result);
else

Loading…
Cancel
Save