← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #219231]: OCR fails on a trivial image

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
makePicture() is not a basic Jython feature. This is a misunderstanding
of some entry referring JES application (Jython Student environment), an
IDE to learn how to use Jython to access and work with some types of
media (images, audio, video, ...), which adds some features to "basic
Jython", like Sikuli does for visual automation and testing.

In Sikuli the eqivalent to makePicture() is a simple
img = "some-image.png"

if you want to reference the image in subsequent find(), click() ...

If you want to do something with the image using basic Java image
features or some Java based API or image packages, then you can use the
Sikuli feature:

Pattern("some-image.png").getImage()

which returns a BufferedImage (in memory), that can further be used with
the above mentioned features and API's.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.