Re: [Sikuli-driver] [Question #670930]: Algorithm: find from within a list of images
Question #670930 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670930 Alex posted a new comment: Thanks RaiMan, I need to take a closer look at the new toys in 1.1.2. That was much more elegant than my solution. -- You received this question notification because your team Sikuli Drivers 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 #670930]: Algorithm: find from within a list of images
Question #670930 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670930 Status: Answered => Solved alex confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because your team Sikuli Drivers 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 #670930]: Algorithm: find from within a list of images
Question #670930 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670930 RaiMan proposed the following answer: may be this is a bit more straight forward: http://sikulix-2014.readthedocs.io/en/latest/region.html#find-more-than-one-image-in-a-region-at-the-same-time This is more compact and faster than a series of exists(image, 0), since each find op is run in parallel in threads. (faster for more than 3 - 5 images depending on the size of the search region) -- You received this question notification because your team Sikuli Drivers 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 #670930]: Algorithm: find from within a list of images
Question #670930 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670930 alex posted a new comment: Thanks, that definitely does what I need. This seems like a "brute force" approach to the problem. I will have to think about it for a while if there is a more elegant (aka faster) way to do this. -- You received this question notification because your team Sikuli Drivers 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 #670930]: Algorithm: find from within a list of images
Question #670930 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670930 Status: Open => Answered Alex proposed the following answer: This is pretty straight forward, if I understood your question completely: 1. Generate a list of your images: image_search_list = ['img1.png', img2.png', img3.png'...] 2. Cycle through this list in a for loop: for image in image_search_list: if exists(image, 0.2): click(image) break This will cycle through every image in your list. If it is detected, it is clicked. The loop is broken and stops searching after one image is found. You can wrap that in it's own loop with the necessary waits and clicks to get back to this search. You will likely need to play with the search time. I defaulted to 0.2. You can, and likely should make refinements to the process with regions and patterns. Regions can limit your search area which can make your searches faster. You made need to refine the image as a pattern to set your image match percentage (default is a 70% match). Lower the match percentage can speed up the process but may introduce false positives. Again, you will need to experiment. I can answer more questions if you further articulate the question. -- You received this question notification because your team Sikuli Drivers 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