[Sikuli-driver] [Question #691602]: Highest possible exactness for Match?
New question #691602 on Sikuli: https://answers.launchpad.net/sikuli/+question/691602 I'm having an issue trying to detect transparent images that appear over a background image. The way I've been approaching this is to take a screenshot of the background image and to call a method like transparentImageFound: return has(screenshot_of_background.exact()) == False However, it seems similarity of 99% isn't enough to catch these images appearing some times. (they are very obvious visually to humans) Instead of using exact() I've also tried .similar(0.995) and such Collecting the transparent images ahead of time isn't really an option. Am I approaching this incorrectly? Any suggestions? -- 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 #691602]: Highest possible exactness for Match?
Question #691602 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691602 Linked to bug: #1885680 https://bugs.launchpad.net/bugs/1885680 "Pattern.similar values over 0.99 are overwritten as .exact() by the IDE when saving" -- 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 #691602]: Highest possible exactness for Match?
Question #691602 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691602 Status: Open => Needs information RaiMan requested more information: Sikuli version? can you send me a screenshot (situation visible) and the "background"-image to sikulix---at---outlook---dot---com? -- 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] [Bug 1885680] [NEW] Pattern.similar values over 0.99 are overwritten as .exact() by the IDE when saving
Public bug reported: Saving a method in sikuli IDE like has(Pattern("screenshot").similar(0.999)) == False is overwritten by the IDE on opening to be has(Pattern("screenshot"). exact()) == False ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1885680 Title: Pattern.similar values over 0.99 are overwritten as .exact() by the IDE when saving Status in Sikuli: New Bug description: Saving a method in sikuli IDE like has(Pattern("screenshot").similar(0.999)) == False is overwritten by the IDE on opening to be has(Pattern("screenshot"). exact()) == False To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1885680/+subscriptions ___ 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 #691602]: Status of bug #1885680 changed to 'Invalid' in Sikuli
Bug #1885680 status changed in Sikuli: New => Invalid https://bugs.launchpad.net/sikuli/+bug/1885680 "Pattern.similar values over 0.99 are overwritten as .exact() by the IDE when saving" This bug is linked to #691602. Highest possible exactness for Match? https://answers.launchpad.net/sikuli/+question/691602 -- 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] [Bug 1885680] Re: Pattern.similar values over 0.99 are overwritten as .exact() by the IDE when saving
** Changed in: sikuli Status: New => Invalid ** Changed in: sikuli Assignee: (unassigned) => RaiMan (raimund-hocke) -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1885680 Title: Pattern.similar values over 0.99 are overwritten as .exact() by the IDE when saving Status in Sikuli: Invalid Bug description: Saving a method in sikuli IDE like has(Pattern("screenshot").similar(0.999)) == False is overwritten by the IDE on opening to be has(Pattern("screenshot"). exact()) == False To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1885680/+subscriptions ___ 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] [Bug 1885680] Re: Pattern.similar values over 0.99 are overwritten as .exact() by the IDE when saving
This is by intention. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1885680 Title: Pattern.similar values over 0.99 are overwritten as .exact() by the IDE when saving Status in Sikuli: Invalid Bug description: Saving a method in sikuli IDE like has(Pattern("screenshot").similar(0.999)) == False is overwritten by the IDE on opening to be has(Pattern("screenshot"). exact()) == False To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1885680/+subscriptions ___ 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 #691602]: Highest possible exactness for Match?
Question #691602 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691602 Status: Needs information => Open jerome gave more information on the question: 2.0.4, sure I'll end them now -- 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 #691602]: Highest possible exactness for Match?
Question #691602 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691602 Status: Open => Answered RaiMan proposed the following answer: The solution is based on an image of the area, where the overlay is expected (screenshot_of_background.png) (in this case including major parts of the tree to have good details) transparentImageFound: match = exists(screenshot_of_background) If match: score = match.getScore() return score < 0. # suitable value has to be found The match score internally is a floating point number. -- 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 #691602]: Highest possible exactness for Match?
Question #691602 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691602 Removed link to bug: #1885680 https://bugs.launchpad.net/bugs/1885680 "Pattern.similar values over 0.99 are overwritten as .exact() by the IDE when saving" -- 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 #691447]: Is Sikuli supported on RHEL 7.5 and above platforms?
Question #691447 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691447 RaiMan proposed the following answer: run the IDE from a Terminal using java -jar sikulix.jar -v -c to get debug output to the terminal and look for oddities -- 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 #691447]: Is Sikuli supported on RHEL 7.5 and above platforms?
Question #691447 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691447 Sheetal posted a new comment: PLEASE find attached logs for more details. oot 52 Mar 6 04:59 rh drwxr-xr-x. 2 root root6 Jun 16 08:30 SetupStuff drwxr-xr-x. 2 root root6 Jun 17 07:11 sikuli -rwxr-xr-x. 1 root root 58746298 Jun 17 14:13 sikulixide-2.0.4.jar [root@nkrhel76a opt]# java -jar sikulixide-2.0.4.jar -v -c [DEBUG]startUp: IDE: Running: /opt/sikulixide-2.0.4.jar [DEBUG]startUp: IDE: AppData: /root/.Sikulix [DEBUG]startUp: IDE: starting with classpath: sikulixide-2.0.4.jar ... [DEBUG]startUp: IDE: no extensions.txt nor valid content [DEBUG]startUp: IDE: moving to extensions: /opt/jython-standalone-2.7.1.jar [DEBUG]startUp: IDE: adding extension file: /root/.Sikulix/Extensions/jython-standalone-2.7.1.jar [766 debug] RunTime:temp folder ok: /tmp/Sikulix_1893221368 Options: *** options dump Options: testing = Options: OptionsFile = /root/.Sikulix/SikulixStore/SikulixOptions.txt Options: *** options dump end * show environment for 2.0.4-2020-03-14_08:01 API user.home: /root user.dir (work dir): /opt user.name: root java.io.tmpdir: /tmp running 64Bit(amd64) on l (3.10.0-862.51.1.el7.x86_64) from a jar java 8 version 1.8 vm 25.211-b12 class 52.0 arch 64 app data folder: /root/.Sikulix executing jar: /opt/sikulixide-2.0.4.jar *** classpath dump sikulix 0: file:/opt/sikulixide-2.0.4.jar *** classpath dump end * show environment end [DEBUG]startUp: IDE: *** leaving start [30 debug] Sikulix: starting IDE [72 debug] RunTime:temp folder ok: /tmp/Sikulix_1488790919 Options: *** options dump Options: testing = Options: OptionsFile = /root/.Sikulix/SikulixStore/SikulixOptions.txt Options: *** options dump end * show environment for 2.0.4-2020-03-14_08:01 IDE user.home: /root user.dir (work dir): /opt user.name: root java.io.tmpdir: /tmp running 64Bit(amd64) on l (3.10.0-862.51.1.el7.x86_64) from a jar java 8 version 1.8 vm 25.211-b12 class 52.0 arch 64 app data folder: /root/.Sikulix executing jar: /opt/sikulixide-2.0.4.jar *** classpath dump sikulix 0: file:/opt/sikulixide-2.0.4.jar 1: file:/root/.Sikulix/Extensions/jython-standalone-2.7.1.jar 2: file:/opt/sikulixide-2.0.4.jar *** classpath dump end * show environment end [475 debug] IDE: running with Locale: en_US [DEBUG]startUp: IDE: --- Sikuli parameters --- [DEBUG]startUp: IDE: 1: -v [DEBUG]startUp: IDE: 2: -c [490 debug] RunTime:loadlib: trying JXGrabKey [492 debug] RunTime:libsExport: folder exists: /root/.Sikulix/SikulixLibs (2.0.4 - 202003140801) [504 debug] RunTime:loadLib: libJXGrabKey.so (success) [505 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3) [612 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9) [613 debug] IDE: Init ScriptingSupport [618 debug] IDESupport: enter [1967 debug] Runner: added: Sikulix [] directory/sikulix [1969 debug] Runner: added: NetworkRunner [] NET [1978 debug] Runner: added: Jython [py] text/jython [2490 debug] Runner: added: JavaScript [js] text/javascript [2491 debug] Runner: added: PackedSikulix [zip] application/zip [2492 debug] Runner: added: SikulixJar [jar] text/jar [2492 debug] Runner: added: Text [txt] text/text [2493 debug] Runner: added: PackedSikulix [skl] text/skl [2499 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible [2500 debug] IDESupport: added: Jython [2500 debug] IDESupport: added: JavaScript [2500 debug] IDESupport: added: Text [2500 debug] IDESupport: exit: defaultrunner: Jython (py) [2503 debug] IDE: Reading Preferences [2503 debug] IDE: Adding components to window [2521 debug] IDE: [I18N] menuRecent [2549 debug] IDE: [I18N] menuToolAndroid [2554 debug] IDE: creating tabbed editor [2837 debug] IDE: creating message area [2959 debug] IDE: creating combined work window [2963 debug] IDE: Putting all together [2963 debug] IDE: Putting all together - after main pane [2999 debug] IDE: Putting all together - after toolbar [3002 debug] IDE: Putting all together - before layout [3240 debug] IDE: Putting all together - after layout [3241 debug] IDE: Putting all together - Restore last Session [3257 debug] EditorPane: created 1593509420440 [3270 debug] JythonRunner: starting initialization [3272 debug] RunTime:resourceLocation: (class org.sikuli.script.support.RunTime) /Lib/sikuli [3273 debug] RunTime:resourceList: having jar: jar:file:/opt/sikulixide-2.0.4.jar!/Lib/sikuli [3294 debug] EditorPane: InitTab: (text/jython) [3314 debug] ImagePath: new BundlePath: /tmp/Sikulix_1488790919/SikulixIDETempTab1593509420440 [3327 debug] Screen: initScreens: starting [3327 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment() [3327 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices() [3327 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0) [3328 debug] Screen: Monitor 0: (0, 0) 1920 x
Re: [Sikuli-driver] [Question #691315]: Sikuli-script.jar or sikuli file is not identifying images if arguments are being passed at runtime
Question #691315 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691315 Status: Needs information => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Needs information' state without activity for the last 15 days. -- 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] [Bug 1885858] [NEW] Unable to connect VNC from sikuli after 39th iterations
Public bug reported: Python version 3.7.4 64 bit Sikuli 2.0.4 Windows server 2016 DC 64 bit & windows 10 64bit Procedure: 1. installed python version 3.7.4 with sikuli 2.0.4 (windows server 2016 DC 64 bit & windows 10 64bit) 2. using Git clone cloned the source to local machine 3. created the reboot script in python 4. Accessing device using VNC viewer 6.19.107 using sikuli and python 5. performing reboot operation in loop 6. used below code to connect the VNC def connect(unit): if unit['connection'] == 'vnc': vnc = vncStart(ip=unit['ip'], port=5900, password=unit['passwd'], connectionTimeout=10, timeout=12) if not vnc: print "Unable to connect to %s using password %s over VNC" % (unit['ip'], unit['passwd']) exit() return vnc elif unit['connection'] == 'vlc': apps.append(openApp('cvlc -f v4l2:///dev/video2')) return Screen(0) elif unit['connection'] == 'pi': pass return SCREEN issue faced: Running the script using command prompt. Able to connect the VNC and reboot the device upto 39th iteration without any issue, in 40th iteration its trying to connect the VNC but not connecting, there is no error messages, its strucking to connect the VNC. Verified this multiple times. Also verified this in sikuli 2.0.2 facing the same issue. ** Affects: sikuli Importance: Undecided Status: New ** Attachment added: "Struck window.png" https://bugs.launchpad.net/bugs/1885858/+attachment/5388599/+files/Struck%20window.png -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1885858 Title: Unable to connect VNC from sikuli after 39th iterations Status in Sikuli: New Bug description: Python version 3.7.4 64 bit Sikuli 2.0.4 Windows server 2016 DC 64 bit & windows 10 64bit Procedure: 1. installed python version 3.7.4 with sikuli 2.0.4 (windows server 2016 DC 64 bit & windows 10 64bit) 2. using Git clone cloned the source to local machine 3. created the reboot script in python 4. Accessing device using VNC viewer 6.19.107 using sikuli and python 5. performing reboot operation in loop 6. used below code to connect the VNC def connect(unit): if unit['connection'] == 'vnc': vnc = vncStart(ip=unit['ip'], port=5900, password=unit['passwd'], connectionTimeout=10, timeout=12) if not vnc: print "Unable to connect to %s using password %s over VNC" % (unit['ip'], unit['passwd']) exit() return vnc elif unit['connection'] == 'vlc': apps.append(openApp('cvlc -f v4l2:///dev/video2')) return Screen(0) elif unit['connection'] == 'pi': pass return SCREEN issue faced: Running the script using command prompt. Able to connect the VNC and reboot the device upto 39th iteration without any issue, in 40th iteration its trying to connect the VNC but not connecting, there is no error messages, its strucking to connect the VNC. Verified this multiple times. Also verified this in sikuli 2.0.2 facing the same issue. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1885858/+subscriptions ___ 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