amitbanerjee28 / sikuli-api

Automatically exported from code.google.com/p/sikuli-api
0 stars 0 forks source link

Turning on the OCR for sikulifirefoxdriver #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Screen thisScreen = new Screen();
2. String screenText = thisScreen.text();
3.

What is the expected output? What do you see instead?

It looks like the OCR is turned off by default. I would like to use 
SikuliFirefoxDriver to grab a screenshot of the browser and do the text() on 
that image. Not sure how to do that. Currently is gives me:

[error] Region.text: text recognition is currently switched off

How do I turn it on, either by using the API or SikuliFirefoxDriver?

It looks like you turn on the OCR setting the following to true:

Settings.OcrTextSearch
Settings.OcrTextRead

But my jar files don't seem to have the

org.sikuli.script.Settings

What version of the product are you using? On what operating system?

sikuli-webdriver-1.0.1.jar
sikuli-api-1.0.2-standalone.jar
Windows 7 64 bit

Please provide any additional information below.

Original issue reported on code.google.com by mendel...@gmail.com on 26 Jun 2015 at 11:03