Tesseract .NET Process image from memory object

允我心安 提交于 2019-12-21 05:35:15

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!