[英]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.