text recognition issue when running script from commandline --- use Settings.OcrTextRead = True
I wrote a test program:
addImportPath(
import Biblioteca
reload(Biblioteca)
from Biblioteca import *
#------
#
#
def leTexto(reg):
i = 6
reg1 = Region(reg)
reg1.
reg1.
reg1.
reg1.
reg1.
resp = decod(reg1.
return resp
#
#
Settings.
Settings.
x = selectRegion(
y = leTexto(x)
popup("Li texto da NL =" + y)
When I use the IDE it works fine and pops the text up.
But, when I run it from the command line (windows 7) using this:
D:\Sikulix\
It returns "--- no text read ---"
The log file reads:
[log] highlight R[571,257 232x25]@S(0)[0,0 1366x768] E:Y, T:3,0 for 3.0 secs
[error] text: text recognition is currently switched off
So, it seems ocr is turned on only in the IDE environment, but not in API.
I have Sikulix 1.1.0 installed with tesseract-
How can I read text in the API?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: