← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #698268]: OCR from file

 

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

RaiMan proposed the following answer:
Then you have to check your setup.

I have this simple main:

package com.sikulix.sikulixrun;

import org.sikuli.script.App;
import org.sikuli.script.Image;
import org.sikuli.script.support.RunTime;

public class SXTest {

    public static void main(String[] args) {

        final String text = Image.text("C:\\Users\\rmhde\\SikuliX\\_205\\img.png");
        System.out.println(text);

        System.exit(0);

    }
}

... and in my IDEA project I have in the Project Settings -> Modules ->
Dependencies a pointer to the location where I have downloaded the
SikuliX IDE jar.

Everything works as expected.

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