scraping display to obtain all on-screen text using OCR
Roger Binns
rogerb at rogerbinns.com
Tue May 11 16:31:07 EDT 2004
Jonathan Epstein wrote:
> I would like to perform a more classical type of "screen scraping"
> than what most people now associate with this term. I only want to
> find all the text on the current screen, and obtain associated screen
> coordinates. This probably must be done using OCR.
>
> This need only run on Windows.
You can use the accessibility APIs to get that information. Start at
http://weblogs.asp.net/oldnewthing/archive/2004/04/23/118893.aspx
> A fairly-pure Python solution would be
> ideal because most of the software which would use this functionality
> is also written in Python.
You may be able to do it using win32all, ctypes or worst case a
SWIG wrapper.
Roger
More information about the Python-list
mailing list