Hello, so my Imagesearch works good with multiple colors as long as the image to detect is on the same place where it was when i captured the reference image.
i took some screenshots to make it clear:
I want to detect the face of the wizard that is 2 squares to my right ( i took the screenshots on this same position) Result= Success.
https://gyazo.com/fe74dd958b99e32fa371687141316d4e
As soon as i move the mage's spot ( is not located 2 squares to my right) the search fails
https://gyazo.com/3d0f00e302914740fb01b024522ef63a
However, if the image i choose to capture is just pure black (inner face of the wizzard robe), it will detect it all around the screen with no mistake
https://gyazo.com/7f6f7e6832d3af7a24b9627f109b9318
Conclusions
Single color pixel group will be found all around the screen no matter what
Multiple color pixel groups will be found only if they are located on the same spot where the picture was taken from
I tried, adding higher variance, but not even the highest numbers will work ( it start triggering false positives elsewhere even before triggering at my desired position)
also tried CoordMode, Pixel-window-client ect. Also tried loseless image. Everything points to pixels changing relative to my position, but variance should have handled it if that were the issue
Any clue to explain this odd behaviour?
ImageSearch only working with Single color images
Re: ImageSearch only working with Single color images
- the game appears antialiased, so u should look into turning that off first if possible
- the wizard probably has some idle breathing animation, which is why ur screengrabs rarely ever match. u can:
- capture enough frames of the idle animation until it starts looping again
- superimpose the frames and figure out which pixels never change
- create a new needle img made up of only those static pixels and the rest of the pixels masked off(ideally with a color that would rarely if ever appear in-game)
- ImageSearch with that needle img and the *TransColor option set to whatever color u chose to mask the pixels off with