Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you use this to search for sprites and not just icons ? #21

Open
Demokdawa opened this issue Mar 30, 2020 · 2 comments
Open

Can you use this to search for sprites and not just icons ? #21

Demokdawa opened this issue Mar 30, 2020 · 2 comments

Comments

@Demokdawa
Copy link

I read all of your tutorial about you wakfu-bot, and i was wondering if you used this image-search function to actually search ressources on the screen, or if you just click on every position at random and wait for a collect icon to appear ?

Thx in advance for your answer !

@drov0
Copy link
Owner

drov0 commented Mar 30, 2020

clicking on every position on the screen would be awfully inefficient, I search for the element I want to click and then once imagesearch gives me the position, I click on it.

@Demokdawa
Copy link
Author

Demokdawa commented Mar 30, 2020

First, thanks for answering me !

Thats exactly what i though !

Before using your module, i tried to template match sprites using openCV, but i couldn't get things detected properly (like i was detecting the sprit, but also things in nearly black part of the screen and lots of noise, even if it not contains the sprite at all, or it's a totally different color). But i didn't worked.

So i'm trying now your approach (and looking at the code, it seems to be something lookalike), and i doesn't get anything on the screen. I think it would work perfectly on icons since they don't change, but for sprites, do i need to capture the sprite ? Or only a part of the sprite ? Or the sprite and the surrounding ?

I even used masks and it still catched things that are totally not lookalike the sprite :/

choux

choux_mask

testscreen10

Thanks in advance for being so quick to answer !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants