Closed XDSwang closed 4 years ago
@deepio I used it and then
Maybe this is lost in translation? That error says the small image you're looking for is in fact bigger than the large image that's supposed to contain it. Check your image dimensions again.
@deepio Sorry, it suddenly occurred to me that the first one in the front is the little picture, and the second one is the big picture.It was successful
@XDSwang problem solved, you can close the issue now. Or @asweigart you can probably close this issue too.
Then use the locate function from the documentation:
Returns (left, top, width, height) coordinate of first found instance of needleImage in haystackImage. Returns None if not found on the screen.