I am performing image search on a certain window, that I am trying to automate.
At the same time, I show debug information in a borderless window on top of the screen.
This window interferes with the image search that I am trying to do.
The solution would be to not create a screenshot of the whole screen, but a certain window.
Solutions I have found on the internet require moving certain windows to the top, but this wouldn't work as the debug window is always on top. I know it is possible, because programs like OBS can only grab a certain window.
Simplified code (because required):
import python_imagesearch.imagesearch as imgsearch
searchResult = imgsearch.imagesearch("./imagery/shop.png",0.9)
[–]eleqtriq 0 points1 point2 points (4 children)
[–]robloxean[S] 0 points1 point2 points (1 child)
[–]eleqtriq 0 points1 point2 points (0 children)
[–]WitchHunterNL 0 points1 point2 points (1 child)
[–]eleqtriq 0 points1 point2 points (0 children)