Closed DamianPaniagua closed 8 months ago
No problem!
So, the way template matching works is that OpenCV only matches what you provide it. I chose not to grab the entire button or area for most things because of what you mentioned. Different styles and sizes might mess it up. So here, it really only needs the small portion that says "Continue" in order to be able to find it. It also converts things to grayscale before looking so the color shouldn't matter either. Let me test this and see if I can get a fix out soon
Thanks again for making an issue!
(Deleted last comment think I put wrong file)
Hey, I was able to fix it myself by using ShareX to capture the button with my styling but using the exact amount of pixels and then replacing the original "continue_button.png" image.
I replaced it using this image and now everything worked perfectly. Thank you.
(Deleted last comment think I put wrong file)
Hey, I was able to fix it myself by using ShareX to capture the button with my styling but using the exact amount of pixels and then replacing the original "continue_button.png" image.
I replaced it using this image and now everything worked perfectly. Thank you.
Nice fix!
I think I'm going to play around with doing a bit of fuzzy matching or something so you shouldn't have to do that. It might be a bit too precise at the moment and so different size monitors or resolutions might be giving it some issue
Now that I think of it I am probably a niche case haha. I am using 1440p monitors but also using remote desktop to run this on my second computer. So very possible my UI is unique.
For some reason my own image didn't work when I tried it today lol I retook the image and tried that without issue. Also modified how the template matching works to make it a bit fuzzier so that hopefully any differences in resolution/font won't matter as much. But, frankly, this one is a little hard to accurately test so it very well could break again :/
(Thank you for fixing other issues swiftly!)
Upon running "Free_Games_V2.py" It proceeds perfectly until hitting the mature content screen.
I may be wrong but this may be due to updated or just differing UI styles for users?
Here is a picture of what "continue_button.png" looks like versus my UI.