Ocr in Match doesn't match with Match position after position editing
Hello, below there is my snippet extracted from a bigger script:
I look for an image that is the heading of a column in a table.
Then I modify the match coordinates to look for the first row of the table (rDesc.getY()+24), the highlighting of the match confirm me that the position is correct.
But then when I do the OCR the returned string is the OCR of the heading, not the content of the cell.
To get the content of the cell I have to use the 2 commented lines below that builds a region with the same coordinates of the Match.
From my understanding it should work also without using the Region explicit assignment.
The question is: what do I missed?
rDesc=find(
rDesc.setY(
rDesc.highlight(1)
str1Desc=
# rAppoDesc=
# str1Desc=
My config is:
2.0.4-2020-
I found a workaround so this is not a "bloking" issue, but I'd like to know what's wrong...
Thanks for support
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: