Something on the computer tells the overlay what cards in in what positions and the cards slots are in fixed locations on the screen, then you just need bounding boxes. No need to “read” the screen.
Not sure if I can find them again, will look if I get time