[Sikuli-driver] [Question #691094]: Extracting text from the image
New question #691094 on Sikuli: https://answers.launchpad.net/sikuli/+question/691094 I tried to extract a text from a captcha using Sikuli using java. I tried the below code but it doesn;t worked for me. Can any one here review the code & let me know what should be modifued. I am sure this code is partially correct & when I run this code I could see the below exception in eclipse console. Please help. [error] TextRecognizer: init: export tessdata not possible - run setup with option 3 [error] TextRecognizer not working: tessdata stuff not available at: C:\Users\user\AppData\Roaming\Sikulix\SikulixTesseract\tessdata [error] text: text recognition is now switched off --- no text --- please find the below code: public class Text { public static void main(String[] args) throws FindFailed { Settings.OcrTextRead=true; Settings.OcrLanguage = "eng"; WebDriverManager.chromedriver().setup(); WebDriver driver = new ChromeDriver(); driver.get("http://www.captcha.net/;); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS); Pattern d= new Pattern("G:\\Capture.PNG"); Screen scr= new Screen(); String str=scr.find(d).text(); System.out.println(str); } } Please find the below link for the image which I need to extract text from the image. https://i.ibb.co/dfdpT0h/Capture.png -- 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 #691058]: How to move sikulixide-2.0.4.jar to new location and still use OCR
Question #691058 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691058 Status: Answered => Open Chris Kosieracki is still having a problem: I did use brew to install Tesseract, but do not recall where (or if) I designated it to be installed.. I'm seeing libtesseract.dylib in the Applications folder in the root of the hard drive. The various eng. files are in /Users/cckozie/Library/Application Support/Sikulix/SikulixTesseract/tessdata/configs. The jar file doesn't need to be in Applications, that's just where I've been having it before, and i've been using a Sikuli launch icon on the task bar to launch it. What I really want is to get it out of my Downloads folder to make it easier to keep that folder clean. Would I need to uninstall and reinstall both Sikulix and Tesseract in order to accomplish that? Thanks. -- 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 #691076]: .isRunning() no long working for SikulixIDE in 2.0.4
Question #691076 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691076 Chris Kosieracki posted a new comment: Thanks for the clarification. I reported it as a bug instead of a question because this did work in 1.1.4, and I saw it as a loss of functionality. I have used it extensively to allow my scripts to behave differently when running from the IDE than when running as part of a bash script. It's not a huge deal, but I'll need to find another way to provide the functionality and then modify a few dozen scripts. -- 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 #690868]: I just like to know how does the user can pass the image using http url ?
Question #690868 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690868 Kogul posted a new comment: OKay thanks -- 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 #691091]: Fresh Ubuntu install on VM and SikuliX IDE will not start
New question #691091 on Sikuli: https://answers.launchpad.net/sikuli/+question/691091 Hi, I have a fresh Ubuntu install on a VM. I've tried to put Sikuli onto this VM and launch the IDE but it will not start. If I double click the jar file I briefly see a popup that the IDE is starting and nothing after that. I have to kill the process. Here is the output if I run: 'java -jar sikulixide-2.0.4.jar -v -c' [DEBUG]startUp: IDE: Running: /home/user/SikuliX/sikulixide-2.0.4.jar [DEBUG]startUp: IDE: AppData: /home/user/.Sikulix [DEBUG]startUp: IDE: starting with classpath: sikulixide-2.0.4.jar ... [DEBUG]startUp: IDE: no extensions.txt nor valid content [DEBUG]startUp: IDE: adding extension file: /home/user/.Sikulix/Extensions/jython-standalone-2.7.1.jar [363 debug] RunTime:temp folder ok: /tmp/Sikulix_1256731715 Options: *** options dump Options: testing = Options: OptionsFile = /home/user/.Sikulix/SikulixStore/SikulixOptions.txt Options: *** options dump end * show environment for 2.0.4-2020-03-14_08:01 API user.home: /home/user user.dir (work dir): /home/user/SikuliX user.name: user java.io.tmpdir: /tmp running 64Bit(amd64) on l (5.4.0-26-generic) from a jar java 8 version 1.8 vm 25.252-b09 class 52.0 arch 64 app data folder: /home/user/.Sikulix executing jar: /home/user/SikuliX/sikulixide-2.0.4.jar *** classpath dump sikulix 0: file:/home/user/SikuliX/sikulixide-2.0.4.jar *** classpath dump end * show environment end [DEBUG]startUp: IDE: *** leaving start [46 debug] Sikulix: starting IDE [81 debug] RunTime:temp folder ok: /tmp/Sikulix_1427684548 Options: *** options dump Options: testing = Options: OptionsFile = /home/user/.Sikulix/SikulixStore/SikulixOptions.txt Options: *** options dump end * show environment for 2.0.4-2020-03-14_08:01 IDE user.home: /home/user user.dir (work dir): /home/user/SikuliX user.name: user java.io.tmpdir: /tmp running 64Bit(amd64) on l (5.4.0-26-generic) from a jar java 8 version 1.8 vm 25.252-b09 class 52.0 arch 64 app data folder: /home/user/.Sikulix executing jar: /home/user/SikuliX/sikulixide-2.0.4.jar *** classpath dump sikulix 0: file:/home/user/SikuliX/sikulixide-2.0.4.jar 1: file:/home/user/.Sikulix/Extensions/jython-standalone-2.7.1.jar 2: file:/home/user/SikuliX/sikulixide-2.0.4.jar *** classpath dump end * show environment end [243 debug] IDE: running with Locale: en_US [DEBUG]startUp: IDE: --- Sikuli parameters --- [DEBUG]startUp: IDE: 1: -v [DEBUG]startUp: IDE: 2: -c [254 debug] RunTime:loadlib: trying JXGrabKey [262 debug] RunTime:libsExport: folder exists: /home/user/.Sikulix/SikulixLibs (2.0.4 - 202003140801) [263 debug] RunTime:loadLib: libJXGrabKey.so (success) [266 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3) [370 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9) [372 debug] IDE: Init ScriptingSupport [377 debug] IDESupport: enter [2111 debug] Runner: added: SikulixJar [jar] text/jar [2113 debug] Runner: added: PackedSikulix [zip] application/zip [2117 debug] Runner: added: PackedSikulix [skl] text/skl [2142 debug] Runner: added: Jython [py] text/jython [2143 debug] Runner: added: NetworkRunner [] NET [2146 debug] Runner: added: Sikulix [] directory/sikulix [2893 debug] Runner: added: JavaScript [js] text/javascript [2894 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible [2897 debug] Runner: added: Text [txt] text/text [2897 debug] IDESupport: added: Jython [2905 debug] IDESupport: added: JavaScript [2906 debug] IDESupport: added: Text [2906 debug] IDESupport: exit: defaultrunner: Jython (py) [2912 debug] IDE: Reading Preferences [2912 debug] IDE: Adding components to window [2939 debug] IDE: [I18N] menuRecent [3004 debug] IDE: [I18N] menuToolAndroid [3025 debug] IDE: creating tabbed editor [3270 debug] IDE: creating message area [3416 debug] IDE: creating combined work window [3422 debug] IDE: Putting all together [3429 debug] IDE: Putting all together - after main pane [3510 debug] IDE: Putting all together - after toolbar [3517 debug] IDE: Putting all together - before layout [3594 debug] IDE: Putting all together - after layout [3595 debug] IDE: Putting all together - Restore last Session [3639 debug] EditorPane: created 1591097931244 [3668 debug] JythonRunner: starting initialization [3678 debug] RunTime:resourceLocation: (class org.sikuli.script.support.RunTime) /Lib/sikuli [3685 debug] RunTime:resourceList: having jar: jar:file:/home/user/SikuliX/sikulixide-2.0.4.jar!/Lib/sikuli [3793 debug] EditorPane: InitTab: (text/jython) [3814 debug] ImagePath: new BundlePath: /tmp/Sikulix_1427684548/SikulixIDETempTab1591097931244 [3848 debug] Screen: initScreens: starting [3857 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment() [3857 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices() [3857 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary
Re: [Sikuli-driver] [Question #690868]: I just like to know how does the user can pass the image using http url ?
Question #690868 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690868 RaiMan proposed the following answer: I'll try my very best - but no commitments - sorry -- 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 #690868]: I just like to know how does the user can pass the image using http url ?
Question #690868 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690868 Kogul posted a new comment: May I know when 2.0.5 will be released ? -- 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 #690868]: I just like to know how does the user can pass the image using http url ?
Question #690868 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690868 Kogul posted a new comment: Okay Thanks -- 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 #690810]: Sikuli FindFailed error after waiting for an image Pattern on the screen
Question #690810 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690810 RaiMan proposed the following answer: The images you sent me all work on the given screenshot shown in a viewer on Windows and Mac, but with a rather low score (0.75 to 0.85). The image with only the text "Username" should work in any case. The others might be critical caused by the blinking cursor in the text field. The most secure way to get the input focus into a text field is to work with an image that is found with a high score and then use the term text1 = Pattern(reliableImage).targetOffset(x, y) This can easily be done in the IDE preview. start with username = then add the targetoffset using Preview and finally type(username, "some text") same for the password field. -- 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 #690868]: I just like to know how does the user can pass the image using http url ?
Question #690868 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690868 Status: Open => Answered RaiMan proposed the following answer: Sorry for the delay. Private priorities. You have to wait for the 2.0.5. -- 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 #690868]: I just like to know how does the user can pass the image using http url ?
Question #690868 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690868 Kogul posted a new comment: Hi Railman, Is this bug resolved ? Waiting for your solution. Thanks in advance -- 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