Closed willwade closed 1 year ago
Reader.read_image()
will accept any arbitrary image, and you can set screen_coordinates
and search_radius
to None to search the entire image. You'll just need to take the screenshot yourself using ImageGrab.grab()
and crop it, similar to Reader._screenshot_nearby()
.
amazing. Thanks
FYI the API for this is now cleaner, see example: https://github.com/wolfmanstout/screen-ocr/blob/master/screen_ocr/__main__.py
Make sure to update to 0.4.0 (just pushed) to take advantage.
Nice code!
I get why you are using radius as a selection technique (as demo'd in your tobii video) - but is there a simple way to just select say a specific rect on the page/. If I use radius I'm going to get stuff I don't need
(I basically am trying to capture the message bar area seen here: https://youtu.be/VPfV0_kevLk?t=69 - rather than all the other squares of words)