Permalink
Browse files

Replace numpy with np after merge

  • Loading branch information...
zuphilip committed Feb 19, 2018
1 parent 23ebc40 commit 4e8fdf7bb69db71c41be1682e0f8f178a2fa2084
Showing with 1 addition and 1 deletion.
  1. +1 −1 ocrolib/toplevel.py
@@ -411,7 +411,7 @@ def PATCH(a):
@makeargcheck("expected a segmentation image")
def SEGMENTATION(a):
return isinstance(a,numpy.ndarray) and a.ndim==2 and a.dtype in int_dtypes
return isinstance(a,np.ndarray) and a.ndim==2 and a.dtype in int_dtypes
@makeargcheck("expected a segmentation with white background")
def WHITESEG(a):
return np.amax(a)==0xffffff

0 comments on commit 4e8fdf7

Please sign in to comment.