sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27368
[Question #252452]: How to make sure that text is present in the image
New question #252452 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252452
Hi,
I have one screen shot and in that image text is written as
" What I want my daughters to know about poverty (2:37)"
I have to validate this text and I have written below code
Region regResult = Region.create(199, 633,388, 59);
regResult.highlight(2);
String txtResult = regResult.text();
if(txtResult.contains("What I want my daughters to know about poverty (2:37)"))
{
System.out.println("Pass: " + txtResult);
}
else
System.out.println("Fail");
The script is running as expected but in console I am getting message as
[info] Sikuli vision engine loaded.
[info] VDictProxy loaded.
[log] highlight Region[199,633 388x59]@Screen(0)[0,0 1366x768] E:Y, T:3.0 E:Y, T:3.0 for 2.0 secs
[info] Text Recognizer inited.
Fail
Please Help.
There should be output as Pass:What I want my daughters to know about poverty (2:37
Please help
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.