← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #708602]: how do i get a region based of image file?

 

Question #708602 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/708602

RaiMan posted a new comment:
Use SikuliX 2.0.5 and this should work (scripting):

img = Image.create(".../someImg.png") # load the base image

# optionally create sub images 
imgReg = img.getSub(Region(x, y, w, h)) # x, y relative to 0 (top-left)
imgReg.text() # will read the text as with screen regions

More info about the text OCR features in the docs.

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