sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31254
Re: [Question #264103]: [1.1.0] Region.text(): chinese text not readable --- only possible with additional Tesseract actions
Question #264103 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264103
Status: Answered => Open
snowCao is still having a problem:
sorry!my english is poor.
package test_sikuli;
import org.sikuli.script.*;
import org.sikuli.basics.Settings;
import java.io.*;
public class test {
public static void main(String[] args) throws FindFailed, InterruptedException {
// TODO Auto-generated method stub
String str="cmd /c start firefox";
try {
Runtime.getRuntime().exec(str);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Screen a= new Screen();
Settings.OcrTextRead=true;
Settings.OcrLanguage="CHN";
Thread.sleep(2000);
String b=a.find("img/title.png").text();
if(b !=null)
System.out.print(b+"\n");
else
System.out.print("i bbbb\n");
String c=a.find("img/titleChinese.png").text();
if(c !=null)
System.out.print(c+"\n");
else
System.out.print("i ccccc\n");
}
}
the result is :
aboutzcehome title.png just only including english
—I—j titleChinese.png including chinese
'\I/'
why still unread if the text is chinese?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.