Re: [Sikuli-driver] [Question #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same
Question #667010 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/667010 Lee Yen Liang posted a new comment: Maby I have to find a way to set the colors of the screen to exactly the same on the two computers. -- 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 #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same
Question #667010 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/667010 Lee Yen Liang posted a new comment: With the help of the online photo editor (`https://pixlr.com/editor/`), I found that the colors are slightly different between the image captured on the old MacBook-Pro and the image captured on the new MacBook-Pro. You can compare the two images here( https://ibb.co/ktG9hx). I think this is a problem that is really hard to deal with. New MacBook-Pro's color is a little bit brighter than the old MacBook-Pro. -- 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 #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same
Question #667010 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/667010 Lee Yen Liang posted a new comment: I can't see much difference between the images captured on different MacBook-Pros. I discovered that the new MacBook-Pro is able to find the image using `Pattern("icon.png").similar(0.5)` command. Another thing I found interesting is that the old MacBook-Pro's display is `Intel Iris Graphics 6100 1536 MB`, and the new MacBook-Pro's display is `Intel Iris Graphics 540 1536 MB`. Maybe I should check the difference between the two displays. -- 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 #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same
Question #667010 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/667010 Lee Yen Liang posted a new comment: `Pattern("icon.png").similar(0.5)` lowers the matching criteria. -- 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
[Sikuli-driver] [Question #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same
New question #667010 on Sikuli: https://answers.launchpad.net/sikuli/+question/667010 I have two MacBook-Pros. Both machines' resolutions are 2560 x 1600. Each machine runs sikuli to do some tasks on an Android emulator(Nox App Player) whose resolution is set to 720 x 1280. I just captured an image with sikuli on the old MacBook-Pro. Then I transfer the code along with the image to the new MacBook-Pro with gitlab. Then I run exactly the same code and the same image on the new MacBook-Pro, and find that sikuli can't find the image on the new MacBook-Pro. Why does this happen? The two images on the old and the new MacBook-Pros have exactly the same pixels. -- 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
[Sikuli-driver] [Question #664865]: Observing multiple images with priority
New question #664865 on Sikuli: https://answers.launchpad.net/sikuli/+question/664865 I've defined a sikuli module which is used to click on an image when something appears inside a region. # observer.py from sikuli import * class Observer: # When "observedImage" appears inside "region", double click on "reactImage" def __init__(self, region, observedImage, reactImage): self.region = region self.observedImage = observedImage self.reactImage = reactImage def start(self): self.region.onAppear(self.observedImage, self.appearHandler) self.region.observe(FOREVER, background = True) def appearHandler(self, event): doubleClick(self.reactImage) event.repeat() def stop(self): self.region.stopObserver() Here's how to use it: import observer import time observer.Observer(Region(111,222,333,444), "imageToBeDetected1.png", "imageToBeClicked1.png").start() observer.Observer(Region(555,666,66,666), "imageToBeDetected2.png", "imageToBeClicked2.png").start() while True: print('waiting') time.sleep(1) The problem with the above code is that when `imageToBeDetected1` and `imageToBeDetected2` both appear in `Region(111,222,333,444)` and `Region(555,666,66,666)` respectively, my mouse will move between `imageToBeClicked1` and `imageToBeClicked2`. I want only `imageToBeDetected1` to be clicked in this situation. `imageToBeDetected2` should be ignored when `imageToBeDetected1` and `imageToBeDetected2` both appear in `Region(111,222,333,444)` and `Region(555,666,66,666)`, respectively. How can I modify my code so that `imageToBeDetected1` has a higher priority over `imageToBeDetected2`? Or is there a better way to observe multiple images with sikuli? -- 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