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
Parameter is not valid.
The other classes are no problem on this except cropping and OCR find text. 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. Or maybe is my image source from a random Snipping Tool screenshot causing this problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.