sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34790
Re: [Question #271593]: [1.1.0] How to get better results when working with OCR
Question #271593 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271593
Status: Answered => Open
carl is still having a problem:
I can not get over this problem , I'm sorry RaiMan+ community!
MY CODE:
import java.awt.image.BufferedImage;
import org.sikuli.script.Image;
import org.sikuli.script.Region;
import org.sikuli.script.Screen;
public class due {
public static void main(String[] args) {
Screen screen = new Screen();
Image imgForOCR= Image.create(screen.capture(new Screen().selectRegion())).convertImageToGrayscale(img).resize(200);
}
}
MY ERROR:
1) The method create(Image) in the type Image is not applicable for the arguments (ScreenImage)
//import org.sikuli.script.Image;
2) img cannot be resolved to a variable
SOME INFO:
A) I use sikulixsetup-1.1.0
B) I use http://doc.sikuli.org/javadoc/ // I can't find Image class, and move knowledgeably
I hope to see OCR system and I hope to see it grow // <3
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.