Re: [Sikuli-driver] [Question #240375]: MinSimilarity setting is implemented incorrectly?
Question #240375 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240375 Status: Open = Answered RaiMan proposed the following answer: Yes it is. To get the similarity score: m = find(button) print m.getScore() -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #240375]: MinSimilarity setting is implemented incorrectly?
Question #240375 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240375 Status: Answered = Solved Eugene S confirmed that the question is solved: Yes, that's it! Thanks a lot RaiMan. Appreciate that! -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #240375]: MinSimilarity setting is implemented incorrectly?
Question #240375 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240375 Status: Answered = Open Eugene S is still having a problem: Hi RaiMan, Thanks a lot for your answer and the explanation. This is very valuable! I'd like to have your opinion on a certain issue I am experiencing with regards to MinSimilarity. I have automated a certain process. To verify that this process was completed successfully, I have to verify that a certain icon color was changed. This is the only indication that the process is complete. I was searching through the launchpad questions for a way to detect colors using Sikuli but it doesn't seem like a trivial task. That's when I tried to iterate through all the appearances of an image on the screen (both colors) using the same image pattern. I have noticed that the images of the same color like the pattern image I was using, are detected with similarity=1.00 and those of the other colors were detected with similarity=0.99. So I thought I can exploit that fact to distinguish between the two images. Do you think it's a possible strategy in my situation? Can I even somehow access the detected image object similarity field? I mean, just to programatically check what's the detected image similarity parameter? Hope I have described my issue clear. :) Thanks again! Eugene S -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #240375]: MinSimilarity setting is implemented incorrectly?
Question #240375 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240375 Status: Open = Answered RaiMan proposed the following answer: Which version of Sikuli? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #240375]: MinSimilarity setting is implemented incorrectly?
Question #240375 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240375 Status: Answered = Open Eugene S is still having a problem: Sorry, forgot to mention. This is 1.0.1. Thanks, Eugene -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #240375]: MinSimilarity setting is implemented incorrectly?
Question #240375 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240375 Status: Open = Answered RaiMan proposed the following answer: ok, I will check it later. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #240375]: MinSimilarity setting is implemented incorrectly?
Question #240375 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240375 RaiMan proposed the following answer: I am just busy with moving the OpenCV related features (find, findAll, onChange, ...), the related Java classes like Finder and the functions implemented on the C++ level completely to the Java level, which is possible now, since OpenCV 2.4.5+ has the option to generate a Java OpenCV API layer and the performance is the same. So I will revise this similarity handling anyway to be consistent all over the place. current situation with 1.0.1: - internally similarity score from OpenCV match is a float number and this is never 1.0 or 0.0 exactly. - What you see with the highlight message is a rounded number (s0.995000 is 1.00 and 0.985000... s 0.995 is 0.99) - the way, how the MinSimilarity setting is used internally is different for find() and findAll() Recommendation: Never use MinSimilarity as 1.0, always use a value 1.0 (usually 0.99 for exact matches is sufficient - but feel free to try other values with more digits like 0.999). The implementation of the Pattern class already assures this internally (exact() evaluates to 0.99). -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp