[2.0.4] Match does not act like Region using text() --- fixed in 2.0.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
-------
cast Match to Region
instead
reg1 = find(tc)
use
reg1 = Region(find(tc))
-------
2.0.4-2020-
This was working in 1.1.4
I'm using the find(image) to set a region, then modify its boundaries for use in region.text()
The region.text() is now finding the text in the original region rather than the modified region.
Open the attached file 'text image.png' and use a screenshot of it to replace the image in the first line of the script
Here is the simplified script:
tc = Pattern(
if exists(tc):
reg1 = find(tc)
reg1.
reg1.setW(105)
reg1.
bld = reg1.text()
print(bld)
else:
print('not found')
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 2.0.5 |
summary: |
- Problems with region.text() in 2.0.4 + [2.0.4] Match does not act like Region using set(XYWH) |
summary: |
- [2.0.4] Match does not act like Region using set(XYWH) + [2.0.4] Match does not act like Region using text() |
description: | updated |
summary: |
- [2.0.4] Match does not act like Region using text() + [2.0.4] Match does not act like Region using text() --- fixed in 2.0.5 |
Changed in sikuli: | |
status: | In Progress → Fix Committed |
importance: | Medium → High |
importance: | High → Critical |
A fix will be available with 2.0.5 soon.
Use workaround until then.