From 05f7eb45855b1ee4ea418bafcc3d55c837acc944 Mon Sep 17 00:00:00 2001 From: Andrey Golovizin Date: Sat, 30 Aug 2014 20:52:25 +0200 Subject: [PATCH] Fix: Line.glyphs should be a cached property. --- pixelocr/page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixelocr/page.py b/pixelocr/page.py index 30059a1..5db0b72 100644 --- a/pixelocr/page.py +++ b/pixelocr/page.py @@ -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)