sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #58001
Re: [Question #700416]: Using OCR text() on a match from Screen.capture()
Question #700416 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700416
Status: Answered => Solved
Nano Stray confirmed that the question is solved:
Perfect!! It worked!!
Thank you very much Dr.RaiMan
------------------------------------------------------
For other readers out there you may substitute temp for another Region
if the text you're trying to analyze is not exactly inside the match
found
print Image(capturedImage).getSub(temp).text() #comment2
to
newRegion = Region(temp.x + customX, temp.y + customY, customW, customH)
print Image(capturedImage).getSub().text(newRegion) #comment2
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.