简体   繁体   English

Emgu图片 <Bgr,byte> 参数无效

[英]Emgu Image<Bgr,byte> Parameter not valid

Here is the problem I met. 这是我遇到的问题。 I had created a class for processing images and return the text inside. 我创建了一个用于处理图像的类,并返回其中的文本。

But when I start using Image<Bgr, byte> , it returns 但是当我开始使用Image<Bgr, byte> ,它返回

Parameter is not valid. 参数无效。

The other classes are no problem on this except cropping and OCR find text. 除裁剪和OCR查找文本外,其他类别对此都没有问题。 I can't figure out why the same code processing the same image might cause this. 我不知道为什么相同的代码处理相同的图像可能会导致这种情况。 Anyone can help? 有人可以帮忙吗? Please? 请?

在此处输入图片说明

OK, here I had figured out what is the problem. 好的,我在这里找出了问题所在。 If the file loaded is not in .bmp format (Bitmap) and just use it directly into EmguCV (such as just reading a .jpg or .png file into System.Drawing.Image and convert it into Bitmap), it will shows parameter invalid because of invalid format of image. 如果加载的文件不是.bmp格式(位图),而只是直接将其用于EmguCV(例如,将.jpg或.png文件读入System.Drawing.Image并将其转换为位图),则它将显示参数无效由于图片格式无效。 Or maybe is my image source from a random Snipping Tool screenshot causing this problem. 也许是我的随机截图工具截图中的图像源导致了此问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将类型“Emgu.CV.Mat”转换为“Emgu.CV.Image”<emgu.cv.structure.bgr, byte> '</emgu.cv.structure.bgr,> - Convert type 'Emgu.CV.Mat' to 'Emgu.CV.Image<Emgu.CV.Structure.Bgr, byte>' 如何将捕获转换为图像 <Bgr,Byte> 使用Emgu库 - How to convert Capture to Image<Bgr,Byte> using Emgu library 转换 'Emgu.CV.Image<emgu.cv.structure.bgr,byte> ' 到 'System.Drawing.Image'</emgu.cv.structure.bgr,byte> - Converting 'Emgu.CV.Image<Emgu.CV.Structure.Bgr,byte>' to 'System.Drawing.Image' 如何将.NET图像或字节数组转换为Emgu.CV.Image <Emgu.CV.Structure.Bgr , byte > - How can I convert .NET Image or Byte Array to Emgu.CV.Image<Emgu.CV.Structure.Bgr , byte > 不能隐式转换类型 &#39;Emgu.CV.Image<Emgu.CV.Structure.Bgr, byte> &#39; 到 &#39;System.Drawing.Image&#39; - Cannot implicitly convert type 'Emgu.CV.Image<Emgu.CV.Structure.Bgr, byte>' to 'System.Drawing.Image' EmguCV捕获错误:无法将类型&#39;Emgu.CV.Mat&#39;隐式转换为&#39;Emgu.CV.Image <Emgu.CV.Structure.Bgr,byte> - EmguCV capture error: Cannot implicitly convert type 'Emgu.CV.Mat' to 'Emgu.CV.Image<Emgu.CV.Structure.Bgr,byte> 将字节[]转换为图像<Bgr, Byte> - Convert a byte [] to Image<Bgr, Byte> Emgu CV - 将灰度图像组合成单个 Bgr 图像 - Emgu CV - Combining greyscale images into single Bgr image 将byte []转换为Emgu / OpenCV图像 - Convert a byte[] into an Emgu/OpenCV Image 如何将图像类型转换为图像<Bgr, Byte> ? - How to convert Image type to Image<Bgr, Byte>?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM