diff --git a/pixelocr/image.py b/pixelocr/image.py index fe1d9bd..efe94ba 100644 --- a/pixelocr/image.py +++ b/pixelocr/image.py @@ -179,7 +179,7 @@ class Image(object): def toqimage(self): from PyQt4.QtGui import QImage return QImage( - np.ascontiguousarray(self.data.astype(np.uint8)).data, + self.data.astype(np.uint8).data, self.data.shape[1], self.data.shape[0], self.data.shape[1] * 3, QImage.Format_RGB888,