RPA-Python
RPA-Python copied to clipboard
Multiple objects, search the top one only - try these
trafficstars
Hi,
I used the image for serching the coordination but there were multiple exactly matched objects in the screen. The library didn't always give me the first top object. How to let the library search from the top or give me the first top one?
Regards, Dick Chan
Hi @dickhfchan you can try to take a larger snapshot to capture more unique background. But if that is not possible, you can check SikuliX API and use r.vision() but I don't think it's straightforward to do.
@dickhfchan Hi, How about using Sikuix findall-maches?
Let me know if it worked for you. I'm interested to see if this works with rpa-python.
Refs in sikulix:
- https://valmore.work/sikulix-region/
- https://dejavuqa.tistory.com/168