I made a small robot utility: Github
- takes a screen shot
- shows the screen shot in a separate window
- lets user select a rectangular region with mouse
- uses Tesseract OCR to find all text from the selected region
- copies the captured text to clipboard
Code has comments and this robot is easy to configure as an assistant.