Searching for text in sikuli

Asked by eugene

I understand that searching for specific test is not available before 0.10.

I am looking for the functionality similar to what is described in the map navigation example in "Sikuli: Using GUI Screenshots for Search and Automation" - the find("Houston") example. I do not think this is available in 0.10.1

I understand it is possible to iterate over some objects and copy them into clipboard and then do comparison in Python, but this is tedious and would only apply to clickable objects...

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:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

Tsung-Hsiang Chang https://launchpad.net/~vgod (one of the developers) said in
Question https://answers.launchpad.net/sikuli/+question/118662
"Yes, Sikuli will be able to match text and extract text from images directly."

But currently it is not possible.

Revision history for this message
eugene (eugene-margulis) said :
#2

looks like I am not the only one whining about this. :-) Thank you, Sikuli is a excellent tool, adding text search functionality would make it truly useful. Any idea when this may happen?

Revision history for this message
TESTER (trytestaccoun) said :
#3

Hi RaiMan,
                    I am very new to Sikuli and must mention that is a very good tool :)
 but for my project i have a constraint, that is along with testing the presence of images i also need to extract text,find text and match text ! So approximately when will the tool be able to match/extract text.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

@ TESTER

generally not a good idea to ask questions as a comment to an old question (only seen by a few people).

If you want to ask something, make a new question.

your question:

- find("some text") is available
- Region.text() extracts text from a region

take care: bug 710586

have a look at the docs at http://sikuli.org/docx

Revision history for this message
TESTER (trytestaccoun) said :
#5

apologies for posting it to an old question. But since it was most apt thought of posting it here.

As u said there is text extraction supported by this tool and i have tried it. But the text extracted is not correct as in when i tried extracting some url from the image it displays something like this .c0m/ instead of .com (this is just an example.)

Revision history for this message
RaiMan (raimund-hocke) said :
#6

@ TESTER

this is what I expected according to the mentioned bug.

You have to wait for the next release.

I will try to update the above bug if something of value happens (subscribe if interested)