From 85180a4ec1dfeca213e106ac46e1c37e222a54c6 Mon Sep 17 00:00:00 2001 From: Andrey Golovizin Date: Tue, 26 Aug 2014 17:14:54 +0200 Subject: [PATCH] Fix broken Glyph.optical_distance(). --- pixelocr/page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixelocr/page.py b/pixelocr/page.py index 74a2777..6a3c2f4 100644 --- a/pixelocr/page.py +++ b/pixelocr/page.py @@ -85,7 +85,7 @@ class PageObject(object): return self.image.fits(left, top, right, bottom) - def _optical_correction(self, other, T=True): + def _optical_correction(self, other, T=False): image1 = self.image.T if T else self.image image2 = other.image.T if T else other.image base = min(image1.top, image2.top)