sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51582
Re: [Question #680688]: [1.1.4]There is empty string connecting correct string with OCR
Question #680688 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680688
Status: Open => Answered
RaiMan proposed the following answer:
ok, seems to be some weird behavior:
it is not an empty string, but a new-line, that is added to the "64"
I have to check.
workarounds:
use
a = find("1557282546849.png").text().strip()
... which removes whitespace from start and end of string
or
a = find("64.png").collectWordsText()[0]
... see: https://sikulix-2014.readthedocs.io/en/latest/region.html#extracting-text-from-a-region
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.