Change Line.glyphs to be a list instead of an iterator.
This commit is contained in:
parent
f79d6da2c7
commit
a666a9f85b
1 changed files with 1 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ class Line(PageObject):
|
|||
return self.y + bottom
|
||||
|
||||
@property
|
||||
@collect_iterable
|
||||
def glyphs(self):
|
||||
labels, max_label = ndimage.label(self.image.bitmap, CONNECTIVITY8)
|
||||
blob_slices = enumerate(ndimage.find_objects(labels, max_label), 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue