Re: [Sikuli-driver] [Question #706503]: Помогите написать скрипт
Question #706503 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/706503 Status: Open => Answered RaiMan proposed the following answer: For your eye the images are the same, but for SikuliX they have different size in pixels. In such cases the find operation will not work as expected. For exact matches you have to know the scaling factor and could try with Pattern().resize(). To give you an impression, try with this script: img = "img.png" # see comment pimg = Pattern(img).similar(0.8) f = findAll(pimg) while f.hasNext(): m = f.next() print m m.highlight(2) --- comment I used a shot of the complete top left image the printout: M[161,148 201x133]IN(0) %100,00 C(261,214) [438/437 msec] M[533,716 201x133]IN(0) %95,00 C(633,782) [438/437 msec] M[63,385 201x133]IN(0) %83,76 C(163,451) [438/437 msec] M[526,420 201x133]IN(0) %80,07 C(626,486) [438/437 msec] All 4 images are found but the other 3 with bad scores (to be taken as exact match a score must be >0.99). Wether lower scores are acceptable depends on your intention and the quality of the shots. You might play with the above snippet and make your experiences. Another challenge with your example: Currently there is no feature to select an image automatically, you always either need to use the mouse or give the coordinates for a capture. -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ 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 #706425]: Facing issue with new jar file while running automation script in sikuli
Question #706425 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/706425 RaiMan proposed the following answer: check for non-pairing " in comment lines/blocks -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ 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 #706546]: In Windows 10 pro N, am getting this error "[error] RunTime:loadLib: opencv_java342.dll (failed) probably dependent libs missing:"
Question #706546 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/706546 Status: Open => Answered RaiMan proposed the following answer: I guess the media libs are missing on the N version. [Media Feature Pack für die N- und KN-Versionen von Windows 10](https://www.microsoft.com/de-DE/download/details.aspx?id=48231) -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ 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 #706107]: SikuliX 2.0.5 on Ubuntu 22.04 OS. Please Guide me with the steps.
Question #706107 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/706107 Status: Open => Answered RaiMan proposed the following answer: Sorry, but I had other priorities. I checked on Ubuntu 22.04 with Java 20 (openjdk install with snap). Any other Java 8+ works (recommended 11 or 17). with sikulixide.jar downloaded from: https://raiman.github.io/SikuliX1/downloads.html link: https://launchpad.net/sikuli/sikulix/2.0.5/+download/sikulixide-2.0.5-lux.jar In Terminal using java -jar sikulixide.jar -v -c runs without any problems - command java depends on your installed/used java version (might not be on path) - sikulixide.jar store the download wherever you want and name it as you like (something.jar) in the java command use the absolute path to the jar -v -c full log to the Terminal window - before first use: delete the folder .Sikulix in your home folder -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ 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