So, I'm using tesseract, with this implementation https://github.com/charlesw/tesseract
The code to get text from an image is,
Bitmap img = new Bitmap("image.JPG");
TesseractEngine engine = new TesseractEngine("tessdata", "eng", EngineMode.Default);
Page page = engine.Process(img, PageSegMode.Auto);
string result = page.GetText();
Console.WriteLine(result);
And that works as expected, but the thing is what I want is for the program to continuously watch the screen and get any text that comes up in real time.
Now, what I could do, I guess, is take a screenshot every iteration of the theoretical loop I'm gonna make, replace the old image and just scan the new one for text.
That seems rather inefficient what with the constant creation of new screenshots and replacing the old.
So, what I'd like to know is just... is there any way to scan the screen at all times, without having to make screenshots?
Perhaps somehow turn the contents of the screen into a Bitmap directly, so that Bitmap img = new Bitmap("image.JPG");
can be skipped?