1

Does anyone know of any libraries or ideas how to achieve screen captures which can then be used with OCR?

What I need is to be able to record 3 or 4 rectangles on the screen (ignoring outside these areas) which can then be used to recognise the text which will hopefully appear inside these areas at some point on time.

Ideally vb.net / c#.net or similar would be useful...

Does anyone have any experience with this, or could offer some useful advise?

Many thanks

3
  • What are you trying to accomplish? There is more than likely an easier way to do it.
    – Chriszuma
    Jul 8, 2011 at 19:02
  • I am looking to recognise shapes and text from an image in certain parts of the screen. Basically there are a number of labels on a machine which is being watched via a camera on a PC. At various points there will be labels appearing and I want to create some software which will pick these up from the PC.
    – cosmarchy
    Jul 9, 2011 at 16:19
  • That actually sounds like an interesting problem. Unfortunately your question came off as somewhat obscure and uninteresting. I suggest resubmitting your question, framed as more of a machine vision problem, and explain what you are trying to do. Getting the "rectangle" screen capture shouldn't really be the focus of the problem.
    – Chriszuma
    Jul 11, 2011 at 13:45

1 Answer 1

1

If you know the coordinates of those rectangles, you can send them along with the image to Tesseract engine for OCR. Tesseract exposes an API method that takes an image and rectangular coordinates.

You can use its .NET wrappers: tessnet2 for Tess 2.04 and tesseractdotnet for Tess 3.01.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.