Permalink
Browse files

Fix TypeError with new numpy version

It is now important that the True, False values
in the matrix are transformed to numbers before
passing them to imsave function.

This fixes #299.
  • Loading branch information...
zuphilip committed Mar 18, 2018
1 parent d3e5cc6 commit 8a62ef9f93160a521e23ded7102ace66f9db8092
Showing with 1 addition and 1 deletion.
  1. +1 −1 ocropus-gpageseg
@@ -162,7 +162,7 @@ def DSAVE(title,image):
image = np.transpose(np.array(image),[1,2,0])
fname = "_"+title+".png"
print_info("debug " + fname)
imsave(fname,image)
imsave(fname,image.astype('float'))


################################################################

0 comments on commit 8a62ef9

Please sign in to comment.