Tesseract .NET 从内存对象处理图像 [英] Tesseract .NET Process image from memory object

查看:23
本文介绍了Tesseract .NET 从内存对象处理图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知(我可能是错的)Pix.LoadFromFile 是获取 Pix 进行处理的唯一方法.有没有其他方法,例如从位图?

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?

推荐答案

我不是tesseract专业的,但是你可以使用以下:

I am not professional in tesseract, but you can use the following:

Bitmap bmp = (Bitmap)Bitmap.FromFile(MyImgFilePath); 
Pix img = PixConverter.ToPix(bmp);

您可以在以下位置查看 PixConverter 的源代码:
https://github.com/charlesw/tesseract/blob/master/src/Tesseract/PixConverter.cs

you can take a look at source code of PixConverter at :
https://github.com/charlesw/tesseract/blob/master/src/Tesseract/PixConverter.cs

这篇关于Tesseract .NET 从内存对象处理图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆