Are there any free .NET OCR libraries that will run OCR in the application window directly?

I am looking for a free .NET OCR library that can do OCR in a given application window or even an image in memory (I can take a picture of the application window myself).

I looked at tessnet2 and MODI but both require an image located on disk.

I need to use OCR because the application I'm trying to write a script for does some stupid things that cannot be read using the windows API, and I need to clear the data from the screen. I tested both tessnet2 and MODI and both of them can read text mainly, but because it must work in an environment that cannot write to disk, I need it to be able to read directly from the application window or some kind of memory stream .

I think OCR is my only version, but there may be other methods that I don't think about.

Suggestions?

Edit based on comments: Environment is a Windows C # .NET application without disk access. This is an application that has code compiled and executed on the fly, and this code works in a context that does not need any resources other than memory.

+5
source share
1 answer

As you can see from the example Tessnet page, the library needs to pass the Bitmap so that if you create it using the Image.FromStream Method?

You can create a Bitmap object using this constructor: Bitmap Constructor (Stream)

+1
source

All Articles