There are two PNG files.
One (A file) is a 10x10 size file with a red circle.
The other file (B file) has many white circles and one red circle.
At this time, I am looking for a way to find the x and y positions of the red circles in the B file.
--
The reason I need these is in some program I want to find the x,y position that matches a specific image I have.
This can be done using pyautogui.locateAllOnScreen, but I want to apply it to inactive windows. (pyautogui is only used active windows)
So I was looking for a way to take a screenshot of an inactive window and compare it to an image I have.
Please let me know if there is a better way
Thank you
(This was written with Google Translate. There may be errors.)
added I got what I want with the code below.
Check if a template exists using match_template from scikit-image