问题
From what I understand (I could be wrong) Pix.LoadFromFile
is the only way to get Pix for processing. is there any other way, such as from a bitmap?
回答1:
I am not professional in tesseract, but you can use the following:
Bitmap bmp = (Bitmap)Bitmap.FromFile(MyImgFilePath);
Pix img = PixConverter.ToPix(bmp);
you can take a look at source code of PixConverter at :
https://github.com/charlesw/tesseract/blob/master/src/Tesseract/PixConverter.cs
来源:https://stackoverflow.com/questions/26162169/tesseract-net-process-image-from-memory-object