Fix: Line.glyphs should be a cached property.
This commit is contained in:
parent
5f1273fd18
commit
05f7eb4585
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ class Line(PageObject):
|
|||
bottom = np.argmin(gradient) + skip
|
||||
return self.y + bottom
|
||||
|
||||
@property
|
||||
@cached_property
|
||||
@collect_iterable
|
||||
def glyphs(self):
|
||||
labels, max_label = ndimage.label(self.image.bitmap, CONNECTIVITY8)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue