sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38910
Re: [Question #232900]: [1.0] [HowTo] turn on text recognition --- solution
Question #232900 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232900
Karthikk Sanku posted a new comment:
@Raiman
Hi Raiman,
After trying many things still i coulnt ablt to get text from image
using sikuli tesseract
Below are the steps i am following
1) I downloaded sikulixsetup1.1.0 and extracted sikulixapi.jar by selecting 2 and 3 options in there (Many in the form said they extracted from 1.2 5 options or 3, 5 options for tesseract. But for me I can see only 3 options)
2) Then I used the below code
Pattern p=new Pattern("C:\\Testing\\images\\image1.png");
File imageFile = new File("C:\\Testing\\images\\image1.png");
Match txt=s.find(p).text();
s.find(p).highlight(10);
System.out.println(txt);
3) But Always I get 'txt' = no text
Log is
jul 19, 2016 12:59:18 PM org.bridj.BridJ log
INFO: Registering type org.sikuli.util.SysJNA$WinKernel32
jul 19, 2016 12:59:18 PM org.bridj.BridJ log
INFO: Registering type org.bridj.TimeT
jul 19, 2016 12:59:18 PM org.bridj.BridJ log
INFO: Registering type org.bridj.TimeT$timeval_customizer
jul 19, 2016 12:59:18 PM org.bridj.BridJ log
INFO: Registering type org.bridj.StructIO$DefaultCustomizer
jul 19, 2016 12:59:18 PM org.bridj.BridJ log
INFO: Registering type org.bridj.TimeT$timeval
jul 19, 2016 12:59:18 PM org.bridj.BridJ log
INFO: Registering type org.bridj.StructObject
jul 19, 2016 12:59:18 PM org.bridj.BridJ log
INFO: Registering type org.bridj.NativeObject
jul 19, 2016 12:59:18 PM org.bridj.BridJ log
INFO: Registering type org.bridj.AbstractIntegral
jul 19, 2016 12:59:18 PM org.bridj.BridJ log
INFO: Registering type java.lang.Number
[error] text: text recognition is currently switched off
--- no text ---
Please let me know what could be the problem . Am I doing any mistake?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.