[1.1.4 ] collectWords dosn't find a word --- fixed build #216
I am new to Sikuli and I am not a developer, but I did my best to read the docs. Probably I missed anyway something for OCR-setup. I already did some successfull scipts for Html/Javascipts Apps and for some Windows-Apps. Now I want to get the text and the position of new and unknown Objects, e.g. usernames, wich I can't click/mark, because they are starting a function or a hyperlink. So collectWords() would be the best method.
This is my code:
...
Settings.
#tr = TextOCR.start()
#tr.setLanguage
#logger.warning('tr = %s', tr)
words = Region(
logger.
#words = SCREEN.getWords() #Screen object has no attribute getWords
words = SCREEN.
logger.
words = Region(
logger.
#firstWordMatch = words[0].getText()
#firstWord = firstWordMatch.
Region.text() and Region.
Region. collectWords(), Region. collectWordsText(), Region. collectLines(), ... don't throw an error, but find nothing: Result is [0]
When enabled getText() throws an error and color of this method call in SikuliX IDE keeps black. Color of collectWords() is not blue/green like findAllText(), but keeps black,too. ?!?
I tested this code with all kind of apps/texts and got allways the same result.
My Environment:
Windows 10, latest Java 64, Folder of Sikulix 1.1.3 installation got renamed, old Appdata-Folder of 1.1.3 got renamed.
I did same for the 1.1.4 installation wich i used until today. This Installation had both, Jython and JRuby support and some Tesseract-files.
Now I did a new installation of last night version of 1.1.4 and only Jython, nothing else. No additional configuration, only the
Settings.
Resul of new installationt:
Nothing changed
By the way:
Do I need the tr = TextOCR.start() stuff?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: