← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673429]: how to implement text reading with SikuliX IDE 1.1.3 or 1.1.4

 

Question #673429 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673429

    Status: Open => Answered

Tim B proposed the following answer:
There are a lot of ways to capture text, especially within the 1.1.4
version and the updated Tesseract functionality.   I think perhaps you
are not calling the function relative to the object?   Here is a simple
sample that should work, based on what you are looking for:

----------------------
# Designate a new region... used your pattern as a reference
new_reg = find("1536235557278.png")

# Print the text to the console from that region
print new_reg.text()
----------------------

Hope that helps!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.