Remove unneeded conversion from int to float.

This commit is contained in:
Andrey Golovizin 2014-08-25 16:37:36 +02:00
parent 6a3f8b3143
commit 00508d1919

View file

@ -104,7 +104,7 @@ class Line(PageObject):
@cached_property
def baseline(self):
"""Detect baseline height, relative to the top."""
bitmap = self.image.bitmap.astype(np.float)
bitmap = self.image.bitmap
histogram = bitmap.sum(axis=1)
gradient = list(filters.correlate1d(histogram, [-1, 1], axis=0, mode='constant'))
gradient[0] = histogram[0]