专为屏幕阅读OCR引擎 [英] OCR engines designed for screen-reading

查看:204
本文介绍了专为屏幕阅读OCR引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有专为识别屏幕所拍摄的图像,而不是扫描的文本文本的OCR引擎?我有一个项目,我需要检索和应用程序识别的文本,并且没有一个OCR引擎我到目前为止已经试过都很好流线型与截图。

Are there any OCR engines designed for identifying text in screen-captured images rather than scanned text? I have a project where I need to retrieve and identify text in an application, and none of the OCR engines I've tried so far have faired well with screenshots.

在理想情况下,发动机应该工作以及与颜色和背景噪声,但我可以做一些津贴,如果没有像可用。

Ideally the engine should work well with color and with background noise, although I can make some allowances if nothing like that is available.

这将需要.NET兼容;无论是写在.NET或具有.NET可调用的API。

It will need to be .NET compatible; either written in .NET or having a .NET-callable API.

推荐答案

我发现的的tesseract OCR 为pretty的实为一个开源项目。我发现,它甚至可以读取和德code简单的Captcha的,如互联星空的。我倒是觉得有一点扭捏这可能是工作pretty的好。

I've found Tesseract OCR to be pretty solid for an open source project. I've found that it can even read and decode simple captchas, like Megaupload's. I'd think with a little tweaking this could work pretty well.

唯一痛苦的是,它仅接受pssed TIFF图像uncom $ P $,这将非常烦人。

The only pain is that it only accepts uncompressed TIFF images, which can be annoying.

编辑:菲利普Daubmeier已经找到了.NET的集成,但低于为code到A位图转换为uncom pressed TIFF

Philip Daubmeier already found a .NET integration, but below is code to convert a Bitmap to uncompressed TIFF.

private void ConvertBitmapToTIF(Bitmap convert)
{
    ImageCodecInfo codecInfo = GetEncoderInfo("image/tiff");
    System.Drawing.Imaging.Encoder encodeCom = System.Drawing.Imaging.Encoder.Compression;
    System.Drawing.Imaging.Encoder encodeBPP = System.Drawing.Imaging.Encoder.ColorDepth;

    EncoderParameters parms = new EncoderParameters(2);
    EncoderParameter param0 = new EncoderParameter(encodeCom, (long)EncoderValue.CompressionNone);
    EncoderParameter param1 = new EncoderParameter(encodeBPP, 8L);
    parms.Param[0] = param0;
    parms.Param[1] = param1;

    convert.Save("output.tif", codecInfo, parms);
}

这保存到一个文件,但位图。保存方法可以写入流也。

This saves to a file, but the Bitmap.Save method can write to a stream also.

这篇关于专为屏幕阅读OCR引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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