OCR.readLines how to intepret results?
hello,
I'm trying to parse an image similar to an excel spreadsheet that contains lines of text that I have to OCR and have divided one per row.
I was using something like:
ListStr=
obtaining a list of the text present one by one on the lines.
Now I'd like to use
OCR.readLines
But this API returns a list of matches instead of a list of strings.
I suppose there is a way to extract also the text.
I've tried this:
linescode=
log.writeLogAll ("Lines=
it works
linescode2=
for m in linescode2:
apporeg=
log.writeLogAll ("LinesText=" + OCR.readText(
and this gives me this error:
[error] java.lang.
[error] --- Traceback --- error source first
line: module ( function ) statement
576: main ( <module> ) log.writeLogAll ("LinesText=" + OCR.readText(
[error] --- Traceback --- end --------------
The main question is: how do I extract text from the matches that are returned by OCR.readLines?
this is my configuration:
2.0.4-2020-
Thanks in advance
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: