Change Line.glyphs to be a list instead of an iterator.

This commit is contained in:
Andrey Golovizin 2014-08-18 19:02:01 +02:00
parent f79d6da2c7
commit a666a9f85b

View file

@ -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)