-
Notifications
You must be signed in to change notification settings - Fork 76
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
Image Match return True when the images have different color. #140
Comments
Lackey (and Sikuli, if I'm not mistaken) converts the images to greyscale for comparison to improve performance. If you're interested in checking the color of a point, you can try using the Location.getColor() method. |
For reference, the code snippet you linked is to the older naive matcher; the Pyramid matcher, based on the same algorithm Sikuli uses, is the one that converts to greyscale first: lackey/lackey/TemplateMatchers.py Lines 71 to 88 in 7adadfa
|
Got, Convert to grayscale for performance reason. |
At a casual glance, I think this is related to improvements noted in #136, where Sikuli now supports transparent images as masks. I'll do some research on this. |
lackey/lackey/TemplateMatchers.py
Line 24 in 7adadfa
the app gui have some image buttons, when click them, their color will become yellow from blue.
the find() or exists() function will return the match info, when the button is blue, and the match image is yellow, this is incorrect.
but if inverse, the button is yellow, and the match image is blue, the function doesn't find anything. this is correct.
why?
I compare lackey with SikuliX1's source code (doFindMatch() in Finder2.java), but cannot get any idea.
The text was updated successfully, but these errors were encountered: